Sashfold

Sashfold

A web browser written from scratch. Held to the best of them.

HTML, CSS, layout, fonts, networking, image codecs — one repository, three operating systems.

Every feature at least what the shipping browsers offer — and whatever can be written from scratch, written here.

Two rules, in that order. The bar for a feature is the industry’s standard at the least, and better where it can be: where Sashfold is short of it today the work is not done yet, and nothing was decided against. And the code that ships in a Sashfold binary is written in this repository — no vendored libraries, no “temporary” borrowed code. The binary links the operating system and the language runtime, the things every program on the machine already stands on, and a CI gate reads its import table and fails the build if anything else appears. On Linux that goes a long way down: no GTK, no Qt, no SDL, not even libwayland — Wayland, the sound server and the desktop’s bus are protocols over a socket, and Sashfold speaks them directly, the same way it speaks HTTP. Where a thing cannot be written here — a graphics card’s driver, the operating system’s own TLS on Windows and macOS — Sashfold uses what the platform provides, as every browser does. Writing it ourselves is how Sashfold is built; it is never the reason a feature falls short.

What Sashfold will never do

Writing it here is also a security stance: no supply chain to poison, no vendored CVE lag, nothing to audit but the one repository. Every parser is fuzzed from the week it is born.

Graded in public

Compatibility is never vibes here — it is numbers against fixed public yardsticks, enforced by baselines in CI that only ratchet upward.

7032 / 7032html5lib tokenizer tests — 100%
1784 / 1784html5lib tree construction — 100%
893 / 893WPT URL parsing — 100%
861,948Unicode bidi conformance cases — 100%
11128 / 16471WPT CSS reference tests — 67.6%, by directory
331523 / 403124WPT scripted tests — 82.2%, by directory
41845 / 45367test262, the ECMAScript conformance suite — 92.2%, by directory
100 pagesthe Sashfold 100 — the live web, rendered nightly on Windows and on Linux, every picture published
3 OSesbyte-identical rendering, proven in CI

The renderer is deterministic by construction — its own font parser and integer-only rasterization in place of each system’s text stack — so a page set in the same fonts renders to the same bytes on Windows, Linux, and macOS. Reference screenshots are compared byte-for-byte on every commit, and so are screenshots of the browser chrome itself: a script drives the same shell the window uses, headlessly, on all three OSes. A live HTTPS page fetches, decompresses, parses, and renders to pixels in about a quarter of a second, through Sashfold’s own URL parser, HTTP/1.1 and HTTP/2 client, TLS on Linux, and inflate. Every night the engine renders a hundred pages of the live web — drawn from the Tranco list of the most visited domains — and the pictures go up unretouched, each with what its load cost: the Sashfold 100, rendered by the Windows build and, through the engine’s own TLS client, by the Linux build.

A page rendered by Sashfold: headings, wrapped paragraphs, bold, italic and linked text, a blockquote, bulleted and numbered lists, a bordered box, centered text and preformatted text
Rendered by Sashfold: parser → cascade → layout → paint, every stage in-repo.
The Sashfold Mono typeface sampler: uppercase, lowercase, digits, punctuation, and weight and slant variants at several sizes
Sashfold Mono — an original typeface authored as coordinate tables in the source, needing no font file at all. It is the last fallback: pages are set in the fonts already on the machine, read and rasterized by Sashfold’s own TrueType stack, and Sashfold Mono draws an honest box for anything none of them has.

Why another engine

Because the web deserves a fast, private, transparent browser whose every feature stands beside the best of them or ahead — and because an engine written in one place is an engine anyone can learn from, audit, or embed without dragging three hundred megabytes behind it. What is not there yet is work to do, listed in public; none of it is a line Sashfold has drawn.