RepositoryRustITItaly
EM

emanuele-em/proxelar

Scriptable local traffic workbench for inspecting, intercepting, replaying, and rewriting HTTP/HTTPS and WebSocket traffic.

1.1kstars
70forks
2issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: mitm

#1 Repository of the week

1
TINIX TRENDING·Topic: man-in-the-middle

#1 Repository of the week

1
TINIX TRENDING·Topic: https-proxy

#1 Repository of the week



Proxelar

A scriptable local traffic workbench for HTTP, HTTPS, and WebSocket debugging.
Capture, inspect, intercept, replay, and rewrite traffic from your terminal or browser.

Crates.io Homebrew License: MIT CI Docs

TUI demo

Web GUI demo


What is Proxelar?

Proxelar is a single-binary MITM proxy for developers who need to see and change what an app is doing on the wire without running a full security suite.

Your app  ──►  Proxelar :8080  ──►  Upstream service
                    │
              Inspect · Intercept · Rewrite · Mock

It is useful for debugging APIs, inspecting browser or mobile traffic, testing WebSocket clients, injecting headers, mocking local services, replaying captured requests, and automating request/response transforms with Lua.

Proxelar is intentionally developer-oriented: terminal-first, scriptable, Rust-native, and usable as a CLI tool or as the proxyapi library.


Why use it?

  • One local binary — install with Homebrew, Cargo, Docker/Podman, or GitHub releases.
  • Three interfaces — TUI by default, plain terminal output, or a browser GUI.
  • Lua scripting — on_request and on_response hooks can rewrite, block, short-circuit, or mock traffic.
  • Interactive intercept — pause requests, edit method/URI/headers/body, forward, drop, or replay.
  • HTTPS MITM — local CA generation, per-host certificates, and a built-in certificate install page.
  • Forward and reverse modes — inspect configured clients or put Proxelar in front of a local service.
  • WebSocket inspection — capture connections and browse frames by direction, opcode, and payload preview.

Installation

Homebrew (macOS / Linux)

brew install proxelar

Cargo

cargo install proxelar

Docker / Podman

# Web GUI
docker run --rm -it -v ~/.proxelar:/root/.proxelar -p 8080:8080 -p 127.0.0.1:8081:8081 ghcr.io/emanuele-em/proxelar --interface gui --addr 0.0.0.0

# Terminal
docker run --rm -it -v ~/.proxelar:/root/.proxelar -p 8080:8080 ghcr.io/emanuele-em/proxelar --interface terminal --addr 0.0.0.0

The -v ~/.proxelar:/root/.proxelar mount reuses your existing trusted CA certificate so you do not get browser warnings after trusting the CA once.


Quick Start

1. Start the proxy

proxelar

2. Configure a client

Set HTTP and HTTPS proxy to 127.0.0.1:8080 in your browser, OS, mobile device, app, or tool.

3. Install the CA certificate for HTTPS

Visit http://proxel.ar while routing traffic through Proxelar. It serves the generated root certificate and install instructions.

Traffic appears in the TUI immediately.

# quick smoke test
curl -x http://127.0.0.1:8080 http://httpbin.org/get
curl -x http://127.0.0.1:8080 https://httpbin.org/get

Example: mock an API response

Create mock_user.lua:

function on_request(request)
    if request.method == "GET" and string.find(request.url, "/api/user/me") then
        return {
            status = 200,
            headers = { ["Content-Type"] = "application/json" },
            body = '{"id":1,"name":"Local Test User"}',
        }
    end
end

Run Proxelar in front of a local service:

proxelar -m reverse --target http://localhost:3000 --script mock_user.lua

Then call http://127.0.0.1:8080/api/user/me to receive the mocked response.

More scripts are in examples/scripts/, including auth injection, CORS headers, HTML rewriting, cookie stripping, redirects, traffic logging, and JSON body edits.


Interfaces

proxelar              # interactive TUI (default)
proxelar -i terminal  # plain terminal output
proxelar -i gui       # web GUI at http://localhost:8081

Common options:

proxelar -m reverse --target http://localhost:3000   # reverse proxy
proxelar -b 0.0.0.0 -p 9090                         # custom bind/port
proxelar --script examples/scripts/block_domain.lua  # with a Lua script
proxelar --body-capture-limit 1048576                # cap captured/editable body bytes
proxelar --upstream-trust default+ca:/path/ca.pem    # trust an extra upstream CA
All CLI options
FlagDescriptionDefault
-i, --interfaceterminal · tui · guitui
-m, --modeforward · reverseforward
-p, --portListening port8080
-b, --addrBind address127.0.0.1
-t, --targetUpstream target (required for reverse)—
--gui-portWeb GUI port8081
--ca-dirCA certificate directory~/.proxelar
-s, --scriptLua script for request/response hooks—
--body-capture-limitMaximum body bytes buffered for capture/editing; use free, unlimited, or none for unlimitedfree
--upstream-trustUpstream TLS trust policy: default, default+ca:/path/ca.pem, ca-only:/path/ca.pem, or insecuredefault

--upstream-trust insecure disables upstream certificate and hostname verification. Use it only for controlled debugging.


How it compares

ToolBest fitProxelar tradeoff
mitmproxyMature general-purpose MITM proxy with a large addon ecosystem, transparent/local capture modes, rich flow formats, and years of protocol hardening.Proxelar is smaller and Rust-native, with Lua scripting and TUI/web interfaces, but it does not yet match mitmproxy's depth.
proxyforLightweight Rust proxy with TUI/WebUI and export-oriented workflows.Proxelar emphasizes Lua transforms, interactive intercept, replay, and an embeddable core; proxyfor currently has stronger export ergonomics.
Burp Suite / CaidoProfessional web security testing, scanning, collaboration, and deep manual testing workflows.Proxelar is not a security suite. It is better suited to local debugging, scripting, and development workflows.
Charles / Proxyman / HTTP ToolkitPolished desktop app experience for inspecting app traffic.Proxelar is terminal-first and scriptable, with less desktop polish but a simpler open-source CLI workflow.

See the full comparison for details.


Current limitations

Proxelar is usable today, but some mature proxy workflows are still on the roadmap:

  • Captured sessions are in memory; HAR, curl, raw-flow export, and session reload are not implemented yet.
  • Body views and editors are byte-oriented; gzip/br/zstd decoding, charset handling, and richer pretty views are limited.
  • Transparent/local capture, SOCKS5 mode, upstream proxy chaining, and DNS inspection are not implemented.
  • HTTPS interception requires trusting Proxelar's local CA. Certificate-pinned apps and many Android apps will not trust user-installed CAs.
  • Remote web GUI use is not a hardened multi-user deployment mode; keep it local or tunnel it carefully.

See Known limitations and the roadmap.


Documentation

Full documentation: proxelar.micheletti.io


Contributing

Contributions are welcome. See CONTRIBUTING.md and ROADMAP.md.

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
fatedier/frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

110.9k
Nov 10, 2026
RepositoryRust
sauravrao637/oproxy

Open-source MITM proxy to intercept, inspect, and mock network traffic.

631
Nov 15, 2026
RepositoryGo
snail007/goproxy

🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。

17.2k
Aug 17, 2026
RepositoryGo
lqqyt2423/go-mitmproxy

mitmproxy implemented with golang. 用 Golang 实现的中间人攻击(Man-in-the-middle),解析、监测、篡改 HTTP/HTTPS 流量。

1.6k
Nov 29, 2026
RepositoryPython
mitmproxy/mitmproxy

An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.

47.3k
Nov 23, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026