@alkkmia/tauri-plugin-tauri-watch-api
v0.1.1
Published
JavaScript bindings for the TauriWatch Tauri v2 plugin
Maintainers
Readme
@alkkmia/tauri-plugin-tauri-watch-api
JavaScript bindings for the TauriWatch Tauri v2 plugin.
Use this package from your frontend when the Rust plugin tauri-plugin-tauri-watch is registered in your Tauri application.
Install
npm install @alkkmia/tauri-plugin-tauri-watch-apiUsage
import {
captureError,
installGlobalHandlers,
logError,
logInfo,
logWarn,
} from "@alkkmia/tauri-plugin-tauri-watch-api";
installGlobalHandlers();
await logInfo("App started");
await logWarn("Slow operation", { command: "sync" });
try {
await riskyOperation();
} catch (error) {
await captureError(error, {
source: "frontend",
severity: "high",
handled: true,
});
}
await logError("Recoverable error");Required Rust Plugin
cd src-tauri
cargo add tauri-plugin-tauri-watchtauri::Builder::default()
.plugin(tauri_plugin_tauri_watch::init())Documentation
- Plugin guide: https://tauri-watch.cloud.alkkmia.com/docs/tauri-plugin
- Quickstart: https://tauri-watch.cloud.alkkmia.com/docs/quickstart
- Repository: https://github.com/alkkmia-inc/tauri-watch
Security
Do not send personal data, tokens, cookies, authorization headers, passwords, or secrets in metadata.
