Getting Started
Set up your local environment, run the CLI, and edit your first page.
Getting Started
Install the CLI
# bun (recommended)
bun add -d tangly
# or npm
npm i -D tanglyOr grab a standalone binary:
curl -fsSL https://tangly.dev/install.sh | shRun the dev server
From your project root (the directory holding docs.json):
tangly devTangly opens http://localhost:4321 and watches MDX, docs.json, and theme files for changes.
Edit a page
Every .mdx file in this project is a page. Open introduction.mdx, change a heading, save — the browser reloads.
Pages are wired into navigation by their slug in docs.json. See Navigation.
Build for production
tangly build --out ./distOutput is plain static HTML/CSS/JS. Drop ./dist on Vercel, Cloudflare Pages, Netlify, S3, or any static host.
Useful commands
| Command | What it does |
|---|---|
tangly init | Scaffold a new project (you just ran this). |
tangly dev | Run the dev server with HMR. |
tangly build | Produce the static dist/. |
tangly preview | Serve dist/ locally. |
tangly check | Validate docs.json + frontmatter. |
tangly migrate | Convert a mint.json project to Tangly. |
tangly add | Add a theme or component to your project. |
Working with Claude Code or Cursor
This repo includes two skills you can install into your agent:
npx skills add tanglify
npx skills add tech-documentationtanglify teaches the agent the Tangly CLI, schema, and conventions. tech-documentation teaches it how to write good docs (Diátaxis-grounded). Both make tangly-flavored work in an AI editor noticeably better.