GitHub OpenAPI GraphQL Query

JSON →
library 5.2.1 ·javascript
verified Jun 7, 2026

A minimal (1.5kB minified) library to query GitHub's REST API OpenAPI specification using GraphQL. Current version 5.2.1 (stable, low release cadence). Provides a single `graphql()` function that fetches the latest or specific versions of `@github/openapi` releases. Key differentiator: bridges GraphQL queries with REST API metadata, enabling filtered introspection of endpoints, parameters, and releases. Supports GitHub Enterprise Cloud (GHEC) compatibility mode via `ghecCompatibilityMode` flag. Requires Node >= 18.