Skip to content
DaloshkaPublic

About

Free, open-source HTTP, HTTPS and WebSocket debugging proxy for Windows and macOS. Rust core + Electron UI. Alternative to Charles, Proxyman and Fiddler.

Topics

Resources

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

Librium

English · Русский

See what happens between an app and the network.

Librium is a free, open-source HTTP, HTTPS and WebSocket inspector for Windows and macOS. A Rust proxy core, a native desktop app built with Wry and SQLite history: requests, responses, images, audio and WebSocket messages in one workspace.

Explore APIs, debug client apps, check headers and study network behavior. The color-coded interface keeps traffic readable, and saved filter sessions bring you straight back to the task you were working on.

Checks Latest release Downloads License: MIT

Rust + Wry · HTTP / HTTPS / WebSocket · SQLite · MIT

Why Librium · Screenshots · Install · HTTPS setup · Documentation

Librium History demo showing a POST exchange, JSON bodies, and the 4xx filter

Screenshots

The History tab shows the request list and the selected exchange side by side.

HTTP request history

The Requests tab sends a saved request to a local demo API and opens the captured exchange in History.

Librium Requests demo showing an API call, its JSON response, and the resulting history entry

The response inspector previews images from the captured traffic.

Image preview in a response

Why Librium

  • Free and open source. MIT license, no account, no subscription, no cloud sync and no telemetry — the captured traffic stays on your machine.
  • The same tool on Windows and macOS. One interface, one set of shortcuts, one history format.
  • HTTP/1.1 and HTTP/2 through an explicit proxy with a local HTTPS CA. The app can add it to the System keychain on macOS or to the current user's Windows trust store after confirmation.
  • History in SQLite, kept on disk and never trimmed by request count. Sort the whole history by ID, method, host and path, status, size or duration, page through it, or switch on “Follow” to open each new request as it arrives.
  • Request and response side by side: headers, query and form parameters, cookies, text, a collapsible JSON tree, hex, search inside bodies and copy URL.
  • Search, quick filters and a filter builder for HTTP and WebSocket, saved as named sessions with autosave. Exclude noisy hosts (*.google-analytics.com, telemetry.*) from history in Settings or from a row's right-click menu. The search box takes conditions alongside plain words, such as host:api status:4xx method:post type:json size:>1mb -path:/static.
  • Media, not just text. PNG, SVG and other images with 1:1 zoom and drag, an audio player, and saving captured media to a file.
  • WebSocket in both directions: text and binary frames with timing and per-connection history.
  • HAR in and out. Export the requests matching the current filters, or the whole history, with decompressed bodies and WebSocket frames (opens in Chrome DevTools and other HAR viewers); import a HAR from a browser, a colleague or another tool into the history (or drop the file onto the window), WebSocket frames included. Credentials (Authorization, Cookie, Set-Cookie, API keys) are masked by default; the switch is in the Filters dialog. The request pane also copies any request as a curl command.
  • Summary of the current search. “Σ Summary of the selection” in the toolbar’s ⋯ menu shows totals, error share, mocked answers, bytes, median / 95th percentile / max latency, status classes, methods and the busiest hosts; a click on a host keeps only it in the search.
  • Copy as code. A row's menu copies the request as cURL, as a browser fetch() call or as Python requests.
  • Stars and notes. Star an exchange from the inspector or the row menu and write a note next to it; is:starred and note: find them again.
  • Requests workspace. Compose and save named requests with query parameters, headers and a JSON, text or form body. Paste a cURL command into the address field to fill the editor, or choose Open in Requests from a History row. Sending through the proxy shows the response in Requests and records the exchange in History.
  • Recording toggle. “● Recording” in the toolbar stops writing the history while traffic keeps flowing and the rules keep applying; nothing is held either. On again after a restart.
  • Intercept. Hold requests to chosen hosts, methods and paths before they leave the proxy: look at them (several held ones line up as tabs), edit the method, URL, headers and body, then forward or drop. Responses too, when asked: status, headers and body (shown decoded; an edited body goes out uncompressed), and a held response can be saved as a mock. Off by default; anything held goes on unchanged after ten minutes without a decision.
  • Mocks. “Mock this response” in a row's menu turns a recorded exchange into a canned answer: the proxy serves it for matching host, path and method (a path pattern with ? also matches the query) without asking the origin, and records the exchange as usual (with an x-librium-mock header and a “mock” tag in the list). Edit, switch off or delete mocks in Settings.
  • Header rewrites. Set or remove request headers for matching hosts (optionally narrowed to a path pattern, api.example.com/v1/*) before they leave the proxy, and response headers before the client sees them (drop a CSP, allow CORS, disable caching): inject a token, drop caching headers, spoof a User-Agent. The history shows what was actually sent.
  • Slow network. Add a delay to the responses of matching hosts (optionally a path pattern; up to a minute), mocks included, to watch an app on a bad connection; the recorded duration includes it.
  • Rules as a file. Settings can export the ignored hosts, header rewrites, delays and mocks as one JSON file and import such a file back (it replaces the lists it contains; dropping the file onto the window works too), so a team shares the same mocks.
  • Active rules pill. While mocks, delays or header rewrites are on, the status line at the bottom shows an amber pill with their counts; click it to open Settings, so a forgotten rule never answers in silence.
  • Resend a request, as is or edited. One button sends a captured request again through the proxy; another opens it for editing first: method, address, headers and body. The replay lands in the history next to the original.
  • Connect brings computer and phone setup into one dialog. Phone capture over Wi-Fi is opt-in.
  • Command menu. Press Ctrl Shift P or ⌘ ⇧ P to find actions by name.
  • Works behind a VPN. One button opens a separate Chrome profile that goes through Librium even when a tunnel swallows the system proxy.
  • Interface in English and Russian, switched in the app with one click.

Librium and the alternatives

Free Open source Windows macOS Phone over Wi-Fi WebSocket Unlimited on-disk history No account / cloud
Librium Yes Yes (MIT) Yes Yes Yes Yes Yes (SQLite) Yes
Charles No (~$50 one-time) No Yes Yes Yes Yes — Yes
Proxyman Partly (freemium) No Yes Yes Yes Yes — —
Fiddler Everywhere No (subscription) No Yes Yes Yes Yes — No (sign-in)
mitmproxy Yes Yes Yes Yes Yes Yes — Yes
HTTP Toolkit Partly (free tier) Yes (core) Yes Yes Yes Yes — —

“—” means “depends on the plan or on how you run it”, not “missing”. A few notes so the table is not read as more than it is:

  • Charles is a mature paid tool with a one-time license and a time-limited trial.
  • Proxyman is a polished macOS-first app with Windows and Linux builds; several features are behind the paid tier.
  • Fiddler Everywhere is a paid subscription and asks you to sign in to a Telerik account.
  • mitmproxy is free and open source, but it is a CLI plus a web UI rather than a desktop application.
  • HTTP Toolkit is open source with paid Pro features.
  • Most of these keep the captured session in memory and write it out on demand; Librium streams it into SQLite as it goes, so the history survives a restart without an export step.

Features change. If a cell is out of date, open an issue and it will be fixed.

Install

Prebuilt app

Open the Releases page of this repository.

Windows. Download Librium.<version>.exe and run it. The portable build uses the Microsoft Edge WebView2 Runtime that ships with Windows 11 and most Windows 10 systems.

macOS. Download Librium-<version>-arm64.dmg (Apple Silicon; on Intel build from source, which produces Librium-<version>-x64.dmg), open the image and drag Librium into Applications. The same app is also published as a .zip. The build is ad-hoc signed, without an Apple Developer ID, so the first launch is refused. Remove the quarantine attribute:

xattr -dr com.apple.quarantine /Applications/Librium.app

Without a terminal: after the refusal open System Settings → Privacy & Security and press “Open Anyway” (macOS 15 and newer); on older versions right-click the app → “Open”.

Homebrew (macOS)

Apple Silicon, macOS 13 or newer (the cask enforces both).

brew install --cask daloshka/tap/librium
xattr -dr com.apple.quarantine /Applications/Librium.app

Homebrew keeps the quarantine attribute on downloaded apps, so the second command is needed once after every install or upgrade until the builds are notarized.

Scoop (Windows)

scoop bucket add daloshka https://github.com/Daloshka/scoop-bucket
scoop install librium

From source

Clone the repository or unpack Code → Download ZIP. Open a terminal in the folder containing Cargo.toml.

Use current stable Rust. On Windows, install Visual Studio Build Tools with C++ and the Windows SDK, and use the MSVC Rust toolchain. On macOS, install the Xcode Command Line Tools.

cargo run --locked

This opens the desktop app on Windows and macOS. To serve the browser interface and proxy in headless mode, run cargo run --locked -- --headless. The browser interface listens at 127.0.0.1:3000 and the proxy at 127.0.0.1:8080.

To package a release, build with cargo build --release --locked and run python3 scripts/package-native.py (use python on Windows). The script requires Python 3.11 or newer. On Intel macOS, pass --arch x64. It writes the artifacts to dist/v<version> and checks that each file is smaller than 40 MB.

Quick start

  1. Start Librium and wait for the proxy to connect.
  2. Open Connect → This computer for browser and certificate setup. The default HTTP proxy address is 127.0.0.1:8080.
  3. Open a page or send a request — it shows up in the history.
  4. Select a row: the request is on the left, the response on the right. Switch between headers, body, pretty and hex; media can be previewed, played and downloaded.
  5. Use search and the filters by traffic type, method and status. Save a set as its own filter session to come back to it after a restart.

New requests appear at the top by default. Click a column header to change the sorting.

The EN / RU button in the top toolbar switches the language and reloads the window. Librium picks your system language on the first run.

Search syntax

Plain words match the ID, method, address, status and content type. Conditions narrow the list further; all of them apply at once, together with the quick filters and the filter builder. A right click on a row offers the same conditions for that row's host, path, method and status, plus copying its URL, resending it, comparing it line by line with the previously selected request, and deleting it from the history. “Delete matching” next to the condition chips removes everything the current conditions match, after a confirmation.

Condition Meaning
host:api · path:/v1/ · url:token contains
host:=api.example.com exact value
-host:cdn · -path:/static does not contain
method:post · -method:get method equals / differs
status:404 · status:4xx · status:>=400 · status:<500 · status:!=200 status code or class
size:>1mb · size:<=20kb · id:>1000 size and ID with units and comparisons
type:json · type:image content type contains
body:token · -body:error the request or response body text contains (the first 16 KiB of each, decoded from gzip, deflate and brotli; requests captured before this version have no body text)
header:set-cookie · header:"cache-control: no-store" a request or response header line contains (name: value, lowercase, the first 8 KiB of the lines)
frame:ping · -frame:error WebSocket connections with a frame whose text contains (the first 64 KiB of each frame)
is:error · -is:error · is:pending failed or interrupted exchanges; exchanges without a response yet
is:starred · note:todo starred exchanges; the note contains (plain words search notes too)
is:mock exchanges answered by a mock instead of the origin
since:10m · since:2h · since:14:30 · since:2026-09-08 · until:2026-09-08 18:00 request time: the last minutes, hours or days, a time today, or a local date and time
elapsed:>1s · elapsed:<200 time to the first response byte (milliseconds, or seconds with s)
"two words" words kept together

Suggestions appear under the box as you type: the fields first, then values seen in the history (hosts, paths, methods, statuses, content types) and examples of the syntax. ↑ ↓ choose, Tab or Enter accepts, Esc closes the list. An empty box also lists the last eight searches you ran (Enter, or leaving the box, remembers one).

Keyboard

Keys Action
Ctrl Shift P (⌘ ⇧ P on macOS) Open the command menu
Ctrl K (⌘ K on macOS) Focus the history search
Ctrl F (⌘ F) Focus the search inside the request and response
Ctrl I (⌘ I) Toggle intercept
Ctrl N (⌘ N) New request
Ctrl Shift M (⌘ ⇧ M) Mock the selected response
Ctrl ] / Ctrl [ (⌘ ] / ⌘ [) In the intercept panel: next / previous held request
? Open the keyboard and search reference
Ctrl D (⌘ D) Star or unstar the selected request
Esc Clear the focused search box
↑ ↓ Enter Move along the history and open a request
Ctrl Enter (⌘ Enter) Send from Requests or the “Edit and resend” dialog

HTTPS setup

On the first run Librium creates a CA in its data directory:

OS Directory
Windows %LOCALAPPDATA%\Librium
macOS ~/Library/Application Support/Librium
Linux ~/.local/share/librium

Set the HTTP/HTTPS proxy to 127.0.0.1:8080 in the client you want to inspect and add ca.crt to that client's trusted certificates. The certificate and a short guide are available inside the app.

A check that does not touch the system certificate store — in PowerShell:

curl.exe --ssl-revoke-best-effort --proxy http://127.0.0.1:8080 --cacert "$env:LOCALAPPDATA\Librium\ca.crt" https://example.com

In a macOS terminal:

curl --proxy http://127.0.0.1:8080 --cacert "$HOME/Library/Application Support/Librium/ca.crt" https://example.com

On macOS, choose Connect → This computer → Trust the CA in macOS and approve the administrator prompt. This adds Librium's CA to the System keychain for HTTPS. To do this from a terminal, run the following command.

sudo security add-trusted-cert -d -r trustRoot -p ssl -k /Library/Keychains/System.keychain "$HOME/Library/Application Support/Librium/ca.crt"

The macOS system proxy is set per network service: System Settings → Network → the service → Details… → Proxies → “Web proxy (HTTP)” and “Secure web proxy (HTTPS)” with 127.0.0.1 and 8080. The same from a terminal (replace Wi-Fi with your service name from networksetup -listallnetworkservices):

networksetup -setwebproxy Wi-Fi 127.0.0.1 8080
networksetup -setsecurewebproxy Wi-Fi 127.0.0.1 8080

Turn it off when you are done:

networksetup -setwebproxystate Wi-Fi off
networksetup -setsecurewebproxystate Wi-Fi off

When you configure a proxy manually, turn it off in the client or in System Settings after the session. Keep the private key ca.key on your computer.

Using a VPN

On macOS, open Connect → This computer, trust the CA, and check Capture HTTP and HTTPS. Keep Intercept off for this mode. Use Routes to choose which sites go through Librium. Outgoing connections follow the current macOS route. Turning off capture or quitting Librium removes the temporary proxy setting. The same dialog offers other ways to connect.

In Connect → This computer, choose Open Chrome through the proxy to launch a separate Chrome, Chromium, Edge or Brave profile with the --proxy-server flag. The profile lives in the Librium data directory. You can also launch it from your terminal.

open -na "Google Chrome" --args --proxy-server=127.0.0.1:8080 --user-data-dir="$HOME/Library/Application Support/Librium/chrome-profile"
& "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" --proxy-server=127.0.0.1:8080 --user-data-dir="$env:APPDATA\librium-desktop\chrome-profile"

Firefox is configured in its own network settings: “Manual proxy configuration”, HTTP and HTTPS 127.0.0.1:8080. HTTPS still needs Librium's CA to be trusted.

In-depth walkthroughs: proxy setup on Windows and proxy setup on macOS.

Phone capture

Connect the phone and computer to the same Wi-Fi. Open Connect → Phone, pick the local network interface and enable LAN access.

In the phone's Wi-Fi settings enter the computer address shown by Librium and the proxy port 8080. For HTTPS, install the local CA on the phone and enable full trust for it if the system asks. On Windows, allow incoming connections for Librium in the firewall for private networks. On macOS, if the firewall is on, allow incoming connections for Librium (System Settings → Network → Firewall → Options…); the system usually offers this the first time LAN access is enabled.

After the first request from the phone, select its IP in the Device filter above the history table. The desktop app shows the network name when it can resolve one. Use the pencil next to the filter to save a custom name for that IP.

Switch the proxy off on the phone when you are done. Some apps ignore the system proxy or refuse user-installed certificates, so their traffic may stay invisible.

Ports and directories

Variable Default What it sets
LIBRIUM_UI_PORT 3000 Port of the core's UI and API on 127.0.0.1.
LIBRIUM_PROXY_PORT 8080 Port of the HTTP/HTTPS proxy on 127.0.0.1.
LIBRIUM_DATA_DIR system data directory Where the CA (ca.crt, ca.key) and the history history.sqlite3 are stored.

The certificate page for the phone runs one port above the proxy (8081 by default), so the proxy port may be anything from 1 to 65534.

macOS and Linux:

LIBRIUM_PROXY_PORT=8088 cargo run --locked

Windows, PowerShell:

$env:LIBRIUM_PROXY_PORT=8088; cargo run --locked

Librium reads these variables at startup. The current proxy address is shown in the status line at the bottom of the window.

Troubleshooting

Symptom What to check
The history is empty That the client really uses the proxy 127.0.0.1:8080, and that active filters are not hiding requests. Starting Librium does not redirect the system's traffic on its own.
HTTPS certificate error That the client trusts the CA created by this copy of Librium. Some clients need the certificate file to be passed explicitly.
ECONNREFUSED 127.0.0.1:3000 Start Librium and check that port 3000 is available. You can set a different port with LIBRIUM_UI_PORT.
Port 8080 is taken by another app Start with LIBRIUM_PROXY_PORT=<port> and use the same port in the client. The proxy address is shown in the status line at the bottom of the window.
macOS: “Librium is damaged” or “cannot be opened” The build is not signed with an Apple Developer ID. Remove the quarantine: xattr -dr com.apple.quarantine /Applications/Librium.app, or press “Open Anyway” in System Settings → Privacy & Security after the refusal.
The phone does not connect Both devices on the same network, LAN access enabled, the computer address entered correctly, and the firewall allowing the connection.
A 301 or 302 instead of an image That is a redirect. Open the captured request for the address from Location: the image is in the final response.
The status line says “History is not being saved” The core cannot write history.sqlite3: the disk is full, the file is read-only, or another program holds the database open in a write transaction. Traffic keeps flowing through the proxy meanwhile and is written once the problem is gone; the banner shows the SQLite error.

Storage and limits

The history lives in the data directory next to the CA and the SQLite WAL/SHM files:

OS History file
Windows %LOCALAPPDATA%\Librium\history.sqlite3
macOS ~/Library/Application Support/Librium/history.sqlite3
Linux ~/.local/share/librium/history.sqlite3
  • The directory can be changed with LIBRIUM_DATA_DIR.
  • Filter sessions, saved requests and UI preferences use the Librium data directory.
  • For ordinary HTTP bodies and for each WebSocket message the first 64 KiB are stored. For images and audio, up to 32 MiB. The client always receives the full data. Bodies compressed with gzip, deflate, brotli or zstd are shown, saved and exported decoded; the Hex tab keeps the bytes as transmitted. The decoded text of the first 16 KiB of each body is also kept next to each exchange for body: searches.
  • The history is written every half second and on shutdown; the footer shows how much it takes on disk. Closing the app asks the core to finish writing before it exits; after a crash or a power loss the last moments may be missing.
  • HTTP/3 and QUIC, transparent interception of all system traffic and bypassing certificate pinning are not implemented. The client has to use the proxy and to trust the CA.

Only use Librium on traffic you are allowed to inspect. The history can contain passwords, cookies and personal data: keep it out of repositories and public reports. More in SECURITY.md.

Checks

The commands are the same in PowerShell and in a macOS terminal; on Windows use python instead of python3.

cargo test --locked
cargo clippy --locked --all-targets -- -D warnings
npm ci
npm run test:ui
python3 scripts/export-source.py --check

See CONTRIBUTING.md for native desktop and synthetic-media checks.

Preparing sources for publication

python3 scripts/export-source.py --check
python3 scripts/export-source.py

The export creates a fresh .publish/Librium folder with allowlisted sources and documentation media. It never copies .git, local databases, certificates, traffic, logs, builds or arbitrary screenshots. The destination has to be new or empty. If your working Git history contains personal data, publish a fresh history from a clean export rather than the original repository.

Documentation

The long-form documents in docs/ are currently written in Russian; the README, CONTRIBUTING.md and SECURITY.md are the English entry points. Translations are welcome.

License

Librium is distributed under the MIT License. You may use, modify and redistribute the project, including in commercial products, as long as the copyright notice and the license text are preserved.

Third-party dependencies and the third-party images shown in demonstration materials keep their own licenses and rights. The MIT text: Open Source Initiative.

Contributing

Found a bug or have an idea — open an issue or send a pull request. For bugs, include the Librium version, the steps to reproduce and the expected result. Attach only anonymized examples, without cookies, tokens or personal traffic.

Development and check instructions are in CONTRIBUTING.md; guidance on handling sensitive data is in SECURITY.md.

About

Free, open-source HTTP, HTTPS and WebSocket debugging proxy for Windows and macOS. Rust core + Electron UI. Alternative to Charles, Proxyman and Fiddler.

Topics

Resources

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages