# altair-fastify-plugin

> Fastify Plugin of Altair GraphQL Client

Latest version **8.5.11** (published 2026-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install altair-fastify-plugin
pnpm add altair-fastify-plugin
yarn add altair-fastify-plugin
bun add altair-fastify-plugin
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 8.5.11 |
| Published | 2026-10-09 |
| First published | 2020-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5432 |
| Author | PabloSz |
| Maintainers | pablosz, imolorhe |
| Keywords | altair, client, fastify, gql, graphql |

## Links

- npm: https://www.npmjs.com/package/altair-fastify-plugin
- Repository: https://github.com/altair-graphql/altair
- Homepage: https://github.com/altair-graphql/altair#readme
- Issues: https://github.com/altair-graphql/altair/issues
- npm.io page: https://npm.io/package/altair-fastify-plugin

## Dependencies (3)

- [altair-static](https://npm.io/package/altair-static.md) 8.5.11
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^5.0.1
- [@fastify/static](https://npm.io/package/@fastify/static.md) ^9.1.3

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 8.5.11 (latest) — 2026-10-09
- 8.5.12-alpha.2deae06.0 (alpha) — 2026-10-23
- 8.4.2 (prerelease-imolorhe-npm-prereleases) — 2025-12-10
- 8.5.12-alpha.4fa62e8.0 — 2026-10-20
- 8.5.12-alpha.5edbcdf.0 — 2026-10-09
- 8.5.11-alpha.5415869.0 — 2026-10-08
- 8.5.11-alpha.fa9b0f3.0 — 2026-10-07
- 8.5.10 — 2026-10-07
- 8.5.10-alpha.123d801.0 — 2026-10-07
- 8.5.9 — 2026-08-16
- 8.5.10-alpha.3c0eb65.0 — 2026-08-16
- 8.5.9-alpha.e436ccc.0 — 2026-08-16
- 8.5.9-alpha.e036568.0 — 2026-08-16
- 8.5.9-alpha.457128a.0 — 2026-08-16
- 8.5.8 — 2026-08-16
- … 206 more at https://npm.io/package/altair-fastify-plugin/versions

## README

# altair-fastify-plugin

[![npm](https://img.shields.io/npm/v/altair-fastify-plugin.svg)](https://www.npmjs.com/package/altair-fastify-plugin)

This is a [**Fastify Plugin**](https://www.fastify.io/docs/master/Plugins/) 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);
```

---
_Source: https://npm.io/package/altair-fastify-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
