Skip to content

wvbridge

One WebView API for Compose Multiplatform.

wvbridge embeds the host platform WebView in Compose Multiplatform and exposes a small, common Kotlin API for loading pages, observing URL and loading state, and controlling browser navigation.

The project is actively developed. APIs and platform coverage may change.

Compose Multiplatform

Use one common API from shared UI code across Android, iOS, and JVM desktop targets.

System WebView

Use only the host platform’s built-in WebView engine—no bundled browser runtime.

Unified JS Bridge

Expose one consistent JavaScript bridge object to web content on every supported platform.

Small native footprint

Keep platform runtime libraries lean, at approximately 100 KB to 1.5 MB depending on the target.

import androidx.compose.ui.Modifier
import top.kagg886.wvbridge.WebView
import top.kagg886.wvbridge.rememberWebViewController
val webViewController = rememberWebViewController("https://example.com")
WebView(
controller = webViewController,
modifier = Modifier,
)

Continue with the installation guide or open the API reference from the sidebar.