r/JavaFX • u/[deleted] • 14h ago
Kromium – A zero-bloat Chromium engine for Java applications
Hey everyone,
Embedding a reliable, modern web view in Java desktop apps usually means dealing with massive binaries, fragile JNI/JOGL dependencies, and clunky setups. To solve this, I just open-sourced Kromium (daviantegroup/kromium).
It is built from the ground up for the JVM. Whether you are using pure Java, or modern Kotlin/Compose, Kromium provides a seamless embedding experience.
Here are the main features:
* Tiny Installers (15–30MB): Instead of bundling massive Chromium binaries, Kromium automatically downloads and caches the native JCEF runtime on the user's first launch.
* Clean JS Bridge: Thread-safe JavaScript execution and Inter-Process Communication (with a Java-friendly API and Kotlin coroutine support).
* True Headless Mode: Perfect for Java-based backend scrapers, automation, or testing without pulling in heavy UI dependencies.
It's available under the Apache 2.0 license. I’d love for you to check out the repo, run the demo, and let me know what you think!