Skip to content
FunCoding

RapiDoc

RapiDoc: open-source tools for OpenAPI and Arazzo: the <rapi-doc> web component for interactive API references, a docs-as-code developer portal, a mock server, Arazzo workflows, PDFs and MCP

Star
1,918
License
MIT
Last commit
Nov 24, 2026

RapiDoc logo

npm npm MIT license

RapiDoc

Open-source tools for OpenAPI and Arazzo: interactive API references, embedded endpoints, PDFs, a mock server, workflows and developer portals.

RapiDoc started as <rapi-doc>, a web component that turns an OpenAPI spec into an interactive API reference. It is now a family of tools that share one spec reader, one look and one set of names, from a single HTML element to a complete developer portal with sign-in. Everything here is MIT-licensed. Website: rapidocui.com.

The RapiDoc family

ProductWhat it doesPackageDocs
RapiDoc <rapi-doc>Interactive API reference from an OpenAPI 3.0, 3.1 or Swagger 2.0 spec, with Try, an in-browser mock, themes and MCP server export. One HTML element, no runtime dependencies.rapidocrapidocui.com/docs
RapiDoc Mini <rapi-doc-mini>A few operations, with Try, inside a blog post, guide or dashboard.rapidocDocs
RapiFlow <rapi-flow>Draws the workflows of an Arazzo spec next to the API reference and runs them in the browser, against the API or a mock.rapidoc (rapidoc/flow)flow.rapidocui.com
RapiDoc PortalA docs-as-code developer portal: OpenAPI specs and Markdown or Markdoc guides become one static site with an API catalog, references, search, workflows, MCP manifests and llms.txt, plus optional single sign-on (OpenID Connect) with access rules.@rapidoc/portal, @rapidoc/serverportal.rapidocui.com
RapiMockA mock server from an OpenAPI spec: request validation, token and scope checks, state between requests, a UI to look inside, and endpoints for tests in any language.@rapidoc/mockmock.rapidocui.com
RapiPdf <rapi-pdf>Turns an OpenAPI spec into a PDF, in the browser or in Node.rapipdfDocs
RapiDoc CLIThe rapidoc command: preview, validate, lint and bundle specs, write PDFs, run the mock, turn specs into MCP servers, and build portals.@rapidoc/cliDocs
IntegrationsRapiDoc for Express, Fastify, Hono, FastAPI, ASP.NET Core, Go, Starlight, VitePress and Docusaurus.belowDocs

See it running: the examples on rapidocui.com, and Rapid Parcels, a demo developer portal with several APIs, guides, workflows and sign-in.


RapiDoc in one HTML file

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
  </head>
  <body>
    <rapi-doc spec-url="https://petstore3.swagger.io/api/v3/openapi.json" color-scheme="dark"></rapi-doc>
  </body>
</html>
  • OpenAPI 3.0, 3.1 and Swagger 2.0, with large specs (thousands of operations) kept fast by three render styles: read, view and focused.
  • Try every operation from the page, with API keys, HTTP Basic, bearer tokens and OAuth 2.0, or answer requests in the page with the built-in mock (mock-server).
  • Any framework: plain HTML, React, Vue, Angular, Svelte or Lit. <rapi-doc> is a standard custom element, with TypeScript types for React and Vue.
  • Your brand: light and dark color schemes, theme presets, CSS custom properties, CSS parts and slots for your own markup.
  • For AI agents: an Export MCP Server button turns the spec on the page into an MCP server project.
  • Accessible: the sidebar works with a keyboard and a screen reader.

Every attribute, method and event: the reference.


A developer portal with RapiDoc Portal

npm create rapidoc@latest my-portal
cd my-portal && npm install
npx rapidoc dev        # http://localhost:4321
npx rapidoc build      # a static site in ./dist

Specs go in specs/, guides in docs/, and rapidoc.config.yaml ties them together:

site:
  title: Acme Developer Portal
  url: https://developers.acme.com
navigation:
  - label: Guides
    items:
      - getting-started         # docs/getting-started.md
  - label: Orders API
    api: orders
