Local HTTP bridge - how the site sees your rig exactly

Abliteration exposes a tiny read-only HTTP endpoint on 127.0.0.1:47821 so abliteration.org can show precise compatibility colors instead of browser guesses.

Short answer

While Abliteration is running, it exposes a tiny read-only HTTP endpoint on 127.0.0.1:47821. The site at abliteration.org can probe it to show measured verdicts (“Runs on your machine”, “Tight: close other apps”, “Too big for this machine”) across the whole catalog instead of guessing from browser hints. Loopback only - no external network exposure, no tokens. The hardware description stays in your browser; the only part that reaches the abliteration.org server is your free and total RAM, kept in a 30-minute cookie that the models list sends with its request for the list ordered by what fits (see below). It is never put in a page address.

Detailed explanation

Why the bridge exists. Browsers can’t see how much RAM your machine actually has free right now - navigator.deviceMemory caps at 8 GB and doesn’t distinguish free from total. So without help, the catalog can only guess: the plate at the top stays neutral with a green accent, invites you to open the app and gives a rough estimate from your browser, and every model gets the same rough numbers. With Abliteration running, the site probes the local bridge, reads real RAM/CPU/GPU numbers, and every compatibility chip across every model page reflects them.

Endpoints. The bridge is two GET routes on 127.0.0.1:47821.

  • GET /health - a fast liveness check. Returns {"ok": true, "app": "abliteration", "version": "<sem>", "schema": 1} from a response built once at startup. Never touches disk or the model index - the site uses it as the first probe.
  • GET /rig - the full hardware description: OS name and version, CPU model and core counts, total and free RAM, GPU (reported when a dGPU/eGPU with ≥ 2 GB VRAM is present - otherwise, including integrated graphics and Apple silicon’s unified memory, the GPU name is null with zeroed VRAM), plus a UTC timestamp of when the numbers were measured.

Both endpoints answer Access-Control-Allow-Origin: https://abliteration.org so the browser lets the site read them. Preflight OPTIONS returns 204. Only when the DEV_CORS=true environment variable is set does the app also echo back http://localhost and http://127.0.0.1 origins (any port), for development.

Port fallback. The bridge tries 47821 first. If that port is taken (rare on typical machines), it falls back to 47822, then 47823. Beyond three, the app gives up rather than picking an arbitrary port the site can’t find.

Refresh cadence. ram.free_gb is the only field that meaningfully moves during a session - everything else (CPU, GPU, total RAM) is measured once at startup. The app refreshes free RAM in the background every 4 seconds; the site caches the last /rig response in sessionStorage for 30 seconds before probing again.

Startup and shutdown. The bridge starts with the app and stops the moment you Quit. Closing the window on either platform does not stop the bridge: on Windows the app minimises to the tray, on macOS it stays in the menu bar (see Menu bar and tray), and the bridge keeps serving in both cases. This is the whole point: opening abliteration.org after checking your email should still see accurate colors without you re-launching anything. Only Quit stops the bridge.

Same bridge on Windows and macOS. The endpoints, the port, the schema, and the response shapes are identical. The site does not care which OS the visitor is on, it fetches /health and /rig the same way in both cases. If the Mac app is running but the site still shows guess mode, see The site says “install the app” even though I have the app on macOS.

How the site probes. Every page on abliteration.org that shows a rig-aware component ships a small inline script. On load it looks in sessionStorage['abl_rig'] for a cached probe under 30 seconds old; a hit shortcuts the network entirely. On a miss it walks the three ports in order and fires GET /health at each with a 1500 ms timeout - long enough for Chrome’s Private Network Access preflight, short enough that a probe against a dead port doesn’t stall the page. The first port that answers gets a 500 ms follow-up GET /rig; the result is written back to sessionStorage and dispatched as a window event named abl-rig-ready. Every rig-aware component on the page subscribes to that event and recolors itself when it fires. On any failure - port closed, wrong host, timeout, non-200 - the site falls back to the browser guess and moves on. Nothing blocks first paint.

