
Security News
Cloudflare Introduces a Faster TypeScript Compiler Written in Rust
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.
@claudiu-ceia/nav
Advanced tools
TypeScript language-service navigation utilities for exported declarations, definitions, references, and symbol ranking.
npm install --save-dev @claudiu-ceia/nav typescript@^7
@claudiu-ceia/nav supports projects on TypeScript 5.9, 6, and 7. TypeScript 7.0 does not expose
a stable compiler API, so navigation uses its official TypeScript 6 compatibility package
internally while the target project can use the TypeScript 7 compiler.
npx @claudiu-ceia/nav --help
# or
nav --help
nav declarations [--json] [--no-color] <file>
nav definition <file>:<line>:<character>
nav references <file>:<line>:<character>
nav code-rank [--json] [--limit <n>] [--cwd <path>] [scope]
Location syntax:
<file>:<line>:<character>declarations: compact text by default, --json for structured output.definition: structured JSON output.references: structured JSON output.code-rank: compact text by default, --json for structured output.# list exported declarations from a file
nav declarations src/index.ts
# get symbol definition at a location
nav definition src/main.ts:42:17
# list references for a symbol at a location
nav references src/main.ts:42:17
# rank exported symbols by reference strength
nav code-rank src --limit 20
cwd.import {
codeRankCommand,
createService,
declarationsCommand,
definitionCommand,
formatCodeRankOutput,
formatDeclarationsOutput,
fromPosition,
getDeclarations,
getDefinition,
getReferences,
parseFilePosition,
rankCode,
referencesCommand,
relativePath,
runCodeRankCommand,
toPosition,
type CodeRankOptions,
type CodeRankResult,
type FilePosition,
type RankedSymbol,
} from "@claudiu-ceia/nav";
Core APIs:
getDeclarations(filePath): exported declarations/signatures for one file.getDefinition(filePath, line, character): definition target at one source location.getReferences(filePath, line, character): references for one source location.rankCode({ cwd?, scope?, limit? }): rank exported symbols by reference strength.CLI integration exports:
declarationsCommanddefinitionCommandreferencesCommandcodeRankCommandFrom monorepo root:
bun run nav -- --help
bun test packages/nav/__tests__
bun test --coverage packages/nav/__tests__
bun run typecheck
FAQs

Security News
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.