Zebkit – Chromium as an embeddable library github.com · 59 points · 26 comments ...

@best

Zebkit – Chromium as an embeddable library github.com · 59 points · 26 comments · HN thread

TL;DR zebkit is an LGPL-2.1+ library that packages Chromium 157's engine (Blink, V8, PDFium, FFmpeg and more) so native applications in C, Rust, Python, Go or JavaScript can embed web views, PDF handling and Playwright-compatible automation without shipping Chrome's browser or Electron's runtime. The author claims it is 34% smaller than Electron 45.2.1 with a faster cold start and lower memory use on Linux. The thread is mostly comparisons with CEF, questions about sandboxing and shared libraries, and a sizeable pushback that the project reads as AI-written marketing.

  • zebkit links Chromium's engine as a library into the host's own event loop, via zebkit_init()/zebkit_pump() or zebkit_main(), instead of running it as a separate runtime.
  • Against Electron 45.2.1 on Linux, the project reports a 34% smaller package, a 2.3 s cold start versus 6.6 s, and 29% less memory for a blank page.
  • It exports about 17 Chromium C libraries (SQLite, BoringSSL, ICU, HarfBuzz, FFmpeg, PDFium and others) under zebkit_vendor_* so apps need not bundle them separately.
  • A built-in PDF API on PDFium covers rendering, text, search, annotations, forms, redaction, merging and signature checks.
  • Playwright's API runs inside the engine without CDP or Node.js; a click is reported at 2 ms versus 33 ms for Playwright over CDP to Chrome 156.
  • Every permission, dialog, download, menu, notification and device chooser can be handled by the host application through native hooks; platforms are Linux x86-64, Apple silicon macOS and Windows x64, at version 0.4.0.

Discussion The thread is mostly technical questions and comparisons rather than enthusiasm. Commenters ask how zebkit differs from CEF, whether it keeps Chromium's process sandbox, and whether the shared library can be shared across apps. The author answers many of these directly, including that the sandboxed renderer processes remain and that CEF is more mature with wider platform support. A strong skeptical strand argues that calling a Chromium-sized engine 'slim' or 'light' is misleading, and one commenter says the post reads as LLM-generated, which the author disputes by providing a short plain-language summary.

  • Useful alternative to CEF, which is hard to work with (some): Commenters who have used CEF say it is a painful dependency to ship, and welcome a library with bindings and a smaller surface. The author lists where CEF still leads: maturity, platform coverage (including Intel Macs and Arm Linux) and missing printing and Widevine support.
  • Size and 'light' claims are overstated (some): Several commenters think a near-full Chromium cannot honestly be called slim or light, and that being a few tens of percent smaller than Electron is a weak benchmark. The author replies that WebRTC and video cannot be dropped because Blink depends on them.
  • Embedding Chromium in-process raises security concerns (some): Commenters worry that loading a browser engine into the app process exposes the app to browser security issues and that a crash would take the whole app down. The author says the renderer stays in Chromium's sandboxed processes, with the same limits as Chromium.
  • Post reads as AI-generated and is hard to follow (a few): One commenter says the post was flagged as AI-generated and wants the author's own perspective instead of a README summary. The author responds with a short plain summary, and another commenter questions the odd project name.
  • Small-footprint alternatives like Sciter or Electrobun are better bets (a few): One commenter argues that effort is better spent on lightweight engines such as Sciter, since even Electrobun still decompresses to around 70 MB. No other commenter takes this up.
  • Practical notes from people shipping Chromium (a few): A CEF user warns about notarizing macOS helper processes, choosing the right FFmpeg license build (GPL versus LGPL), and the license implications of Blink. The author plans to add license and notice files to the release archives.

#Chromium #Electron #embedding #WebEngine #Playwright #PDF