
Cross-platform WebView component exposing WebViewState and navigator APIs; backed by native OS webviews via Rust+UniFFI (Wry), with JS-native bridge, cookie API, request interceptor.
This project is not dead: its code now lives in the Nucleus repository, as the Kotlin Multiplatform webview module (desktop, Android, iOS, web), maintained and released there.
dependencies {
implementation("dev.nucleusframework:nucleus.webview:3.0.0")
}Coming from dev.nucleusframework:composewebview 1.0.x, the package and the API are the same: swap the dependency and move to Nucleus 3.0.
→ Migration guide from Compose Native WebView · WebView documentation
errorsForCurrentRequest on macOS and Linux, and WebView2 creation failures reported instead of crashing.location.hash changes, and a bridge handler that throws no longer breaks it.dataDirectory honoured on macOS 14+.iframe is laid out by Compose (HtmlElementView) instead of floating over the canvas.captureImageBitmapOrNull() captures the page as an ImageBitmap.Nucleus is modular, and nucleus.webview is one artifact.
nucleusApplication), as it already did in 1.0.x. The system's web engine (WebView2, WKWebView, WebKitGTK) is a native view embedded by the Nucleus window runtime, sized, clipped and focused with the Compose layout. The first versions of this library did it on AWT, the backend of Compose Desktop's windows: a heavyweight canvas in a SwingPanel, its bounds pushed by a timer, focus requested by hand, events pumped by another timer. Every one of those was a hack paid for in performance and too much for me to keep maintaining. Nucleus's window runtime is far more modern and built for exactly this kind of use.A desktop WebView is a native view inside a window: it depends on the window runtime, on the native libraries for each OS, on packaging. Keeping it in its own repository meant following Nucleus from the outside, with its own build, its own CI and its own version. The 1.0.x line, for example, still pulled the 2.5 window artifacts after Nucleus 3.0 renamed them.
In the Nucleus repository the WebView is built, tested and released together with the rest of the framework:
webview in the Nucleus repository.archive branch. Published versions stay on Maven Central (dev.nucleusframework:composewebview, and io.github.kdroidfilter:composewebview for the earlier Wry-based builds).Apache-2.0, see LICENSE. Nucleus is MIT; its webview module keeps the Apache-2.0 notices of the code it derives from (see its THIRD_PARTY_NOTICES).
This project is not dead: its code now lives in the Nucleus repository, as the Kotlin Multiplatform webview module (desktop, Android, iOS, web), maintained and released there.
dependencies {
implementation("dev.nucleusframework:nucleus.webview:3.0.0")
}Coming from dev.nucleusframework:composewebview 1.0.x, the package and the API are the same: swap the dependency and move to Nucleus 3.0.
→ Migration guide from Compose Native WebView · WebView documentation
errorsForCurrentRequest on macOS and Linux, and WebView2 creation failures reported instead of crashing.location.hash changes, and a bridge handler that throws no longer breaks it.dataDirectory honoured on macOS 14+.iframe is laid out by Compose (HtmlElementView) instead of floating over the canvas.captureImageBitmapOrNull() captures the page as an ImageBitmap.Nucleus is modular, and nucleus.webview is one artifact.
nucleusApplication), as it already did in 1.0.x. The system's web engine (WebView2, WKWebView, WebKitGTK) is a native view embedded by the Nucleus window runtime, sized, clipped and focused with the Compose layout. The first versions of this library did it on AWT, the backend of Compose Desktop's windows: a heavyweight canvas in a SwingPanel, its bounds pushed by a timer, focus requested by hand, events pumped by another timer. Every one of those was a hack paid for in performance and too much for me to keep maintaining. Nucleus's window runtime is far more modern and built for exactly this kind of use.A desktop WebView is a native view inside a window: it depends on the window runtime, on the native libraries for each OS, on packaging. Keeping it in its own repository meant following Nucleus from the outside, with its own build, its own CI and its own version. The 1.0.x line, for example, still pulled the 2.5 window artifacts after Nucleus 3.0 renamed them.
In the Nucleus repository the WebView is built, tested and released together with the rest of the framework:
webview in the Nucleus repository.archive branch. Published versions stay on Maven Central (dev.nucleusframework:composewebview, and io.github.kdroidfilter:composewebview for the earlier Wry-based builds).Apache-2.0, see LICENSE. Nucleus is MIT; its webview module keeps the Apache-2.0 notices of the code it derives from (see its THIRD_PARTY_NOTICES).