RouteMap for VS Code
RouteMap statically analyzes your Express workspace and shows the routes it can resolve,
each with its mount chain, middleware lifecycle, and source location: right in the editor.
What it cannot resolve statically, it reports as a diagnostic instead of guessing.
No AI, no runtime instrumentation, no annotations. It reads the code you already wrote.
Features
Full walkthrough: the how-to-use guide on the CLI's npm page.
- Routes view: resolved routes grouped by tag, with auth/validation flags.
- Explain Route: a deep-dive panel: mount chain, middleware lifecycle, security.
- Jump to source: click any route to open the file and line where it is declared.
- Routes without authentication: one command lists routes with no recognized auth middleware.
The auth and validation flags are heuristics over recognized middleware patterns,
a first-pass aid, not a security audit.
Commands
| Command |
What it does |
RouteMap: Analyze Workspace |
Run the analysis (also runs on activation) |
RouteMap: Refresh Routes |
Re-run after code changes |
RouteMap: Explain Route |
Open the deep-dive panel for a route |
RouteMap: Show Routes Without Authentication |
List routes with no recognized auth middleware |
RouteMap: Copy Route Signature |
Copy METHOD /path to the clipboard |
Settings
| Setting |
Default |
Description |
routemap.entry |
"" |
Entrypoint override, e.g. src/app.ts |
routemap.deep |
false |
Semantic (type-checker) analysis tier: slower, more accurate |
routemap.exclude |
[] |
Extra glob patterns to exclude from the scan |
Requirements
Works on JavaScript and TypeScript Express codebases. No other setup needed: the analysis
engine is bundled with the extension.
CLI
This extension is built on the @omkar-sonawane-05/routemap
packages, which print the route table, explain individual routes and filter them from the terminal.