Installation
Install Tangly into a new or existing project.
~ 1 min read
Installation
Requirements
- Node 20+ (or Bun 1.2+).
- A package manager —
bun(recommended),pnpm,npm, oryarnall work. - A directory you want to render. Tangly does not impose a folder structure beyond
docs.jsonat the root.
Install
bun add -D tanglypnpm add -D tanglynpm install --save-dev tanglyyarn add -D tanglyThe tangly binary becomes available via bun x tangly, pnpm exec tangly, npx tangly, etc.
Project layout
A minimal Tangly project is two files:
my-docs/
- docs.json navigation + branding (required)
- introduction.mdx
- package.json
A typical project grows like this:
my-docs/
- docs.json
- introduction.mdx
- quickstart.mdx
guides/
- concepts.mdx
- advanced.mdx
reference/
- api.mdx
images/
- logo.svg
theme/ optional component overrides
components/
- Card.astro
- tangly.config.ts optional content collections
- package.json
Tangly does not require src/, pages/, or any framework files. The MDX files at any depth are the source of truth; docs.json decides which ones appear in navigation. Files prefixed with _ (e.g. _section.mdx) and the snippets/ folder are skipped.
Editor support
Add this to the top of docs.json for autocomplete + inline validation:
{
"$schema": "./node_modules/tangly/schema/docs.json",
"name": "My docs"
}VS Code, Cursor, JetBrains, and any editor with a JSON-Schema language server pick this up automatically. You’ll get IntelliSense for every nav field, color token, and analytics provider.
Optional: scripts
Wire dev/build into your package.json:
{
"scripts": {
"dev": "tangly dev",
"build": "tangly build",
"preview": "tangly preview",
"check": "tangly check --strict"
}
}Agent skills
Tangly ships two Claude Code skills you can install into any project that uses Claude Code:
tanglify— drives the Tangly CLI, scaffoldsdocs.json, ports from Mintlify, picks deploy adapters.tech-documentation— Diátaxis-grounded principles for writing the actual content.
Install via the npm skills convention:
npx skills add tanglify
npx skills add tech-documentationOr point at the repo directly:
npx skills add github:tanglydocs/tangly/skills/tanglify
npx skills add github:tanglydocs/tangly/skills/tech-documentationThe skills live under skills/ and are versioned alongside the framework — when CLI flags or schema fields change, the skill content moves with them.