Skip to main content

proxy-view

A CLI-first API debugging proxy — intercept, inspect, replay, and debug HTTP traffic in real-time from your terminal or browser dashboard.

pip install proxy-view
proxy-view --target http://localhost:3000 --port 9090

Quick Start

# Start the proxy
proxy-view --target https://jsonplaceholder.typicode.com --port 9090

# In another terminal, make requests through the proxy
curl http://localhost:9090/posts
curl http://localhost:9090/posts/1
curl http://localhost:9090/posts/1/comments

# Press Ctrl+C to stop

The terminal shows a live-updating table with colored method/status/latency for every request.

Open the Dashboard

Add -d to open the React dashboard in your browser:

proxy-view --target http://localhost:3000 --port 9090 -d

Replay a Request

# Replay from the command line
proxy-view replay <request-id> --port 9090

# With diff mode (compare original vs replayed response)
proxy-view replay <request-id> --port 9090 --diff

# Or click the ↻ replay button in the dashboard

Features

Feature Description
Reverse proxy Forwards HTTP requests to any target URL — no system proxy config needed
Real-time streaming Live CLI table + WebSocket event stream to the dashboard
Request history All requests stored in SQLite with WAL mode (auto-purged after 7 days)
Replay engine Re-send any captured request through the proxy, with --diff support
Browser dashboard Full DevTools-style UI: request list, detail panel with Headers/Body/Timing tabs
No config required Works out of the box — no config files, no SSL certs

CLI Reference

# Global options (passed before any command)
proxy-view --target URL --port PORT [--db PATH] [--dashboard]

# Commands
proxy-view replay REQUEST_ID --port PORT [--diff]
Option Short Default Description
--target -t http://localhost:3000 Target URL to forward requests to
--port -p 9090 Port to run the proxy on
--db ~/.proxy-view/db.sqlite Path to SQLite database
--dashboard -d false Open the React dashboard in browser

Replay Command

Argument Description
REQUEST_ID The ID of a previously captured request (required)
--port Port of the running proxy server (default: 9090)
--diff Show a diff between the original and replayed response

Architecture

┌─────────────┐     ┌──────────────────┐     ┌──────────────┐
│  Your App   │ ──► │  proxy-view      │ ──► │  Target API  │
│  (client)   │     │  :9090           │     │  (server)    │
└─────────────┘     └──────────────────┘     └──────────────┘
                         │        ▲
                         │        │
                    ┌────▼────────┴────┐
                    │  WebSocket Hub   │
                    │  /ws             │
                    └────────┬─────────┘
                             │
              ┌──────────────┼──────────────┐
              ▼              ▼              ▼
        ┌──────────┐  ┌──────────┐  ┌────────────┐
        │  CLI     │  │Dashboard │  │  SQLite    │
        │  Viewer  │  │ (React)  │  │  Storage   │
        └──────────┘  └──────────┘  └────────────┘

Layers

  1. Proxy Core (httpx) — Forwards requests, handles 502/504 errors, connection pooling
  2. Event Hub (WebSocket) — ConnectionManager broadcasts request.started, request.completed, request.error events
  3. Storage (SQLite/aiosqlite) — WAL mode, CRUD with pagination, 7-day session auto-cleanup
  4. CLI (Typer + Rich) — Live-updating table with colored method/status/latency, stats bar
  5. Dashboard (React + Vite) — DevTools-style UI with WebSocket auto-reconnect, 3-tab detail panel, replay button

Requirements

  • Python 3.11+
  • Works on macOS, Linux, Windows

License

MIT

Metadata

Release files for proxy-view 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxy-view 0.1.0
File Size Uploaded Provenance Actions
proxy_view-0.1.0.tar.gz 88.3 kB Without provenance Details for proxy_view-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proxy-view 0.1.0
File Interpreter ABI Platform Actions
proxy_view-0.1.0-py3-none-any.whl Python 3 none any Details for proxy_view-0.1.0-py3-none-any.whl

Total release size: 171.7 kB

Release files / proxy_view-0.1.0.tar.gz

Download URL proxy_view-0.1.0.tar.gz
Size 88.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2e7c613739cb971e1309110693e8911bb90ffaf5014a6ecfaa9df6ac5505faf
BLAKE2b-256 checksum
How to use checksums
65b078d783cd6f81b75bdd2d585e4501a7a340ae6e64cfc4153049498ac2931e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / proxy_view-0.1.0-py3-none-any.whl

Download URL proxy_view-0.1.0-py3-none-any.whl
Size 83.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc950dbc50d2c953f661e763ac5ecb229df7caa2259cfa0ac18aff2579e91af4
BLAKE2b-256 checksum
How to use checksums
99c70d601bce9b8d168fe9c1eb4fb85bb54b257a0428ae252fe40225744d2836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for proxy-view 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page