Home/TypeScript
TypeScript · JSDoc

TypeScript JSDoc with AI
Auto-generated.

Wright AI reads your TypeScript call graph and writes complete JSDoc comments for every undocumented function — then watches for drift when your types change.

Start Freepip install wright
JSDoc
Doc styles supported
0
Config required
Free
No credit card

See it in action

Before and after — JSDoc style

Wright AI reads the function body, its callers, and its callees — generating documentation that reflects real intent, not just syntax.

BEFORE · undocumented
export async function refreshAuthToken(
  token: string,
  options?: { force?: boolean; audience?: string }
): Promise<AuthToken> {
  const decoded = verifyToken(token);
  if (!options?.force && !isNearExpiry(decoded)) return { token, refreshed: false };
  const newToken = await issueToken(decoded.userId, options?.audience);
  await invalidateToken(token);
  return { token: newToken, refreshed: true };
}
AFTER · wright generate
/**
 * Refreshes a JWT token if near expiry or forced.
 *
 * @param token - The existing JWT to evaluate for refresh.
 * @param options - Optional refresh configuration.
 * @param options.force - If true, refresh unconditionally.
 * @param options.audience - OAuth audience for the new token.
 * @returns Resolves to an AuthToken with a refreshed flag.
 */
export async function refreshAuthToken(
  token: string,
  options?: { force?: boolean; audience?: string }
): Promise<AuthToken> {

How it works

More than a docstring generator.

WrightAI generates, verifies and maintains documentation — so docs stay accurate as your TypeScript codebase evolves.

Call-graph context
Wright builds a dependency graph before generating. It reads what calls your function and what it calls — so docs describe purpose, not just mechanics.
Coverage tracking
Know the exact % of documented functions across every file. Set a minimum threshold and enforce it in CI so coverage never regresses.
Drift detection
When a function signature changes, Wright flags the stale docstring — as a VS Code gutter warning and a CI failure. No more silent documentation lies.
MCP for AI tools
Exposes your indexed docs to Claude Code, Cursor, and Copilot via MCP so every AI response is grounded in live, verified codebase knowledge.

Comparison

How Wright differs from alternatives.

Most tools for TypeScript documentation either render what exists or suggest one comment at a time. Wright does neither.

Writing manually
gap

JSDoc for a complex generic function takes 10+ min. Types drift as signatures evolve.

TypeDoc
gap

Generates an HTML site from existing JSDoc — it doesn't write the comments for you.

Copilot inline
gap

One suggestion at a time. No project-wide coverage, no CI enforcement, no drift alerts.

Wright AI
solves this

Batch-generates JSDoc documentation across your entire TypeScript codebase. Tracks coverage. Detects drift on every commit. Feeds live docs to AI tools via MCP. Free to start.

Documentation Intelligence Platform

Start documenting your TypeScript codebase.

Free VS Code extension · CLI · GitHub Action · MCP server.
No credit card required.

Start FreeRead the Docs