MonoDocs
CIStale-docs check on every pull request

Docs for every package in your monorepo.

Per-package pages, API reference from your types and changelogs, checked against the code on every pull request.

Why monorepo docs go wrong

Docs drift.

A prop is renamed in one package and three pages keep the old name for months.

Every page lists the code it describes. When that code changes, the page is flagged in the same pull request.

READMEs scatter.

Each package has a README, a wiki page and a Notion doc, and none of them agree.

One site with a section per package, built from the files that already sit next to the code.

Which page changed?

A release touches twelve packages. Nobody can say which docs need a second look.

The workspace graph follows the change through every dependent package and lists the pages it reaches.

One docs site. A section for every package.

MonoDocs reads your workspace and builds the docs from it, so the structure of the site is the structure of the repo.

packageversionpagescoverage
@kiln/ui3.2.01896%
@kiln/utils1.8.17100%
@kiln/api-client2.0.31181%
@kiln/config0.4.03100%
Example

Per-package docs

Every package gets its own section with its README, guides, version and owners, found from your workspace config.

/** Size of the button. */
size?: "sm" | "md" | "lg"
/** @default false */
loading?: boolean

API reference from types

Signatures, props and JSDoc are read from TypeScript, so the reference cannot disagree with the code.

  • 3.2.0Button: add loading prop
  • 3.1.2Dialog: trap focus on open
  • 3.1.0Theme tokens for dark mode

Changelogs

Built from Changesets or conventional commits, one per package, linked to the pull request.

monodocs / stale-check

@kiln/ui Button props changed

2 pages mention it

Stale-docs check

A pull request that changes documented code gets a check listing the pages that now need a look.

utilsuiapiweb

Workspace graph

See which packages depend on which, and which docs a change in one of them reaches.

@kiln/ui
3.2.03.1.x2.x1.x

Versioning

A version switcher per package. Readers on an older release still read the docs for that release.

Search across packages

One search box for every package, every version and every symbol. Press ⌘K anywhere.

Package names, versions and numbers on this page are examples.

Click a package. Then change its code.

An example workspace with one app and four packages. The docs pane shows what MonoDocs generates for each of them.

kiln / docsExample

packages / ui

@kiln/ui

3.2.0up to date

React components and design tokens shared by every app in the workspace.

$ pnpm add @kiln/ui

API

variant"solid" | "ghost"Visual style
size"sm" | "md" | "lg"Height and padding
loadingbooleanShows a spinner, blocks clicks

Changelog

  • 3.2.0Button: add loading prop
  • 3.1.2Dialog: trap focus on open

Pages

  • Button
  • Dialog
  • Theming
  • Tokens
  • Accessibility

Depends on

@kiln/utils, @kiln/config

packages/ui/src/button.tsx

Three commands from repo to docs site.

~/kiln
$ npx monodocs initFound pnpm workspaces: apps/*, packages/*✓ 5 packages detected✓ wrote monodocs.config.ts✓ added docs/ to packages/ui, packages/utils, +3

Works with the workspace you already have.

No migration and no new build tool. MonoDocs reads your workspace config and leaves it alone.

  • Turborepo
  • Nx
  • pnpm workspaces
  • yarn workspaces
  • npm workspaces
  • Changesets
  • TypeScript
  • JSDoc

Tool names belong to their owners and are listed for compatibility only. MonoDocs is not affiliated with or endorsed by them.

Pay for editors. Readers are free.

Every plan has unlimited readers. Open source projects get Team at no cost. Prices in US dollars.

Free

One workspace, trying it out.

$0up to 3 editors
Get started
  • 1 workspace, up to 10 packages
  • API reference from TypeScript
  • Changelogs from Changesets
  • Search across packages
  • Markdown export

Team

Most teams

Platform teams with a growing repo.

$13per editor / monthbilled yearly
Get started
  • Unlimited packages
  • Stale-docs check on pull requests
  • Workspace graph and impact lists
  • Versioned docs per package
  • Private docs and a custom domain

Business

Several monorepos, audits to pass.

$27per editor / monthbilled yearly
Talk to us
  • Everything in Team
  • SAML single sign-on and SCIM
  • Access rules per package
  • Audit log export
  • Priority support

Questions, answered.

Which monorepo tools does it support?

Any repository that declares workspaces: pnpm, yarn and npm workspaces, with or without Turborepo or Nx on top. MonoDocs reads the workspace config to find packages. It does not run your build or replace your task runner.

Where do the docs live?

In your repository, as Markdown or MDX in each package (packages/ui/docs/, for example). MonoDocs builds the site from those files, the README and your TypeScript types. Edits made in the web editor arrive as a pull request.

How does the stale-docs check work?

Each page lists the files or symbols it describes, either by hand or from the code it links to. When a pull request changes one of them, the check lists the pages that now need a look. You choose whether that warns or fails.

Does it need TypeScript?

No. API reference from types needs TypeScript or JSDoc. Without them you still get per-package docs, changelogs, versioning, search and the stale-docs check for the files a page lists.

How are versions handled?

Each package has its own version switcher. When a package publishes a new version, the docs for the previous one are kept and stay readable at their own URL.

Can we host it ourselves?

No. MonoDocs is a hosted service. Your content stays in your repository as plain Markdown, so it works without us, and any workspace can be exported on every plan.

Is the CLI shown on this page final?

The commands on this page (monodocs init, dev, build) are examples of how the CLI works. Flags and output may change before general availability.

Talk to an engineer.

Tell us how many packages you have and where the docs live today. We reply within one business day.

Monday to Friday, 9:00 to 18:00 Eastern
MonoDocs Inc.
120 Wall Street, Floor 22
New York, NY 10005

Every package documented. Never out of date.