Zebkit: Chromium Embedding Without Electron's Overhead
Zebkit packages Chromium’s rendering engine as a single library for embedding in native applications, offering a lighter alternative to Electron. Rather than building applications on top of a runtime (like Electron), zebkit integrates as a component—similar to linking SQLite—allowing applications to retain their own event loop, toolkit, and distribution mechanism. The library bundles Blink, V8, PDFium, FFmpeg, and supporting libraries, and is available for Linux, macOS, and Windows with language bindings for C, C++, Rust, Python, Go, and JavaScript.
Performance gains over Electron 45.2.1 are significant: 34% smaller binary size, 2.3-second cold start versus 6.6 seconds, and 29% less memory per page. Zebkit exposes 17 internal Chromium libraries (SQLite, BoringSSL, Zstandard, ICU, HarfBuzz, libwebp, FreeType, and others) directly to applications, eliminating duplicate dependencies. A comprehensive PDF API supports rendering, text extraction, forms, annotations, signatures, and redaction; media streaming can be captured directly to MP4 or WebM without re-encoding; and native Playwright automation runs 3–10 times faster than Playwright over CDP.
The library is designed to integrate customization and security at the application level through hooks controlling permissions, navigation, downloads, and network requests. It includes MCP server support for AI agents and allows JavaScript to access native UI through a Chromium views toolkit. Applications can be written in any supported language while retaining full control over their architecture and packaging.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.