JIVE completely overhauls the frontend development experience for JUCE projects by providing a high-level API for building and styling UIs. JIVE interprets XML files for layouts, and JSON files for styling, similar to the way browsers load HTML and CSS.
What’s New?
Hot Reloading
The most highly-requested feature - views written in XML and style sheets written in JSON are now hot-reloaded when changed and the updates are applied to the UI immediately.
Source directories can be specified with jive::SourceRoot, or the jive_sources() CMake function, which JIVE will use to find files from relative paths. In Debug builds, any changes to files in the specified locations will be hot-reloaded. In Release builds, JIVE will bundle all the sources into a ZIP, embed that in your project, and load files from the embedded ZIP instead.
Templates & Imports
XML views can be reused in other views using the "template" property.
- Templates can include placeholders which can be injected by the calling view
- Templates can be given snippets, which are child components provided by the calling view that the template can choose where to add in its markup
<!-- LabelledWidget.xml -->
<Component name="{{ widget_name }}">
<Label>{{ widget_name}}:</Label>
<Snippet name="widget"/>
</Component>
<!-- MainView.xml -->
<Window>
<Component template="./LabelledWidget.xml" widget_name="Gain Slider">
<Snippet name="widget">
<Slider min="-12" max="12" value="-3"/>
</Snippet>
</Component>
</Window>
Style sheets can similarly be imported in other style sheets to reuse and share styling rules
- A selector can be given a path to another style sheet. The rules from that style sheet will be applied to the selector
- The
"imports"property can list multiple other style sheets to import into the current one
{
"imports": [
"./Sliders.json",
"./ComboBoxes.json"
],
"Button": "./Button.json"
}
Automatic Parameter Attaching
Give a juce::AudioProcessorValueTreeState to jive::Interpreter::autoAttachParameters() and any components with a "parameter" property, or an "id" that match any of the audio parameters’ IDs will be automatically attached. JIVE will choose the correct attachment according to the type of the widget.
Localisation
JIVE manages .strings files for you, all you need to do is specify "lang" on a component to choose its language, then any user-facing text will be replaced if it matches any of the keys in the chosen .strings file.
More Components and Styling
JIVE v2 adds several new components, including <TextEditor> and <Keyboard>, and adds proper styling support for combo box menus, and tooltips.
Guides & Examples
JIVE v2 now includes several guides and examples to help you get started with JIVE and learn its features.
BoaBass
The examples also include a “real” project, BoaBass, which showcases most of JIVE’s features in a single Bass Synth plugin.

