An agent-native app runtime and rendering engine written in Zig. Custom HTML, CSS, layout, and paint — no WebView, no Blink, no WebKit.
Photon's rendering pipeline: HTML → CSS → style resolution → layout → display list → paint. 137 text commands, correct syntax colors, font shaping via HarfBuzz + FreeType.
Block, inline, flexbox, grid, absolute/fixed positioning, margin collapsing, box-sizing.
Selectors, specificity, cascade, inheritance, var() custom properties, viewport units.
HarfBuzz + FreeType cross-platform. @font-face, icon fonts, glyph atlas caching.
JavaScriptCore with DOM stubs. VS Code's 35MB bundle evaluates and produces live DOM.
Native macOS window with CAMetalLayer. Software renderer for headless and testing.
Zero-cost C interop, no GC, comptime generics. The entire pipeline from HTML to pixels.