Expand description
Tauri plugin exposing the local Jolt daemon to app webviews.
Jolt desktop applications proxy daemon calls through Rust so the webview
never needs direct network access to the daemon. Before this plugin every
app copied the same proxy commands into its own src-tauri (Spoke and
Pastey carried diverged copies); now an app adds one dependency and one
line:
ⓘ
tauri::Builder::default()
.plugin(tauri_plugin_jolt::init())
// ...and grants the capability "jolt:default" in its capabilities file. The
JS side pairs with @jolt/sdk/transport-tauri:
new TauriTransport({ plugin: true })The daemon base URL defaults to http://127.0.0.1:9862 and can be
overridden with the JOLT_DAEMON_URL environment variable. Only the
/app/v1 and /api/v1 API surfaces are reachable; anything else is
rejected before a request is made.
Functions§
- init
- Initialize the plugin. Register with
.plugin(tauri_plugin_jolt::init()).