Available
amalgame-ui-web
Webview-based: WebView2 / WKWebView / WebKitGTK + JS ↔ AM IPC.
Overview
Desktop UI toolkit based on the system's native webview (WebView2 on Windows, WKWebView on macOS, WebKitGTK on Linux). You write UI in HTML/CSS/JS, logic in Amalgame, and a bidirectional IPC channel bridges the two. The final binary stays a single executable.
Features
- ✓Native cross-OS webview — no embedded Chromium
- ✓Typed JS ↔ Amalgame IPC via JSON
- ✓HTML/CSS/JS bundled into the binary
- ✓No runtime to install on the user side
- ✓Apache 2.0
Example
Minimal usage example — copy-paste runnable after install.
amc package add ui-web
let app = UiWeb.New()
app.LoadHtml("<h1>Hello</h1><button id='go'>Click</button>")
app.On("go", fn(args) {
return { reply: "from AM" }
})
app.Run()
At a glance
- License: Apache-2.0
- Install:
amc package add ui-web - Source: amalgame-lang/amalgame-ui-web
- Official index: amalgame-lang/packages-index