Most developers using VS Code for API work eventually run into the same fork in the road:
- GUI API clients that feel great on day one, then gradually lock local collections behind mandatory sign-in, cloud sync, or proprietary JSON blobs that turn every PR diff into noise.
-
Plain-text
.httprunners (likehumao.rest-client) that keep requests clean and Git-reviewable, but haven't seen active maintenance in years and offer no visual builder for complex bodies, headers, or response inspection.
We built CaliberHTTP to bridge that gap without asking for an account, running a background database, or shipping native C++ binaries. Your .http and .rest files remain the single source of truth in your repository, while a split-pane React 19 Webview gives you a two-way Visual Request Studio on top.
Here is a look under the hood at how it works.
1. Why Plain-Text .http + Local Visual UI Beats Cloud-Locked Clients
When an API collection lives in a proprietary workspace store—or worse, a remote cloud account—several things break quietly:
-
Code reviews lose context: Adding a header or changing a payload in a PR should be a 2-line diff in
api/auth.http, not an opaque export file. - Localhost and VPN endpoints become second-class citizens: Sending internal service metadata through a cloud-connected client is a non-starter for many teams.
- Tooling lock-in: If an extension starts paywalling local collections or requiring login, your team's muscle memory and request history are held hostage.
Treating .http files as the canonical format solves all three. You can open a repository, click Send Request from an inline CodeLens, or open the Visual Request Studio to edit query params, auth headers, and JSON/GraphQL bodies—and everything writes straight back to plain text.
2. Lossless .http Parsing & Two-Way Sync
The hardest part of building a GUI on top of .http files is not destroying what the developer already wrote. If a user has file-level @baseUrl variables, comments explaining an edge case, or disabled headers (# X-Debug: true), a naive serializer that overwrites the whole file on every keystroke will ruin the file.
CaliberHTTP avoids this by treating each request block as an isolated slice in httpParser.ts:
@baseUrl = http://127.0.0.1:4010
@token = {{login.response.body.$.access_token}}
### Create Order
# @name create_order
# @assert status == 201
# @assert body.$.id exists
POST {{baseUrl}}/orders
Authorization: Bearer {{token}}
Content-Type: application/json
# X-Idempotency-Key: test-only-disabled
{
"sku": "caliber-pro",
"qty": 1
}
When parseHttpDocument() scans the file, it records exact 0-based lineStart and lineEnd offsets for each ### request segment, extracts @var = value declarations, parses # @name and # @assert directives, and preserves commented-out headers as { enabled: false } entries.
When you edit a header, URL, or body in the Visual Studio Webview, updateRequestInDocument() does not re-serialize the entire document:
- It re-parses the current
.httptext to locate the matching block byid(orlineStart). - It serializes only that single
HttpRequestBlockviaserializeRequestBlock(). - It splices
[...beforeLines, ...serializedBlockLines, ...afterLines]back together.
Surrounding @var declarations, comments outside the block, and every other request in the file remain byte-for-byte untouched. Conversely, editing the .http file in VS Code's text editor updates the Webview live.
3. Pure Node 20+ Built-Ins: Schema Drift & 127.0.0.1 Mock Serving
We kept CaliberHTTP's runtime dependency footprint at zero external runtime packages—no Electron sidecars, no SQLite native bindings, no Python helpers. Everything runs on Node 20+ built-ins (fetch, node:http, node:crypto, node:fs/promises) bundled with esbuild into a lean .vsix (~140 KB).
Local JSON Schema Drift Inference
API regressions rarely show up as 500s; they show up as a field silently changing from integer to string or disappearing from a nested object.
In schemaDrift.ts, CaliberHTTP implements a recursive structural type inferrer (inferSchema()) that distills any JSON response into a lightweight AST:
- Distinguishes
integer(Number.isInteger(value)) fromnumber,string,boolean,null,array(inspecting item shape), and nestedobjectproperties. - Stores pinned baselines locally in
.caliber/snapshots/<requestId>.json. - On subsequent runs,
compareSchemas()walks the baseline and current ASTs to classify drift:-
removed_field→ breaking -
type_changed→ warning if widening (integer→number), breaking otherwise (e.g.,number→integerorstring→null) -
added_field→ info -
status_changed→ breaking (if crossing 2xx/non-2xx) or warning
-
Local 127.0.0.1 Mock Server
Frontend and integration work often stalls waiting on a backend endpoint. CaliberHTTP's mock server (mockServer.ts) spins up a node:http server bound strictly to 127.0.0.1 (default port 4010) directly from either:
- Existing
.httpfixture files (using each request's method, normalized path, body, and optionalX-Mock-Statusheader), or - An OpenAPI 3.0/3.1 JSON spec (synthesizing example payloads from schema
examplefields or primitive types).
Route matching supports :param, {param}, and * path segments, responds to OPTIONS preflight with permissive local CORS headers (Access-Control-Allow-Origin: *), and keeps an in-memory ring buffer of the last 200 requests so you can inspect hits without leaving VS Code.
4. Transparent Free vs. Pro Breakdown (Zero Login, Zero Telemetry)
We wanted the pricing boundary to feel fair and predictable—everything developers were frustrated about losing in other extensions stays free forever:
| Capability | Free ($0 Forever) | Pro ($19 Early Bird One-Time / $5/mo) |
|---|---|---|
Local .http / .rest collections & Git-native sync |
Unlimited | Unlimited |
| Visual Request Studio Webview (dark/light/high-contrast) | Full | Full |
Inline CodeLens (Send Request / Open in Studio) |
Full | Full |
| HTTP/REST + GraphQL-over-HTTP (query + variables) | Full | Full |
Environments (caliber.env.json, .env, {{$uuid}}, {{$timestamp}}) |
Unlimited | Unlimited |
| Local history (last 100 runs) & single cURL import/export | Full | Full |
Multi-step @assert chaining + JUnit / Markdown / JSON export |
— | Included |
| JSON Response Snapshot & Schema Drift Detector | — | Included |
Local 127.0.0.1 Mock Server (.http & OpenAPI 3.x) |
— | Included |
HAR-to-.http batch importer & AES-256-GCM .caliber/vault.enc
|
— | Included |
Privacy & Offline Model:
- Zero telemetry, zero analytics, zero login. Outbound network calls only happen when you execute a request—or when you optionally activate/validate a Pro license key via Polar.sh.
- Pro licenses use a 72-hour local cache and a 14-day offline grace window stored in VS Code's OS-keychain-backed
SecretStorage. Transient network failures or air-gapped work will never lock you out.
Try CaliberHTTP
- Install from VS Code Marketplace: CaliberHTTP on VS Code Marketplace
-
Cursor / Windsurf / VSCodium (Direct
.vsix): GitHub Release v1.0.0 (code --install-extension caliberhttp-1.0.0.vsix) - Docs & Storefront: imgolamrabbani.github.io/caliberhttp
- Source Repository: github.com/imgolamrabbani/caliberhttp
- Optional Pro License: $19 Early Bird One-Time (Lifetime v1.x) or $5/month
If you hit any .http parser edge cases or have requests for CI export formats, open an issue on GitHub—we're actively iterating on v1.x.
Top comments (0)