The Spectrum Dispatch News

technology

Zebkit brings Chromium engine to apps as a lightweight library

Zebkit embeds Chromium's web engine directly into native applications on Linux, macOS, and Windows, offering a lighter alternative to Electron with integrated PDF, media, and

Zebkit brings Chromium engine to apps as a lightweight library

Zebkit is a library that packages Chromium’s core components—Blink rendering engine, V8 JavaScript runtime with JIT compilation, PDFium for PDF handling, and FFmpeg for media—as a single embeddable component for native applications written in C, C++, Rust, Python, or JavaScript.

Zebkit brings Chromium engine to apps as a lightweight library

Unlike Electron, which serves as an application foundation with its own runtime and window management, Zebkit operates as a component that applications integrate alongside other libraries. Applications retain their own main process, event loop, and toolkit while adding Zebkit views where web rendering is needed. According to the documentation, Zebkit renders within the application’s native windows as frames or child windows, maintaining the application’s control over its UI and packaging.

The library exposes approximately 7,490 functions across Linux, macOS, and Windows through C APIs, with bindings for Rust, Python, and JavaScript. It includes 17 embedded C libraries—SQLite, LevelDB, BoringSSL, zlib, Zstandard, Brotli, ICU, HarfBuzz, libxml2, libwebp, libjpeg-turbo, FFmpeg, dav1d, Opus, libvpx, FreeType, and PDFium—eliminating the need to ship these dependencies separately.

Performance comparisons with Electron 45.2.1 show Zebkit is 34% smaller, starts with a cold launch in 2.3 seconds versus Electron’s 6.6 seconds, and uses 29% less memory for pages. The library runs Chromium 157, presenting the real Chrome user agent and supporting standard Chrome features.

Zebkit includes APIs for PDF rendering and editing with support for annotations, forms, redaction, and signatures; media capture that saves streams as MP4 or WebM without re-encoding; 2D drawing via Skia; and text layout through HarfBuzz. It integrates Playwright’s automation API natively without requiring a separate Node.js driver or Chrome DevTools Protocol, reportedly achieving 3 to 10 times faster performance than Playwright over CDP.

The library supports sandboxed page rendering with granular permission controls per view and origin. Applications can customize behavior through native hooks for navigation, popups, dialogs, network requests, and URL schemes. Zebkit also provides MCP (Model Context Protocol) tools for agent integration and supports both headless and windowed operation.

Version 0.4.0 is available as pre-built packages for Linux (x86-64 with glibc 2.17+), macOS (Apple silicon), and Windows (x64, Windows 10+), or can be built from source requiring approximately 30 GB of disk space.

Key facts

  • Zebkit embeds Chromium 157 engine as a library for C, C++, Rust, Python, and JavaScript applications
  • Approximately 34% smaller and starts 2.9 seconds faster than Electron 45.2.1 with 29% less page memory usage
  • Includes 17 embedded C libraries (SQLite, PDFium, FFmpeg, etc.) without requiring separate shipping
  • Integrates Playwright automation API natively—3 to 10 times faster than Playwright over Chrome DevTools Protocol
  • Supports granular permission controls, custom URL schemes, and sandboxed page rendering
  • Available as pre-built packages for Linux, macOS, and Windows; version 0.4.0 released

Sources

← All posts