@alkkmia/tauri-watch-sdk
v0.1.1
Published
Browser and Tauri WebView telemetry SDK for TauriWatch
Downloads
299
Maintainers
Readme
@alkkmia/tauri-watch-sdk
Browser and Tauri WebView telemetry SDK for TauriWatch.
Use this package to capture frontend logs, JavaScript errors, performance timings, and optional session replay from a Tauri WebView or browser surface.
Install
npm install @alkkmia/tauri-watch-sdkUsage
import { initTauriWatch, installGlobalHandlers, logInfo } from "@alkkmia/tauri-watch-sdk";
initTauriWatch({
appId: "my-tauri-app",
apiKey: "YOUR_TAURIWATCH_API_KEY",
endpoint: "https://tauri-watch.cloud.alkkmia.com",
environment: "production",
releaseVersion: "1.0.0",
batchSize: 20,
flushIntervalMs: 3000,
retryAttempts: 3,
});
installGlobalHandlers();
await logInfo("App started");Session Replay
initTauriWatch({
appId: "my-tauri-app",
apiKey: "YOUR_TAURIWATCH_API_KEY",
endpoint: "https://tauri-watch.cloud.alkkmia.com",
environment: "production",
releaseVersion: "1.0.0",
sessionReplay: {
enabled: true,
maxEvents: 8000,
flushOnStop: true,
snapshotIntervalMs: 15000,
},
});Inputs are masked by default. Add data-tauriwatch-mask or data-private to sensitive DOM regions.
Documentation
- SDK reference: https://tauri-watch.cloud.alkkmia.com/docs/sdk-reference
- Quickstart: https://tauri-watch.cloud.alkkmia.com/docs/quickstart
- Privacy: https://tauri-watch.cloud.alkkmia.com/docs/privacy
- Repository: https://github.com/alkkmia-inc/tauri-watch
Security
Do not commit production API keys. Avoid sending personal data, tokens, cookies, authorization headers, passwords, or secrets in metadata.
