Getting Started โ
Claudux scans your code and drafts a VitePress docs site with Claude or Codex, then lets you preview it locally and update it in place. Generation runs on your machine against your own authenticated CLI.
When a committed docs-structure.json is present, the repository owns the page tree, required sections, pinned content, and source-to-doc mapping. Claudux switches the backend to read-only section-patch mode and applies the validated patches itself. Without that manifest, the backend can write within the documentation boundary, so review the generated diff.
Installation โ
curl -fsSL https://raw.githubusercontent.com/firstbitelabsllc/claudux/main/install.sh | shOr run it once without installing: npx github:firstbitelabsllc/claudux update.
Requirements:
- Node.js โฅ 18.0.0
- An authenticated Claude CLI, or an authenticated Codex CLI when
CLAUDUX_BACKEND=codex - A Git repository for
updateandserve
Run claudux check to verify Node and the selected backend before generation.
Quick Start โ
Navigate to your project:
bashcd your-projectGenerate documentation:
bashclaudux updatePreview locally:
bashclaudux serve # Opens http://localhost:5173
First Run Experience โ
When you run claudux update for the first time:
- Project Detection: Automatically detects your project type (React, Next.js, Python, etc.)
- Code Analysis: Scans source files to understand structure and patterns
- Documentation Generation: Drafts docs directly, or returns bounded section patches when a manifest is present
- Link Validation: Reports broken internal links;
claudux update --strictfails if they remain
Interactive Menu โ
Run claudux without arguments to access the interactive menu:
$ claudux
๐ claudux - Your Project Documentation
Generate docs from your codebase ยท powered by Claude AI
Select:
1) Generate docs (scan code โ markdown)
2) Serve (vitepress dev server)
3) ExitBasic Workflow โ
# One-time setup
curl -fsSL https://raw.githubusercontent.com/firstbitelabsllc/claudux/main/install.sh | sh
cd your-project
# Regular usage
claudux update # Regenerate docs when code changes
claudux serve # Preview changes locallyThe generated documentation is created in docs/. Claudux's VitePress scaffolder supplies a responsive theme, local search, and breadcrumbs when it needs to create the site support files. The backend may generate or update the project-specific navigation and VitePress configuration, so validate the built site before publishing it.