fossilize-cli
v0.1.0
Published
Generate documentation from actual code execution evidence — test-driven docs that never lie.
Maintainers
Readme
fossilize-cli
Generate documentation from actual code execution evidence — test-driven docs that never lie.
The Problem
Documentation is usually broken in one of three ways:
- Manual and stale — engineers ship code faster than they update docs
- Auto-generated but shallow — signatures and comments, not real behavior
- AI-generated but ungrounded — sounds polished, fabricates examples
The Solution
Fossilize generates docs from evidence:
- Test descriptions become behavior documentation
- Export signatures become API references
- Route handlers become API docs (with real status codes from tests)
- Import graphs become architecture docs
- Git history becomes changelogs
Every example is REAL — from test execution, code signatures, or git history. Never fabricated.
Installation
npm install -g fossilize-cliUsage
# Generate all docs for current project
fossilize .
# Output to specific directory
fossilize . --output docs/
# Only generate README
fossilize . --readme-only
# Output doc structure as JSON
fossilize . --format json
# Show what would be generated (no files written)
fossilize . --dry-run
# Skip test execution
fossilize . --skip-tests
# Skip git analysis
fossilize . --skip-gitWhat Gets Generated
| Document | Source |
|----------|--------|
| README.md | package.json + exports + test summary |
| docs/api.md | Route handlers + test-verified status codes |
| docs/architecture.md | Import graph + directory structure |
| docs/changelog.md | Git history with conventional commit grouping |
Supported Stacks
- Languages: TypeScript, JavaScript (Python/Rust/Go detection planned)
- Frameworks: Next.js (App Router), Express, Fastify, Hono
- Test Runners: Vitest, Jest, Mocha (pytest/cargo test detection planned)
Key Principle
If no test exists for a function, Fossilize documents the signature but notes "no test coverage." It will never fabricate examples. Trust comes from proof.
License
MIT
