AI Documentation Generator
Cloud AI first with on-device WebLLM fallback
Source
Examples
Typed function
export function parseDuration(input: string): numberA fully typed signature — the model documents the params and the return value.
Options object
interface FetchOptions { retries?: number; timeoutMs?: number; signal?: AbortSignal }Optional members become @property lines; verify any defaults it claims.
Class method
class Cache { get(key: string): string | undefined { /* … */ } }Method docs including the undefined-on-miss case.
About this tool
Cloud-generated JSDoc/TSDoc blocks with simple parameter names checked against the submitted source.
How to use this tool
Paste typed source
A function signature with parameter and return types gives the best docs.
Review cloud processing
Source is sent to the DevTools server and a selected cloud AI provider; remove secrets before generating.
Generate
Get a JSDoc/TSDoc block you can paste above the declaration.
Edit descriptions
Adjust wording and add @defaultValue or @throws only where you verified them.
Use cases
Backfilling docs
Generate first-pass JSDoc for legacy helpers that never got documented.
Consistent style
Uniform @param/@returns blocks across a team's codebase.
Public API docs
TSDoc comments for library entry points, drafted in seconds.
Common mistakes
Mistake:Documenting untyped code and expecting precise types.
Fix:Add TypeScript types (or JSDoc types) to the input first — the model mirrors what it sees.
Mistake:Accepting hallucinated defaults and throws.
Fix:Check every @defaultValue and @throws against the implementation.
Mistake:Docs that restate the implementation.
Fix:Edit toward the contract — what it does and when to call it, not a line-by-line narration.
Frequently asked questions
JSDoc or TSDoc?
Output uses /** */ blocks with @param and @returns suitable for both JavaScript and TypeScript.
Should I paste docs verbatim?
Treat output as a draft — verify parameter names and types against your codebase.
References & standards
Related tools
Agent Tool Flowchart Builder
Design agentic tool-call DAGs with decision branches and bounded loops. Validates reachability, cycle handling, and emits clean Mermaid flowcharts — fully in your browser.
AI Agent Memory & Buffer Simulator
Compare sliding window, summary buffer, and vector memory strategies
AI API Client SDK Generator
Generate typed API client SDK files from OpenAPI specifications or cURL requests
AI Code Explainer
Explain code snippets with grounded cloud AI
AI Code Security Auditor
Scan source code for high-confidence OWASP Top 10 vulnerabilities
AI Code Translator
Translate code into idiomatic implementations in another language