apis:
  - id: orders
    spec: ./specs/orders.yaml   # the reference page at /apis/orders
  • Guides and references in one site, with one sidebar, one search and live API operations inside guides ({% api-operation %}).
  • Arazzo workflows drawn and runnable in a guide ({% workflow %}).
  • For AI agents: every page as Markdown, llms.txt and llms-full.txt, MCP manifests for each API, and a /mcp endpoint with rapidoc serve.
  • Sign-in and access rules: with an OpenID Connect provider, rapidoc serve keeps pages, specs and search results for signed-in readers, groups or emails.
  • Static output for any host: GitHub Pages, Netlify, S3, Nginx.
  • Coming from Redocly or Zudoku? npx rapidoc migrate --from redocly|zudoku converts the config.

Quickstart and configuration: portal.rapidocui.com.


A mock server with RapiMock

npx @rapidoc/cli mock ./openapi.yaml

Validates requests against the spec, checks tokens and OAuth scopes, keeps state between requests (--stateful), and has a UI to look inside. Docs: mock.rapidocui.com.


Integrations

Official packages that add a RapiDoc reference to your app or docs site. Each one ships a pinned RapiDoc bundle (nothing is loaded from another site unless you ask for a CDN), takes the same options, and serves the OAuth sign-in return page for you.

Server frameworks: the reference at /docs, reading your app's OpenAPI document.

FrameworkInstallUse
Hononpm i @rapidoc/honoapp.use(rapidoc({ specUrl: "/openapi.json" }))
Expressnpm i @rapidoc/expressapp.use(rapidoc({ specUrl: "/openapi.json" }))
Fastifynpm i @rapidoc/fastifyawait fastify.register(rapidoc, { specUrl: "/openapi.json" })
FastAPI, Starlettepip install rapidocsetup_rapidoc(app)
ASP.NET Coredotnet add package RapiDoc.AspNetCoreapp.MapRapiDoc();
Go (net/http, chi, Gin, Echo, Fiber, Huma)go get github.com/rapi-doc/rapidoc-gorapidoc.Handler(rapidoc.Options{SpecURL: "/openapi.json"})

Documentation sites: API reference pages in your site's own layout, with the operations in its sidebar.

Site generatorInstall
Starlightnpm i @rapidoc/starlight
VitePressnpm i @rapidoc/vitepress
Docusaurusnpm i @rapidoc/docusaurus

React, Next.js, Vue, Nuxt, Angular and Svelte need no package: <rapi-doc> is a standard custom element. Setup for all of the above is in the framework integration guide.

Building one for another framework or language? Start from @rapidoc/embed and the integration guide: it defines the options, routes and HTML every integration shares, with fixtures to test a port against.


Contributing

This repository holds every package of the family, the four websites and their tests. How to set it up, build, test and release: CONTRIBUTING.md.

Sponsors

  • Hosting sponsored by Simafri (managed VPS)
  • AI coding tools sponsored by Anthropic (Claude)

License

MIT © Mrinmoy Majumdar

Similar MCP servers

Official

Git

Read, search and manipulate Git repositories: status, diff, log, commit, branch and more

MOmodelcontextprotocol/servers92k200 new stars in the last 7 days

Featured

headroom

Compress tool outputs, logs and files, cutting tokens by 20%-95% without changing answers.

HEheadroomlabs-ai/headroom81k538 new stars in the last 7 days

Featured

Codebase Memory

Index a codebase into a persistent knowledge graph and query its structure with far fewer tokens.

DEDeusData/codebase-memory-mcp49k309 new stars in the last 7 days

Featured

GitHub

Manage repos, issues and PRs, analyze code and CI/CD workflows using natural language.

GIgithub/github-mcp-server35k181 new stars in the last 7 days

Featured

serena

Retrieve code semantically, edit, refactor and debug at the symbol level.

ORoraios/serena32k209 new stars in the last 7 days

Compiler Explorer

Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links

COcompiler-explorer/compiler-explorer19k7 new stars in the last 7 days