Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

TypeDoc

$ typedoc Official Low Risk
TypeStrong · Design & Docs · Apache-2.0 · macos / linux / windows

TypeDoc (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.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
npm install typedoc
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

First-class --json <file> reflection export, --emit none dry validation, --treatWarningsAsErrors, and --logLevel flags.

  • --json emits complete structured reflection metadata
  • --emit none enables zero-write doc validation
Trust & Safety 24 / 25

Purely offline TypeScript AST analysis with zero network calls or runtime execution of target code.

  • Uses TypeScript compiler AST without executing user code
Setup & Portability 13 / 15

Standard npm package (typedoc) running across macOS, Linux, and Windows wherever Node and TypeScript are installed.

  • Available via npm and npx
Utility & Efficiency 13 / 15

Gold-standard TypeScript API doc generator supporting monorepos (--entryPointStrategy packages) and plugins.

  • Accurate TypeScript type resolution and TSDoc tag validation
Maintenance & Lineage 9 / 10

Official TypeStrong project (TypeStrong/typedoc) actively maintained alongside TypeScript releases.

  • TypeStrong GitHub organization
Docs & Verifiability 8 / 10

Detailed CLI options reference at typedoc.org/options/.

  • Official docs at typedoc.org/options/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; analyzes local TypeScript source and tsconfig.json offline.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (Apache-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Validate TSDoc links and comments without emitting files
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

Export structured TypeScript API metadata as JSON
npx typedoc src/index.ts --json docs.json --emit none

Writes the full TypeDoc reflection AST to docs.json without generating static HTML.

Generate static HTML API documentation
npx typedoc src/index.ts --out docs

Renders browsable HTML API docs into ./docs from src/index.ts.

Strengths for Agents

  • + Native --json API reflection export and --emit none --treatWarningsAsErrors read-only validation.
  • + Backed directly by the TypeScript compiler for accurate type links and monorepo support.

Caveats & Pitfalls

  • ! TypeScript-only; requires a valid tsconfig.json and resolved node_modules types.
  • ! --json writes to a file path rather than stdout, and large codebases can produce multi-MB JSON files.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI