Live KDL and CSS
Bind KDL screens to fields and actions on Java models. Edit markup and CSS while the window stays open. Use flexbox and container queries for layout.
Build your interface in Java or KDL. Edit the markup and CSS while your app runs.
JDK 25+ Linux, macOS and Windows Apache 2.0
Bind KDL screens to fields and actions on Java models. Edit markup and CSS while the window stays open. Use flexbox and container queries for layout.
Use Offscreen in JUnit to click a control by role and name, step an animation with a virtual clock, and compare the rendered frame with a reference screenshot.
Run the app on Java 25 or ship it as a GraalVM executable for each target. The weaver binds the same Java models at build time for the native image.
Blend2D paints widgets on the CPU. Add a canvas3d layer to draw a scene on the GPU and place ordinary controls over it.
Render Markdown and HTML as Goldberry widgets. Add rich text fields with mentions and optional Hunspell spelling, and use SVG views that take their colour from CSS.
Play audio and video, preview a camera feed, and display a live waveform or spectrum. Use synthetic camera and microphone sources in tests.
Browse screenshots from the example app shipped with Goldberry.







Use the BOM to keep module versions in sync. Add a natives classifier for each platform your app will run on. The Maven example uses Linux x64.
Installation guiderepositories {
mavenCentral()
}
dependencies {
implementation platform('dev.goldberry:goldberry-bom:2026.3')
implementation 'dev.goldberry:goldberry'
runtimeOnly 'dev.goldberry:goldberry-natives::linux-x64'
runtimeOnly 'dev.goldberry:goldberry-natives::linux-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::macos-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::windows-x64'
}<dependencyManagement>
<dependencies>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry-bom</artifactId>
<version>2026.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry</artifactId>
</dependency>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry-natives</artifactId>
<classifier>linux-x64</classifier>
<scope>runtime</scope>
</dependency>
</dependencies>Run this class on a JDK 25 or later. Enable native access for the launcher and pass -XstartOnFirstThread on macOS.
Hello.java
import dev.goldberry.Goldberry;
import dev.goldberry.Window;
public class Hello {
static void main() {
var window = Window.open("Hello, Goldberry", 480, 320);
window.onPaint(frame -> frame.fill(0xFF2E3440));
Goldberry.run();
}
}KDL describes the widget tree and names actions on your Java model. CSS handles flexbox layout, colours and transitions, with support for nesting, cascade layers and container queries.
Switch between the built-in light and dark themes at run time. Both share the same spacing, type scale and control sizes.
row {
spacer
button press="dismiss" "Cancel"
button class="danger" press="delete" "Delete"
}row {
gap: 8px;
}
button.danger {
background: var(--gb-button-danger-bg);
color: var(--gb-button-danger-text);
}
button:focus-visible {
outline: 2px solid var(--gb-accent);
}| Deployment | JVM | GraalVM native image |
|---|---|---|
| What you ship | Application and dependency jars, including native classifier jars | One executable per target platform |
| What users need | JDK 25 or later and the target platform’s system libraries | The target platform’s system libraries |
| Binding Java models | At run time using annotations | Ahead of time with the Goldberry weaver |
| Build tools | Gradle or Maven on a JDK 25 or later | GraalVM for JDK 25 and a native toolchain |
Linux Showcase runs and raster benchmarks from the performance guide.
Median across seven launches
Median across five launches
Median across five launches
960 × 640 window with wrapped text
3840 × 2160 across four paint workers
One small box updated at 960 × 640
A JDK 25 or later can run a Goldberry app. Use GraalVM if you want to ship a native executable that runs without a JDK.
The toolkit ships native libraries for Linux x64 and ARM64, macOS on Apple silicon, and Windows x64. On Linux it supports Wayland and X11.
Goldberry can paint and present on the CPU. With goldberry-gpu, windows can present through the GPU and apps can draw into a canvas3d layer.
Yes. An Offscreen session in JUnit can find a widget by ID or by role and name, drive input, advance a virtual clock and compare the rendered image with a reference.
Widgets support keyboard navigation, focus indicators and a semantics tree. A bridge to platform screen readers is still on hold.
Goldberry adds rich text editing, optional spell checking and SVG rendering. New modules handle camera and microphone capture. This release also adds CSS nesting, a new media engine and a Gradle plugin for ahead-of-time binding.
Upgrading from 2026.2? Update your native classifier jars and check the media dependency changes. Upgrade notes
The first release brought KDL with hot reload, CSS and flexbox, and desktop builds for Linux, macOS and Windows.
Version 2026.3 runs without a JDK. Extract the archive on Linux and macOS, or run the .exe on Windows.