Drop two lines into your Express or Next.js server. APIForge analyzes every route, generates OpenAPI specs, and publishes beautiful interactive docs — automatically.
Get started in 2 minutes
Install via npm
Add to your server — after all routes are registered
Upload the generated JSON to APIForge
Run your server once, then drag api-export.json into the Import JSON tab.
npm · local link · direct download
Option A — npm (recommended)
Option B — Download ZIP & npm link
Requirements: Node.js ≥ 18 · npm ≥ 9 · Express 4.x or 5.x
Framework guide
Call analyze() after all routes are registered but before app.listen().
Pages Router & App Router
Pages Router
App Router
analyze() options
Common issues
No routes found
Ensure analyze() is called AFTER all app.get/post/etc. Express lazily initializes its router — calling analyze() too early yields an empty stack.
Regex patterns in paths (e.g. (?=/|))
Upgrade to apiforge-analyzer v1.0.1+. The path normalizer now strips all Express regex artifacts before exporting.
Module not found after npm link
APIForge Analyzer · Built for developers who ship fast