Ever wondered how many API endpoints your application has? I built a CLI tool that scans your source code and lists all your routes - with code preview, search, and filtering!
š What is API Route Lister?
API Route Lister is a command-line tool that automatically scans your codebase and discovers all API endpoints. It supports multiple frameworks including Express, Fastify, Next.js, Hapi, and Koa.
Key Features
- š Auto-Detection - Automatically detects your framework
- š» Code Preview - View endpoint code directly in CLI
- š® Interactive Mode - Browse with keyboard navigation
- š Search & Filter - Find routes by path or HTTP method
- š Multiple Views - Table, List, or Tree format
- š¤ Export - JSON and Markdown output
š¦ Installation
npm install -g api-route-lister
š Quick Start
api-route-lister ./src
api-route-lister ./src -i
api-route-lister ./src -o tree -c
š® Interactive Mode Controls
[j] Next [k] Prev [v] View Code [g] Go To [/] Search [f] Filter [r] Reset [q] Quit
Quick Commands
- g 50 - Go to route #50
- / users - Search for users
- f GET - Filter GET routes only
- v - View selected route code
š Options
| Option | Description |
|---|---|
| -f, --framework | Framework (auto, express, fastify, nextjs, hapi, koa) |
| -o, --output | Output format (table, list, tree) |
| -c, --code | Show endpoint code |
| -i, --interactive | Interactive TUI mode |
| --json | Output as JSON |
| -m, --markdown | Output as Markdown |
Get It Now
npm install -g api-route-lister
Built with ā¤ļø by Deepak Ashok Karai
Top comments (0)