TypeDoc
$ typedoc Official Low RiskTypeDoc (typedoc) uses the TypeScript compiler API to extract JSDoc/TSDoc comments and type signatures into static HTML or structured reflection JSON (--json docs.json). With --emit none and --treatWarningsAsErrors, agents can also validate documentation coverage and broken @link tags without writing HTML.
npm install typedoc Extracting a project's full TypeScript API reflection graph via typedoc --json uses the local tsconfig.json compiler context directly without MCP schema overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --json <file> reflection export, --emit none dry validation, --treatWarningsAsErrors, and --logLevel flags.
--jsonemits complete structured reflection metadata--emit noneenables zero-write doc validation
Purely offline TypeScript AST analysis with zero network calls or runtime execution of target code.
- Uses TypeScript compiler AST without executing user code
Standard npm package (typedoc) running across macOS, Linux, and Windows wherever Node and TypeScript are installed.
- Available via
npmandnpx
Gold-standard TypeScript API doc generator supporting monorepos (--entryPointStrategy packages) and plugins.
- Accurate TypeScript type resolution and TSDoc tag validation
Official TypeStrong project (TypeStrong/typedoc) actively maintained alongside TypeScript releases.
- TypeStrong GitHub organization
Detailed CLI options reference at typedoc.org/options/.
- Official docs at typedoc.org/options/
Security, Auth & Guardrails
None required; analyzes local TypeScript source and tsconfig.json offline.
100% free, offline, and open-source (Apache-2.0).
# TypeDoc Agent Rules - Use `--emit none --treatWarningsAsErrors` for read-only doc validation in CI or agent checks. - Pass `--json <file> --emit none` when extracting machine-readable API symbols instead of scraping HTML. - Ensure `tsconfig.json` and project dependencies are installed before invoking `typedoc`.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx typedoc src/index.ts --emit none --treatWarningsAsErrors
Type-checks documentation comments and @link references without writing HTML or JSON output (--emit none).
Controlled Writes & Previews
npx typedoc src/index.ts --json docs.json --emit none
Writes the full TypeDoc reflection AST to docs.json without generating static HTML.
npx typedoc src/index.ts --out docs
Renders browsable HTML API docs into ./docs from src/index.ts.
Strengths for Agents
- + Native
--jsonAPI reflection export and--emit none --treatWarningsAsErrorsread-only validation. - + Backed directly by the TypeScript compiler for accurate type links and monorepo support.
Caveats & Pitfalls
- ! TypeScript-only; requires a valid
tsconfig.jsonand resolvednode_modulestypes. - !
--jsonwrites to a file path rather than stdout, and large codebases can produce multi-MB JSON files.