altair Documentation

️ A feature-rich GraphQL Client for all platforms.

RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy altair on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name altair -p 5434:5434 --restart always postgres:13
Configured Services & Ports
⚙️ db
image: postgres:13
🔌 Ports: 5434:5432
docker-compose.yml
yaml (docker-compose.yml)
# Set the version of docker compose to use
version: '3.9'

# The containers that compose the project
services:
  db:
    image: postgres:13
    restart: always
    container_name: integration-tests-prisma
    ports:
      - '5434:5432'
    volumes:
      - postgres-e2e:/var/lib/postgresql/data-e2e
    environment:
      POSTGRES_USER: prisma
      POSTGRES_PASSWORD: prisma
      POSTGRES_DB: tests
    networks:
      - test-network

networks:
  test-network:

volumes:
  postgres-e2e:

File: README.md









Documentation

Get started with Altair by reading the documentation.

Sponsors

Thanks to all our sponsors for sponsoring this project! Do you use Altair GraphQL client at your company? Consider supporting this project as a sponsor (primary, gold, silver or bronze) on open collective.

Primary Sponsor

To be a primary sponsor, reach out to us.

Gold Sponsor

Become a Gold sponsor of Altair to appear here.

Bronze Sponsor

Other Sponsors

Community 🙏🏾

You can learn more about how to get help here.

Contributing

Would you like to help with translations? https://altair-gql-translate.surge.sh/ Click here.

Learn more about contributing to Altair here and here.

Development

Read more here.

Deployment

API

Docker

The docker image can be built from the Dockerfile at the root of the repo.

Digitalocean

Vercel

Render

License


File: chocolatey/README.md

altair-graphql chocolatey

This package can be found in the official Choclatey Repository

Usage

If you just want to install altair-graphql you can use the official Chocolatey Repository

shell script
choco install altair-graphql

Build

If you want to build the chocolatey package yourself you can use the next commands

shell script
choco pack
choco install altair-graphql.4.0.11.nupkg

File: packages/gatsby-plugin-altair-graphql/README.md

gatsby-plugin-altair-graphql

Adds an instance of Altair GraphQL client to gatsby, discovered at /__altair route.

Install

text
npm install --save gatsby-plugin-altair-graphql

// or using yarn

yarn add gatsby-plugin-altair-graphql

Usage

Just add the plugin to the plugins array in your gatsby-config.js

text
plugins: [`gatsby-plugin-altair-graphql`]

File: packages/altair-plugin/README.md

altair-graphql-plugin

lugin helper for altair graphql client


File: packages/altair-koa-middleware/README.md

altair-koa-middleware

This is a koa middleware for mounting an instance of altair GraphQL client.

Installation

This is a node module and can be installed using npm:

text
npm install --save altair-koa-middleware

Alternatively, if you are using yarn:

text
yarn add altair-koa-middleware

Usage

js
import Koa from 'koa';
import KoaRouter from 'koa-router';
import { createRouteExplorer } from 'altair-koa-middleware';
const app = new Koa();
const router = new KoaRouter();

createRouteExplorer({
  url: '/altair',
  router,
  opts: {
    endpointURL: '/graphql',
    subscriptionsEndpoint: `ws://localhost:4000/subscriptions`,
    initialQuery: `{ getData { id name surname } }`,
  },
});

app.use(router.routes()).use(router.allowedMethods());

app.listen(3500);

// ... the rest of your code ...

An instance of Altair GraphQL Client would be available at /altair of your server.

Contributing

Everyone is welcome to contribute. See anything that needs improving, create an issue. And if you're up for it, create a PR! :D

License

MIT


File: packages/altair-fastify-plugin/README.md

altair-fastify-plugin

This is a Fastify Plugin for hosting an instance of Altair GraphQL Client, with support for TypeScript, and tested for Fastify v3.

Install

sh
npm install altair-fastify-plugin
# or
yarn add altair-fastify-plugin

Usage

js
// const Fastify = require("fastify");
import Fastify from 'fastify';
// const AltairFastify = require("altair-fastify-plugin");
import AltairFastify from 'altair-fastify-plugin';

const app = Fastify();

// ...

app.register(AltairFastify, {
  /**
   * All these are the defaults.
   */
  path: '/altair',
  baseURL: '/altair/',
  endpointURL: '/graphql',
});

// ...

// Altair available at localhost:3000/altair
app.listen(3000);

File: packages/altair-express-middleware/README.md

altair-express-middleware

This is an express middleware for mounting an instance of altair GraphQL client.

Installation

This is a node module and can be installed using npm:

text
npm install --save altair-express-middleware

Alternatively, if you are using yarn:

text
yarn add altair-express-middleware

Usage

js
import express from 'express';
import { graphqlExpress } from 'graphql-server-express';
import { altairExpress } from 'altair-express-middleware';

import { schema } from './schema';

const server = express();

// Mount your graphQL server endpoint
server.use(
  '/graphql',
  bodyParser.json(),
  graphqlExpress({
    schema,
  })
);

// Mount your altair GraphQL client
server.use(
  '/altair',
  altairExpress({
    endpointURL: '/graphql',
    subscriptionsEndpoint: `ws://localhost:4000/subscriptions`,
    initialQuery: `{ getData { id name surname } }`,
  })
);

// ... the rest of your code ...

An instance of Altair GraphQL Client would be available at /altair of your server.

Contributing

Everyone is welcome to contribute. See anything that needs improving, create an issue. And if you're up for it, create a PR! :D

License

MIT


File: packages/altair-docs/docs/cloud/accounts.md


title: Accounts parent: Cloud order: 2

Managing your account

To get started with Altair GraphQL Cloud, you need to sign up for an account. To access the login dialog, hover the user icon at the bottom left corner of Altair and click on the Login link.

Currently the only way to sign up for an account is by using Google Sign-In. If you don't have a Google account, you can create one here. (If you think there should be other ways to sign up, please let us know by contacting support.)

Once you've signed in, you now have access to manage your account and teams, and to log out.

Your profile shows you basic stats about your account, such as the number of queries you have created and the number of teams you manage.