AST-based comments
gen-comments reads JavaScript and TypeScript syntax trees, then writes stable JSDoc blocks for named declarations.
No AI. No LLM. No surprises.
Generate JSDoc from the AST, validate it in CI, and publish a static documentation site without AI, network calls, or runtime surprises.
Add JSDoc without hand-writing boilerplate.
npx gen-comments src --write
Turn source comments into static HTML.
npx gen-docs src --out docs --title "My API"
Fail pull requests when documentation drifts.
npx gen-comments src --check-drift
Built for teams
gen-comments reads JavaScript and TypeScript syntax trees, then writes stable JSDoc blocks for named declarations.
gen-docs builds a searchable multi-page HTML reference from documented source files.
Use check, drift, lint, and fix modes as plain exit-code based gates in GitHub Actions.
The companion ESLint plugin exposes jsdoc-scribe lint rules inside existing flat-config projects.
Ship path