What the site shows in each state. Two visual modes, same layout, different palette.

  • Guess (no bridge). The plate is neutral with a green accent: the promise first, then the browser’s estimate. On /models it reads “Which of these run on your computer? Open the free Abliteration app and this catalog sorts itself.” and, below that, “Without the app we can only guess from your browser: files up to about 7 GB may fit.”, next to a Get the app → button. Browsers that give no memory hint (Safari, Firefox) show only the first line. On a model page the plate is tagged GUESS and asks “Will this run on your computer?” with a Get the free app button. In Chrome, while the page doesn’t yet have permission to reach the app, a Connect card appears in the plate: click Connect, then choose Allow when the browser asks. Card chips name the model’s smallest file and stay grey (“Q4_K_M · 4.7 GB · fit unknown without the app”) unless the browser’s estimate says it likely fits (yellow, “likely fits (estimate)”). The estimate is rough because the browser hides real memory behind navigator.deviceMemory, which caps at 8 GB and never reports free vs total, so a Chromebook and a 128 GB workstation look the same from JavaScript. A small ? chip (“Why do I need an app?”) in the plate opens a popover that explains why the bridge helps.
  • Connected (bridge answered). The plate turns green, tagged CONNECTED, and prints the CPU model, total RAM and free RAM straight from /rig. For a few seconds after it connects it also says “Connected to your Abliteration app”. Every card shows a measured verdict for the model’s smallest file: “runs from Q4_K_M”, “Q4_K_M tight: close other apps” or “too big even at Q4_K_M”. /models then lists only what runs, under “Of N models, M run on your computer”, with the rest behind “Show all other models (N)”. The ? popover, the GUESS tag and the get-the-app buttons hide themselves - they’d read as noise when the numbers on screen are already exact.

Losing the bridge mid-session. The site probes when a page loads, reusing an answer less than 30 seconds old, and while the page is open and your browser allows it to reach the app, it keeps checking quietly: several times a second until the app answers, then once a second while it is connected. If you Quit Abliteration, the open page notices within about a second and drops back to guess mode: the plate loses its green, chips go back to estimates, the CTA reappears. Start the app again and the page turns green within about half a second, without a reload. The quick checks stop after 10 minutes without an answer and start again when you come back to the tab. This is why the app minimises to the tray by default: closing the window doesn’t drop the bridge, only Quit does.

The catalog Compatibility row. Without the app, the /models sidebar has one Compatibility row, marked guess: Show what runs first. It changes the order and never hides anything. It links to ?fit=1, and the list then shows the models whose smallest installable file likely fits first, under “Likely fits (estimate)”, and everything else after them, under “All other models”, each in the chosen sort. Older links like ?fit=green,yellow just turn it on. With the app connected the row is hidden because the order is automatic: the list shows only the models that run, under “Runs on your machine”, and the rest wait behind “Show all other models (N)”. Either way the server orders the whole catalog, not just the visible page, judging each model’s smallest installable file with the same thresholds the cards use. The visitor’s free and total RAM never go in the URL: the page keeps them in a 30-minute cookie, abl_fit, sent only with its request for the ordered list (/api/models-list), and swaps that list in place, so the SQL sees the same rig the plate is showing. Without JS the list keeps its normal order.

Why it matters

The compatibility color on every model card is the difference between a catalog that helps you and a catalog you have to work around. Two identical laptops with 32 GB RAM can have wildly different “free right now” numbers depending on what else is open. The bridge closes that gap - the model page says “Runs on your machine” only when it actually will. Without the bridge, the same catalog card says “fit unknown without the app”, or “likely fits (estimate)” when the browser’s rough numbers allow it, and the plate at the top of the page carries a Get the app → button.

In Abliteration specifically

The bridge is loopback-only: it binds 127.0.0.1, never 0.0.0.0. Nothing on your local network can reach it, only the browser running on the same machine. There are no tokens, no signatures, no cookies - the entire security model is “loopback plus an Access-Control-Allow-Origin on the specific site domain”. The endpoint returns hardware description and nothing else - not chat history, not installed models, not filesystem paths, not usernames.

The schema is versioned. Today’s shape is schema: 1. Only a breaking change to the field layout bumps the number; adding a new optional field doesn’t touch the schema at all.

If you want to see what the site sees, curl http://127.0.0.1:47821/health and curl http://127.0.0.1:47821/rig from any shell on the same machine while the app is running. The JSON that comes back is exactly what the catalog uses to color your chips.

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration