Introduction
Tangly is an open-source documentation framework that turns a folder of markdown into a fast, themed site you self-host.
~ 2 min read
Tangly
Tangly is an open-source documentation framework that turns a folder of markdown into a fast, themed site you self-host. Built on Astro, MDX, and Tailwind v4 — no proprietary runtime, no vendor lock-in, no monthly bill.
It’s small. It’s fast. It works the way coding agents already want to work.
Scaffold a project and see it render in under a minute.
Empty directory to deployed site in ten minutes.
35+ MDX components — Card, Tabs, Steps, OpenAPI, callouts, and more.
Every configuration field, with editor-driven validation.
What you get
- A typed schema for
docs.jsonwith JSON Schema autocomplete in any LSP-aware editor. - Five themes out of the box — tang, pith, pip, readable, geist. Switch with one config field.
- 35+ MDX components auto-injected. No imports, no setup.
- OpenAPI auto-routing — drop a spec, get pages with try-it-out.
- Pagefind search indexed at build time. Cmd-K modal included.
- Static-site fast — cold dev under 2s, builds under 30s for a hundred pages.
- Adapters for Vercel, Cloudflare Pages, Node, or plain static hosts.
- Skills for Claude Code + JSON Schema for Cursor — the agent integrations you’d build yourself, already done.
What you write
Two things — a config file and pages:
my-docs/
- docs.json
- introduction.mdx
guides/
- getting-started.mdx
images/
- hero.png
docs.json declares navigation and configures everything that isn’t content. Each .mdx file becomes a page. Frontmatter handles per-page metadata (title, description, icon, draft, noindex). Embedded blocks let you reuse content across pages without copy-paste drift.
Built for agents
Coding agents — Claude Code, Cursor, Copilot, Aider — work better when the surface they’re acting on is predictable. Tangly leans into that:
- Strict frontmatter schema. Agents fill it correctly because the rules are unambiguous.
- JSON Schema for
docs.json. Editor autocomplete in Cursor, VS Code, Zed, JetBrains. - Auto-generated
llms.txtandllms-full.txt— the standard way to expose docs to LLMs. - Per-page Markdown for agents. Append
.mdto any URL or sendAccept: text/markdownand you get the raw source — ~10× token reduction vs. HTML. - A bundled Claude Code skill (
tanglify) version-locked to the CLI. Knows every flag, every config field, every migration path.
See AI agents for the full picture.
Mintlify-compatible
Existing Mintlify projects render unmodified. Same components, same docs.json schema, same frontmatter. Run tangly migrate to clean up, then tangly dev. No source edits.
For the full compatibility matrix, see Migration → Compatibility.
What’s next
Two paths forward:
- First time? Quickstart gets you to a running dev server in 60 seconds. Tutorial takes you from empty directory to deployed site in ten minutes.
- Migrating from Mintlify? Migration guide handles the swap.
For everything else, the Components and Schema references cover what you’d want to look up.