# 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:

```kotlin title="build.gradle.kts"
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](/docs/os/spell-check). The native macOS context menu, `Modifier.keepScreenOn()` and
native image support also come with it.

`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](/docs/migrate/from-2.x).

## Toolkit modules

`window-jewel` (Java 25), `window-material2` and `window-material3`
style windows and dialogs inside `nucleusApplication`. See [Toolkits](/docs/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`, which
  `nucleus-application` brings. *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.

- On the compile classpath, `nucleus-application` brings `window-runtime`,
  `window-core`, `core-runtime`, `aot-runtime`, `darkmode-detector` and `spellcheck`.
- At run time only, it adds `graalvm-runtime` (with `linux-hidpi`), `menu-macos` (with
  `sf-symbols`), `energy-manager` and `angle-natives`. Declare one of them to import its API.
- The notification, launcher and media-control modules deliver their callbacks through
  `NucleusUiThread`. See [Threading](/docs/concepts/threading).
- Modules read your app's identity from `NucleusApp.appId`, `NucleusApp.version` and the other
  properties the Gradle plugin writes at build time.

## What's next

- [Architecture](/docs/concepts/architecture): how the layers fit together.
- [Threading](/docs/concepts/threading): which thread runs your callbacks.
- [Recipes](/docs/recipes): tasks that combine several modules.
- [Gradle DSL reference](/docs/reference/gradle-dsl): every build setting.
