Zebkit introduces Chromium's rendering engine as a single, lightweight library for application integration. Unlike Electron, which runs an entire browser inside an app, zebkit lets developers add web rendering, PDF support, media handling, and native UI components on their own terms. The engine includes Blink, V8 with JIT tiers, PDFium, and FFmpeg, all exported under a unified API.
It supports multiple languages including C, C++, Rust, Python, and JavaScript. Zebkit is significantly lighter than Electron, offering a 34% smaller binary size, cold starts in 2.3 seconds, and 29% lower memory usage for page rendering. The library bundles 17 essential C libraries like SQLite, BoringSSL, and FFmpeg, preventing redundant shipping.
It provides a full PDF API with rendering, text layout, search, and digital signature support. Media can be captured as it plays to MP4 or WebM without re-encoding. Communication between the page and application occurs over Mojo channels, with large data transferred via shared memory.
The UI layer, zebkit.ui, renders dialogs and prompts using Chromium's views toolkit. Playwright's API runs natively within the engine, supporting locators, actions, and tracing. Pages render as Chromium 157 with full user agent access.
Source: Hacker News · Summarized by HeadlinesBriefing