Skip to main content

Turn any GraphQL schema into Markdown or MDX docs

Scaffold a new Nuxt or Docusaurus site, or add docs to an existing Docusaurus, Hugo, MkDocs, DocFX, mdBook and more.

$npm create graphql-markdown-docs@latest
GraphQL-Markdown output: Markdown documentation generated from a GraphQL schema
Trusted by teams at
MozillaIOTABitqueryBrowserless.ioAragonSablierMONEICivicEngineepilotCoral+30 more·12k+ weekly downloads

How it works

1

Set up

Scaffold a new Nuxt or Docusaurus site, or add the Docusaurus plugin or a formatter preset to your existing docs.

2

Configure

Point it at your schema: SDL files, an introspection endpoint, GraphQL Config, or a code-first TS/JS schema.

3

Generate

Run the CLI to get Markdown or MDX pages, ready for your docs site. Choose a path →

Why GraphQL-Markdown?

Schema-to-docs in seconds

Supports SDL files, introspection endpoints, GraphQL config, and code-first TS/JS schemas. Type cross-linking, deprecation notices, and custom directive badges are included out of the box. Get started →

MDX

Output adapted for your docs ecosystem

GraphQL-Markdown generates Markdown or MDX, and formatter presets adapt the output for Docusaurus, Nuxt, Hugo, MkDocs, DocFX, mdBook, Astro, Next.js, and other supported targets while preserving each ecosystem's conventions. Explore formatter presets.

Free and open-source

MIT licensed and actively maintained. Used in production by teams worldwide. If it saves you time, consider planting a tree to support the project.

Thanks to our contributors

contributors