Getting Started

Set up your local environment, run the CLI, and edit your first page.

Getting Started

Install the CLI

bash
# bun (recommended)
bun add -d tangly

# or npm
npm i -D tangly

Or grab a standalone binary:

bash
curl -fsSL https://tangly.dev/install.sh | sh

Run the dev server

From your project root (the directory holding docs.json):

bash
tangly dev

Tangly 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

bash
tangly build --out ./dist

Output is plain static HTML/CSS/JS. Drop ./dist on Vercel, Cloudflare Pages, Netlify, S3, or any static host.

Useful commands

CommandWhat it does
tangly initScaffold a new project (you just ran this).
tangly devRun the dev server with HMR.
tangly buildProduce the static dist/.
tangly previewServe dist/ locally.
tangly checkValidate docs.json + frontmatter.
tangly migrateConvert a mint.json project to Tangly.
tangly addAdd a theme or component to your project.

Working with Claude Code or Cursor

This repo includes two skills you can install into your agent:

bash
npx skills add tanglify
npx skills add tech-documentation

tanglify 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.

↑↓ navigate open esc close