Skip to content

Install & quick start

Requirements

  • Node.js ≥ 20
  • npm, pnpm, yarn, or any other package manager

Install

As a project dev dependency:

Terminal window
npm install -D beacon-docs

Or run without installing:

Terminal window
npx beacon-docs init
Terminal window
npx beacon-docs init

The wizard detects your project (reads package.json, suggests add-ons based on installed dependencies like stripe or @prisma/client), then walks you through:

  1. Project type (7 options: web-app, backend-service, library, cli-tool, mobile-app, monorepo, custom)
  2. Categories to enable (6 core + 6 opt-in)
  3. AI agents to support (Claude, Cursor, Codex, Gemini)
  4. Whether to merge or replace existing CLAUDE.md / .cursorrules if present

Non-interactive (CI / scripted setup)

Terminal window
npx beacon-docs init \
--yes \
--type=library \
--with=operations \
--without=backlog \
--agents=claude,cursor
FlagPurpose
--yesSkip the interactive wizard
--type=<type>One of: web-app, backend-service, library, cli-tool, mobile-app, monorepo, custom
--with=a,bAdd categories beyond your project type’s defaults
--without=a,bRemove categories from defaults
--agents=a,bAI agents to support: claude, cursor, codex, gemini
--language=enDocs language (only en ships in v0.1)

What gets created

your-project/
├── CLAUDE.md ← generated, read by Claude Code
├── .cursorrules ← generated, legacy Cursor
├── .cursor/rules/beacon.mdc ← generated, modern Cursor
├── package.json ← gets a `docs:lint` script
└── docs/
├── README.md ← master index
├── _meta/
│ ├── convention.md ← single source of truth (you edit this)
│ └── beacon.config.json
├── reference/
├── architecture/
├── adr/
├── plans/
│ └── _archive/
├── backlog/
└── evaluations/

Categories enabled depend on your project type. See Commands for what to do next.