A tiny debug HTTP intercepter: it exposes an /inbound endpoint that accepts any POST request, stores it in memory, and shows it in a minimalist Vue UI. Includes a FastAPI backend API for listing, viewing, and deleting captured requests.
Try it live: https://intercept.ns2browser.com/
backend/— FastAPI app, pytest testsfrontend/— Vue 3 (Vite) SPADockerfile— Multi-stage build to bundle both
- Create a virtual env and install:
python -m venv .venv
.venv\Scripts\activate
pip install -e backend[dev]- Run the API locally:
python -m uvicorn app.main:app --reload --port 8181 --app-dir backendThe frontend dev server (below) proxies /api and /inbound to 8181.
cd frontend
npm install
npm run devBuild and run the combined image:
docker build -t httpintercepter:local .
docker run --rm -p 8181:8181 httpintercepter:localPOST /inbound— store inbound request; returns OKGET /api/requests— list summariesGET /api/requests/{id}— full recordDELETE /api/requests/{id}— delete oneDELETE /api/requests— delete all
Note: storage is in-memory and resets on restart.