Latestv0.2.122 · Respect custom beforeFiles Markdown handlers

Documentation thatjust works with

Write MDX once. Ship docs for people, with Ask AI, MCP, and llms.txt built in for agents.

Get started
pnpm dlx @farming-labs/docs init
  • Next.js
  • TanStack Start
  • Farm.js
  • SvelteKit
  • Astro
  • Nuxt
docs.farming-labs.dev/docs
The @farming-labs/docs documentation site: sidebar navigation, search, page actions, and MDX content

Powering docs for 100+ teams building with AI

Ask AIDocs

Ask AI

Cited answers from your MDX.

Ask AI · docs.acme.devcited
How do I expose my docs to agents?
Docs assistant

MCP is on by default: search_docs and read_page at /mcp [1]

Every page also answers at its .md URL [2]

1 · customization/mcp2 · llms-txt
Ask a question…⌘ I
Markdown mirrorsDocs

Readable by agents

Every page at a .md URL.

agent sessionzsh
$ curl acme.dev/docs/quickstart.md# Quickstart> Install the CLI, then run init. ## 1. Install```bashpnpm dlx @farming-labs/docs init```200 · text/markdown · 1.8 kB
Page actionsDocs

Hand any page to an LLM

Open in ChatGPT, Claude, or Cursor.

docs / configurationmdx

Configuration

Every option in docs.config.ts

Copy page
Open in ChatGPT
Open in Claude
Open in Cursor
View as Markdown
API referenceDocs

OpenAPI reference

Request console and typed SDKs.

GET/v1/projects/{id} Send
id pathprj_8f2a1c
include querymembers
200 OK · 84mscurlTSPython
{
  "id": "prj_8f2a1c",
  "name": "Acme Docs",
  "members": ["ada"]
}
Under the hood

One source, every reader.

Markdown, llms.txt, MCP, and discovery files from the same MDX.

MCP guide
Also built in
Twelve themes

Presets or createTheme().

llms.txt and sitemaps

Generated from your content.

Analytics

Docs, search, AI, and MCP events.

Changelogs

Release notes from MDX, built in.

CLI scaffolding

init scaffolds everything.

Open Graph images

Static or dynamic, per page.

Internationalization

Locales and localized navigation.

Feedback

Send it anywhere with onFeedback().

Frameworks

Runs on the framework you already use.

No framework? No problem.Frameworkless mode: a docs.json and a docs/ folder is all it takes.pnpm exec docs dev
Migrations

Already have docs? Bring them with you.

Move content, navigation, assets, and existing URLs from your current platform. Each guide is agent-readable, so your assistant can run it.

Quick start

Up and running in one command.

The CLI detects your framework and writes every file for you.

pnpm dlx @farming-labs/docs init
tsx
import { defineDocs } from "@farming-labs/docs";import { pixelBorder } from "@farming-labs/theme/pixel-border";export default defineDocs({  entry: "docs",  theme: pixelBorder(),  ai: { enabled: true },  metadata: { titleTemplate: "%s – Acme Docs" },});
Docs cloud

You ship the code. Cloud writes the docs.

Git-backed editing, AI drafts, managed search, and one-command deploys.

docs deploypreview
$ pnpm dlx @farming-labs/docs deploy✓ Synced repo graph · 842 sections✓ Drafted 3 pages from merged PRs✓ Opened a draft PR for review✓ Indexed search · Ask AI readyProduction: https://acme.docs.app
Start building

Docs for your users, and their agents.

Get started