A TypeScript package that provides the complete GitHub GraphQL schema as a single, self-contained module. Version 1.28.0 ships the latest schema as of release, with automatic updates triggered by schema changes on GitHub's API. Differentiates from alternatives like @octokit/graphql-schema by being zero-dependency, fully typed, and focused solely on schema definitions without client logic. Ideal for code generation, IDE autocomplete, and type-safe GraphQL queries. Released on npm with a cadence tied to GitHub GraphQL schema updates.
npm install github-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import the GitHub GraphQL schema and use it with graphql utilities to inspect types.
Use ESM imports (import { schema } from 'github-schema') and ensure Node.js >=20.Check release date and compare with GitHub changelog if you need the latest schema.
Use a bundler that supports package.json exports field, like webpack 5 or esbuild.
import { schema } from 'github-schema' (main export already includes the latest schema).Use 'github-schema' main export or check documentation for correct subpath.
Add "type": "module" to package.json or use .mjs extension.
Ensure you are importing the default export: import { schema } from 'github-schema'.No dependency data recorded yet.