Altair Static is a package that serves the static assets (HTML, JS, CSS) of the Altair GraphQL client, allowing you to embed a full-featured GraphQL IDE in any Node.js application. Version 8.5.7 is current; releases follow altair-graphql-client updates. Key differentiators: provides pre-built client assets without needing a frontend build pipeline, supports ESM and CJS, and ships TypeScript definitions.
npm install altair-staticNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to generate an Altair HTML page with a custom GraphQL endpoint and initial query using renderAltair.
Use named imports: import { renderAltair } from 'altair-static';Use renderAltair({}) to generate the full page, or access via altairStatic namespace.Always set baseURL: '/altair/' (not '/altair').
Upgrade Node to >=12 (recommended 18+).
Use ESM imports: import { renderAltair } from 'altair-static';Run: npm install altair-static
Add "type": "module" to package.json, or use dynamic import().
Use import or upgrade altair-static to v4 or lower (not recommended).
Set baseURL with trailing slash, e.g., '/altair/'
No dependency data recorded yet.