Scramjet — Browser
Forget disk cache. A Scramjet browser uses memory-mapped file I/O and even GPU memory to store fully-rendered page snapshots. If a page hasn’t changed (validated via lightweight ETags), it restores from local cache in under 10ms.
Because Scramjet does not render CSS or execute layout engines, it can parse and transform JSON, HTML, or binary data up to than Puppeteer in benchmark tests. It treats HTTP responses as streams, not documents. scramjet browser
| Metric | Chrome (cold load) | Scramjet Prototype | | --- | --- | --- | | Time to First Paint | 1.2 seconds | | | Time to Interactive | 2.8 seconds | 300 milliseconds | | Data overhead (wrong predictions) | N/A | 2.5x typical load | | CPU idle usage | Low | Medium-High (due to predictions) | Forget disk cache
async function main() // The "from()" method starts a stream of data await host .from([1, 2, 3, 4, 5]) // Simulate 5 pages .map(page => https://example.com/page/$page ) // Build URLs .flatMap(async (url) => fetch(url).then(res => res.text())) // Fetch HTML .map(html => html.match(/<img src="(.*?)"/g)) // Regex images .filter(Boolean) // Remove empty results .reduce((acc, images) => [...acc, ...images], []) // Combine .toArray() // Wait for result .then(console.log); // Output all image URLs Because Scramjet does not render CSS or execute
Because it operates at maximum efficiency, developers have successfully adapted it into deployment apps like the official Scramjet App or standalone cloud operations. 💼 Primary Use Cases for Scramjet
It had already installed itself three minutes ago.