Initial Neutralino.js POC for kokoro-widget

Lightweight alternative to the Electron build (~5MB vs ~300MB).
Uses system webview (WebKit2GTK on Linux, WKWebView on macOS,
WebView2 on Windows). Same UI and feature set as the Electron build:
WebSocket audio client, volume control, host/port settings, tray icon,
hide-to-tray on close, CLI args (--host, --port, --volume).

Note: Linux requires libwebkit2gtk-4.0 or libwebkit2gtk-4.1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nonna
2026-03-11 00:44:45 +00:00
commit 2c369d74b1
9 changed files with 1175 additions and 0 deletions

38
neutralino.config.json Normal file
View File

@@ -0,0 +1,38 @@
{
"applicationId": "com.pai.kokoro-widget",
"version": "1.0.0",
"defaultMode": "window",
"documentRoot": "/www/",
"url": "/",
"enableServer": true,
"enableNativeAPI": true,
"nativeAllowList": [
"app.*",
"os.*",
"storage.*",
"window.*",
"events.*",
"debug.*"
],
"modes": {
"window": {
"title": "PAI Voice",
"width": 360,
"height": 540,
"minWidth": 300,
"minHeight": 400,
"icon": "/www/icon.png",
"alwaysOnTop": false,
"borderless": false,
"maximize": false
}
},
"cli": {
"binaryName": "kokoro-widget",
"resourcesPath": "/www/",
"extensionsPath": "/extensions/",
"clientLibrary": "/www/neutralino.js",
"binaryVersion": "6.5.0",
"clientVersion": "6.5.0"
}
}