A local web service for mocking, intercepting, and logging API requests. Inspired by Beeceptor, this tool lets you define custom endpoints, responses, delays, and error statuses, with a modern UI and persistent logging.
- Define API endpoints and custom responses (status, body, delay, error)
- View and log incoming requests with details (body, query, IP, user-agent, headers)
- Edit and delete endpoints via the UI
- Auto-refreshing logs, with modal dialog for full request details
- SQLite database for persistent storage
- Easy setup and management with root-level scripts
- Node.js (v18+ recommended)
- npm
From the project root:
npm install
From the project root:
npm run start
- Backend runs on http://localhost:4000
- Frontend runs on http://localhost:4001
- Open the frontend in your browser
- Add, edit, or delete endpoints
- Send requests to your defined endpoints
- View logs and inspect request details
api-interceptor/
backend/ # Express server, SQLite database
frontend/ # React UI
package.json # Root scripts and workspaces
.gitignore # Recommended ignores
npm run install-all— Install dependencies for backend and frontendnpm run start-backend— Start backend servernpm run start-frontend— Start frontend servernpm run start-all— Start both servers in parallel
- SQLite file:
backend/api-interceptor.sqlite - Logs and endpoints are persisted automatically
MIT