SpectaQL is a Node.js library (v3.0.9, latest) for auto-generating static GraphQL API documentation. It supports multiple input sources: live endpoints via introspection queries, introspection result files, SDL files, and glob patterns for merging schemas. Key differentiators include customization via themes, markdown support, live preview, and generative examples. Released under the Apache-2.0 license, it is actively maintained by Anvil. Alternatives like GraphQL Playground or GraphiQL focus on interactive exploration, while SpectaQL produces standalone static docs suitable for versioning and hosting.
npm install spectaqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generate static GraphQL docs from a live endpoint using an introspection query with auth headers.
Upgrade Node.js to version >=16.
Switch to `import` syntax in ESM context.
Check that introspection is allowed, or provide an introspection result file or SDL.
Use path.resolve() to create absolute paths for theme config.
Use import syntax with an ESM-compatible Node project, or use dynamic import: const spectaql = await import('spectaql');Verify the URL is correct, introspection is enabled, and proper auth headers are set.
Use `import { run } from 'spectaql'` instead of `import spectaql from 'spectaql'; spectaql.run(...)`.No dependency data recorded yet.