Skip to main content

Turn any GraphQL schema into Markdown or MDX docs

Use the Docusaurus plugin for Docusaurus sites, or formatter presets for Hugo, MkDocs, DocFX, mdBook and other supported documentation ecosystems.

$npm install @graphql-markdown/cli graphql

Start with the CLI, then choose the Docusaurus plugin or a formatter preset for Hugo, MkDocs, DocFX, mdBook, and other supported ecosystems.

GraphQL-Markdown output: Markdown documentation generated from a GraphQL schema
Trusted by teams at
MozillaIOTABitqueryBrowserless.ioAragonSablierMONEICivicEngineepilotCoral+20 more·12k+ weekly downloads

How it works

1

Install

Install GraphQL-Markdown, then choose the Docusaurus plugin or a formatter preset that matches your docs stack.

2

Configure

Point it at your schema with SDL, introspection, GraphQL Config, or a code-first TS/JS schema source.

3

Generate

Run the CLI and generate Markdown or MDX documentation ready for your target ecosystem. 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, 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