Scramjet is built to be a resilient, production-ready framework for open-source developers building privacy-focused applications.
: When you enter a URL, the Scramjet proxy intercepts the request before it leaves your browser.
The browser engine includes a specialized JavaScript rewriter . This rewriter modifies the site's code—including links, script tags, and resource paths—to point back through the proxy, ensuring that all subsequent data stays within the unblocked tunnel.
if (!response.body) throw new Error("Fetch body is null"); scramjet browser work
A real scramjet (Supersonic Combustion Ramjet) doesn’t carry heavy oxygen tanks. It flies so fast that it air into its engine at Mach 5+. Combustion happens instantly in the supersonic airflow.
Executing stream processing directly inside the user's browser unlocks architectural patterns that were previously impossible or highly inefficient.
You can process binary data, such as reading a large image file chunk by chunk to calculate a hash or process metadata. Scramjet is built to be a resilient, production-ready
: It catches outgoing requests before they reach the browser's standard network stack. Rewrite Traffic
: As the remote server sends back raw HTML, JS, and CSS data, Scramjet’s WebAssembly engine parses the code. It rewrites every hardcoded hyperlink, script source, and Cross-Origin Resource Sharing (CORS) policy attribute on the fly.
A common browser use case is processing a user-selected file. Combustion happens instantly in the supersonic airflow
To appreciate the speed of a Scramjet architecture, it helps to understand the bottlenecks in standard browsers like Google Chrome, Mozilla Firefox, or Apple Safari.
This guide will walk you through the lifecycle of a browser-based Scramjet implementation, from setup to advanced features.
However, because "browser" is an unusual word in this context, I will cover the most likely intent (how the engine works) and briefly address the other possibilities (such as JavaScript libraries or searching for information).