Modules
Every Nucleus module by platform and category, what nucleus-application brings, and what each module needs.
Nucleus modules release together under the dev.nucleusframework group. nucleus-application
brings the entry point, windows and runtime essentials. Add any other module when your app needs
it, on the same version:
val nucleusVersion = "<version>"
dependencies {
implementation(compose.desktop.currentOs)
implementation("dev.nucleusframework:nucleus.nucleus-application:$nucleusVersion")
implementation("dev.nucleusframework:nucleus.notification-common:$nucleusVersion")
implementation("dev.nucleusframework:nucleus.global-hotkey:$nucleusVersion")
}What nucleus-application brings
Windows, dialogs, popups and native content, window themes and icons, platform detection,
NucleusApp metadata, single instance, deep links, the AOT cache, isSystemInDarkMode(), and
spell check. The native macOS context menu, Modifier.keepScreenOn() and
native image support also come with it.
Changed in 3.0
nucleus-application exposes window-runtime, so remove your own window-runtime
dependency. The decorated-window-* modules are now window-*: decorated-window-tao is
window-runtime, and -core, -jewel, -material2 and -material3 keep their suffix. Kotlin
packages are unchanged. decorated-window-awt, decorated-window-jbr and decorated-window-jni
no longer exist. See Migrate from 2.x.
Toolkit modules
window-jewel (Java 25), window-material2 and window-material3
style windows and dialogs inside nucleusApplication. See Toolkits. They need
window-runtime, which nucleus-application brings, and work without the Gradle plugin.
Read the requirements
Each module below shows what it needs besides its own dependency. For a multiplatform module,
both requirements concern its desktop builds only: on Android, iOS and the web it needs neither
the Gradle plugin nor window-runtime.
- Gradle plugin: Required means the module only works in an app the Nucleus Gradle plugin builds and packages. Recommended means it runs without the plugin, but part of it relies on what the plugin injects, such as the app id, the Windows AUMID or Info.plist keys. The module's page says what.
- Window runtime: Required means the module needs
window-runtime, whichnucleus-applicationbrings. No means it also works in a plain Compose Desktop or JVM app.
nucleus-application itself works without the plugin, but its single-instance lock and app
identity come from the packaged build.
native-http, native-http-okhttp and native-http-ktor bring native-ssl with them.
Find a module
Filter by the platform you target, then open a page for its dependency line, a working example and its limits.
55 module pages
- FlathubPublish a Nucleus app on Flathub without opening its source, and install its updates from inside the app with the flatpak module.
- Application entry pointStart a Nucleus app with nucleusApplication, and control how it quits, locks to one instance, and initializes FileKit.
- Energy managerLower your app's OS scheduling priority in the background and keep the system or display awake from Kotlin.
- Filesystem watcherWatch files and directories from Kotlin and collect create, modify, remove, and move events as a coroutine Flow.
- Launch at loginEnable, disable, and query launch at login from Kotlin with one API that picks the backend for the current packaging format.
- SchedulerRun periodic, calendar, and on-boot background tasks from Kotlin that the OS fires on schedule, even when your app is closed.
- Scheduler testingTest doubles for the scheduler that run background tasks in memory, with virtual time and controllable constraints.
- Service management (macOS)Register login items, launch agents, and launch daemons through the macOS SMAppService API from Kotlin.
- Mac App StoreSell a Nucleus app on the Mac App Store, from Kotlin: in-app purchases and subscriptions over StoreKit 2, the app's licence, and development without an Apple account.
- AudioPlay music, podcasts and the sound of any media with AudioPlayer, on the platform's decoders, without decoding a picture.
- Media playerPlay video and audio with one Compose API on Windows, macOS, Linux, Android, iOS and the web, with HLS, DASH, offline playback and the system's media controls.
- OfflineDownload a video, an episode or a whole HLS stream with MediaDownloads, follow its progress, and play it from the device without network.
- StreamingPlay HLS, MPEG-DASH and Smooth Streaming, live streams with a DVR window, audio languages, video variants, subtitles, request headers and timed metadata.
- System sessionShow what plays on the lock screen, in the notification and in the system's media center, and answer media keys and headset buttons with media-session.
- VideoShow a video with VideoPlayerSurface, build controls on VideoPlayerState, and add fullscreen, subtitles, picture-in-picture and thumbnails.
- Microsoft StoreSell a Nucleus app on the Microsoft Store, from Kotlin: the app's license and free trial, add-ons, in-app updates, and submissions from CI.
- AuthenticationAsk the OS to confirm the device owner is present, with Touch ID, Face ID, Windows Hello, Android BiometricPrompt or polkit, from Kotlin Multiplatform code.
- Cross-platform notificationsSend desktop notifications on macOS, Windows, and Linux from a single Kotlin API.
- Dark mode detectorRead the operating system's light or dark theme from Kotlin and recompose your Compose UI when it changes.
- FreeDesktop icon namesTyped Kotlin constants for the names defined by the FreeDesktop Icon Naming Specification.
- Global hotkeysRegister system-wide keyboard shortcuts that fire while your app is in the background.
- iOS widgetsShow the same Nucleus widgets on the iOS home screen with WidgetKit, from a Kotlin Multiplatform app.
- Linux launcherSet count badges, progress bars, urgency flags, and right-click quicklist menus on the Linux launcher from Kotlin.
- LocationRead the device's position from Kotlin Multiplatform code, with one API on Windows, macOS, Linux, Android, iOS and the web.
- macOS Dock menuPopulate the Dock right-click menu of a macOS app with items, submenus, and separators, and handle clicks from Kotlin.
- macOS menu barBuild the native macOS menu bar from Compose, with items, shortcuts, icons, badges, and submenus that follow your state.
- macOS widgetsShow Nucleus widgets on the macOS desktop and in Notification Center with WidgetKit, from a JVM or GraalVM app.
- Media controlsPublish now-playing metadata to the system media center and receive playback commands on macOS, Windows, and Linux from Kotlin.
- Notifications on LinuxSend freedesktop desktop notifications over D-Bus from Kotlin, with urgency, hints, sounds, images, and action callbacks.
- Notifications on macOSKotlin bindings for Apple's UserNotifications framework, with authorization, categories, attachments, text input, triggers, and interruption levels.
- Notifications on WindowsSend Windows toast notifications from Kotlin with adaptive text, images, buttons, inputs, headers, and progress bars.
- Progress and attentionShow progress and attention requests on the Dock icon, the taskbar button, or the Linux launcher entry from Kotlin.
- Screen captureCapture a display, a region or any window in physical pixels, without AWT, on Windows, macOS and Linux.
- SF SymbolsTyped Kotlin constants for Apple SF Symbols names used by macOS APIs.
- Share sheetOpen the system share sheet from Kotlin Multiplatform code, attached to a Nucleus window on desktop.
- Speech recognitionStream native speech-to-text from Kotlin Multiplatform code on Windows, macOS, Android and iOS, and dictate into a text field.
- Spell checkCheck spelling in Compose text fields with each operating system's engine, NSSpellChecker on macOS, the Windows Spell Checking API, and Hunspell on Linux.
- System accent colorRead the user's OS accent color and high-contrast setting as Compose state that follows system changes.
- System infoRead host details such as the OS, CPU, memory, disks, GPUs, batteries, network, processes, and users through the SystemInfo object.
- System trayDraw a tray icon and its native menu from Compose on macOS, Windows, and Linux without AWT.
- Tray-anchored appsTrayApp opens a Compose popup window next to a system tray icon, for menu bar and tray utilities written in Kotlin.
- WidgetsWrite a widget once in Kotlin, Glance style, and show it on the Windows 11 widgets board, the macOS desktop, and the iOS and Android home screens.
- Windows taskbarDrive the Windows taskbar from Kotlin with overlay icons, jump lists, thumbnail toolbar buttons, and badges.
- Windows widgetsShow Nucleus widgets on the Windows 11 widgets board, with text entry, customization and web widgets.
- Auto-updateCheck for, download, verify, and install application updates from Kotlin with updater-runtime, without a third-party service.
- Test updatesTry the update UI, a real download and a full install against your next build, without publishing a release.
- PDF readerRender PDFs, extract text, and select or copy content from Compose, with one API across Android, iOS, web, and desktop.
- AOT cacheGenerate a Project Leyden AOT cache at build time and ship it in every installer, so the JVM skips most of its warmup at launch.
- GraalVM Native ImageCompile a Nucleus app ahead of time into a self-contained native binary. The plugin provisions GraalVM and generates the reachability metadata for you.
- Native HTTPConfigure java.net.http.HttpClient, OkHttp or Ktor to trust the operating system certificate store through NativeTrustManager.
- Native proxyRead the operating system's proxy configuration, PAC scripts included, and install it as the JVM-wide ProxySelector.
- Native SSLRead the trusted certificates of the operating system and merge them with the JVM defaults into one X509TrustManager.
- JewelStyle a Nucleus window with Jewel colors and metrics so the title bar and chrome match the IntelliJ Platform.
- Material 2 and 3Theme a Nucleus window from a Compose MaterialTheme with the Material 2 or Material 3 adapter.
- WebViewEmbed a native web engine in Compose with one API across Android, iOS, web, and desktop.
What's next
- Architecture: how the layers fit together.
- Threading: which thread runs your callbacks.
- Recipes: tasks that combine several modules.
- Gradle DSL reference: every build setting.
Last updated on
Configuration
Write the minimal nucleus.application { } block a new app needs, then find the page that covers each packaging, runtime, and OS integration option.
Migrate from Nucleus 2.x to 3.0
Move a Nucleus 2.x app to 3.0. Move to Compose 1.13, rename the window and tray dependencies and packages, remove the backend choice and the AWT windows, and review the runtime and build changes.