CLI tool to analyze Next.js App Router projects and generate static fetch() API route definitions. Version 0.6.0, updated monthly. Differentiates from other route analyzers by focusing specifically on App Router routes, detecting client vs server context, duplicate routes, unsupported dynamic fetches, and cache signals. Outputs JSON or TypeScript files for type-safe API consumption.
npm install next-to-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Running next-to-fetch CLI to analyze routes and output JSON, then generate a TypeScript API module.
Ensure project uses Next.js 13+ with app/ directory.
Run from project root or pass absolute/relative paths to route files or output.
Check output path or use version control before running.
Run 'npm install --save-dev next-to-fetch' first, then use npx from project directory.
Run 'npx next-to-fetch' or install globally with 'npm install -g next-to-fetch' then use directly.
Verify paths are correct; use absolute paths or run from project root.
No dependency data recorded yet.