Docusaurus OpenAPI Docs

Docusaurus plugin that generates polished API reference docs directly from an OpenAPI spec

Tool
npm
v5.2.0
1,100stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
92/100Excellent
Development Activity100
Maintenance100
Community72
Maturity56
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture78
Code Quality82
Innovation75
Learning Curve68

docusaurus-plugin-openapi-docs extends the Docusaurus v3 CLI with commands that turn an OpenAPI (or Postman) specification into ready-to-render MDX documentation pages. Rather than hand-writing API reference pages, teams point the plugin at a spec file or URL and run docusaurus gen-api-docs, which walks every path/operation and emits one MDX document per endpoint — complete with request/response schemas, parameter tables, and example payloads — fully compatible with Docusaurus’s plugin-content-docs so the generated pages slot into the existing docs sidebar and navigation.

The project ships as three companion packages: docusaurus-plugin-openapi-docs (the generator and CLI commands), docusaurus-theme-openapi-docs (the React components and theme that render the generated MDX with an interactive “Try It” panel for making live API calls), and create-docusaurus-openapi-docs (a scaffolding CLI for bootstrapping a new project). Maintained by Palo Alto Networks and used widely across API-documentation sites, it keeps reference docs in sync with the source spec by regenerating on demand rather than requiring manual edits whenever the API changes.

What You Get

  • A docusaurus gen-api-docs CLI command that converts an OpenAPI (or Postman collection) spec into per-endpoint MDX files
  • A companion theme package (docusaurus-theme-openapi-docs) with React components rendering parameters, schemas, and an interactive “Try It” request panel
  • Support for multiple specs/versions and selective regeneration (gen-api-docs <id>) so large APIs can be split across docs instances
  • A scaffolding CLI (create-docusaurus-openapi-docs) to bootstrap a new Docusaurus + OpenAPI docs project from scratch
  • Full compatibility with Docusaurus’s built-in plugin-content-docs, so generated pages behave like any other doc page in sidebar/search/versioning

Common Use Cases

  • API platform teams maintaining REST API reference docs that need to stay in sync with an evolving OpenAPI spec without manual MDX editing
  • Documentation teams migrating from a standalone API-reference tool (e.g. Redoc, Swagger UI) into a unified Docusaurus docs site alongside guides and tutorials
  • Developer-experience teams wanting an interactive “Try It” request panel embedded directly in generated API reference pages
  • Projects publishing multiple API versions or multiple specs that need separate, independently regenerable doc sections

Under The Hood

Architecture - The plugin’s core logic lives under packages/docusaurus-plugin-openapi-docs/src/openapi/ (spec parsing and normalization, with a dedicated utils/ subfolder and fixture-driven tests) and src/markdown/ (MDX generation from the parsed spec, snapshot-tested against __snapshots__), with src/sidebars/ handling automatic sidebar-entry generation so generated pages integrate into Docusaurus navigation without manual config. The plugin hooks into Docusaurus’s plugin lifecycle to register the gen-api-docs CLI command, while the separate docusaurus-theme-openapi-docs package supplies the React components (parameter tables, schema viewers, the “Try It” panel) that render the generated MDX at build/runtime — keeping generation and rendering as independently versioned concerns. Tech Stack - TypeScript throughout, built against the Docusaurus v3 plugin/theme APIs, tested with Jest (unit/snapshot tests) and Cypress (end-to-end), formatted with Prettier, and distributed as three separate npm packages from one monorepo. Code Quality - The openapi/__fixtures__ and markdown/__snapshots__ directories show a fixture-and-snapshot testing strategy well suited to a code-generation tool — verifying that specific OpenAPI inputs produce stable, expected MDX output — backed by CI validation workflows and a documented contribution process; 71 contributors and 84 releases over roughly four years indicate sustained maintenance rather than a one-off internal tool. API Design - Configuration is a plain Docusaurus plugin entry (spec path/URL, output directory, template overrides) plus a single generation command, keeping the mental model consistent with how Docusaurus users already configure other plugins; the split between generation (plugin) and rendering (theme) does add one extra install step compared to an all-in-one package, but it lets teams override rendering independently of the generator.

Used by 7 apps in this directory

TypeScript
59%
Other

agenta

Developer Tools · Devops · AI Development

4,489

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript59%
Python39%
Updated today
Python
49%
Other

Airbyte

Developer Tools · Data Engineering

21,916

Open-source ELT platform with 600+ connectors for moving data from any source to warehouses, lakes, and AI agents.

View details
95
Repo Health
80
Technical
67
Dependency
Built with
Python49%
Kotlin42%
Updated today
Python
54%
Other

authentik

Authentication · Security

24,980

The self-hosted Identity Provider that replaces Okta, Auth0, and Entra ID with a unified SSO platform supporting SAML, OAuth2/OIDC, LDAP, RADIUS, and WebAuthn.

View details
92
Repo Health
81
Technical
68
Dependency
Built with
Python54%
TypeScript33%
Updated today
TypeScript
45%
Other

Convex Backend

Developer Tools · Databases

12,394

Open-source reactive database that lets developers build live-updating apps with pure TypeScript, strong consistency, and real-time subscriptions—no separate API layer required.

View details
88
Repo Health
82
Technical
70
Dependency
Built with
TypeScript45%
Rust43%
Updated today
Python
64%
BSD 3

Flagsmith

Developer Tools · Devops · Ab Testing Experimentation

6,518

Open-source feature flagging, remote config, and A/B/multivariate testing platform for web, mobile, and server-side apps — self-host or use the hosted SaaS.

View details
91
Repo Health
82
Technical
65
Dependency
Built with
Python64%
TypeScript31%
Updated today
TypeScript
99%
AGPL 3.0

Karakeep

Bookmarks Archiving

28,454

Self-hosted bookmark manager that captures links, notes, images, and PDFs with AI tagging, full-text search, and automatic archiving.

View details
88
Repo Health
76
Technical
67
Dependency
Built with
TypeScript99%
Updated 3 days ago
TypeScript
51%
Other

Mattermost

Team Chat · Collaboration · Devops

38,838

Open core, self-hosted team collaboration with chat, AI agents, voice calling, and deep DevOps integrations — all under your control.

View details
96
Repo Health
87
Technical
66
Dependency
Built with
TypeScript51%
Go40%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search