See every route in your Next.js app.
next-lens scans your App Router project and maps every page and API route — in the terminal, a local inspector, your AI editor, or Raycast. No dev server required.


Features
Your route map, without the guesswork.
next-lens reads the App Router conventions so you don't have to click through folders to understand how your app is wired.
API routes
Every route.ts in app/api, with its exported HTTP handlers detected — GET, POST, PUT, PATCH, DELETE and more.
Page routes
Every page with its loading and error boundaries marked as co-located, inherited, or missing.
Dynamic segments
Dynamic, catch-all and optional catch-all params are highlighted so route shapes read at a glance.
Stack snapshot
Next.js, React and Node versions plus the package manager, reported in a single command.
Zero runtime
Pure static analysis of your file tree. No dev server, no build step, no config file.
Any directory
Point it at any path. Ideal for monorepos with several Next.js apps side by side.
Interfaces
One scan. Four ways to explore.
Use whichever fits the moment — the same route data powers every surface.
Answers right in your terminal
Colorized tables for pages and API routes, ready the moment you hit enter.
- page:list with loading / error coverage
- api:list with --method filtering
- info for a framework and runtime snapshot
How it works
From folder tree to route map in seconds.
- 01
Run one command
Run next-lens in your project root, or pass any directory — handy for monorepos.
- 02
Scan the app directory
next-lens walks app/, follows the App Router conventions and reads exported handlers. Nothing is executed.
- 03
Explore your routes
Browse, search and jump to source from the interface you already have open.
Map your routes in seconds.
Free and open source. Run it once — no install, no config.