What problem does it solve?
This Skill enables developers to seamlessly integrate JavaScript runtimes like Bun, Node.js, and Deno into their Tauri v2 desktop applications, bridging the gap between the webview and native capabilities.
Core Features & Use Cases
- JS Runtime Integration: Spawn and manage Bun, Node.js, or Deno processes from your Tauri app.
- Type-Safe RPC: Establish bidirectional, type-safe communication between your frontend and backend JS processes using kkrpc.
- Compiled Sidecars: Package your JS workers as standalone executables, eliminating the need for users to install JS runtimes.
- Use Case: Build complex desktop applications where specific tasks like file watching, native module integration, or local AI inference are best handled by a dedicated JS runtime, all managed efficiently within your Tauri application.
Quick Start
Use the tauri-js-runtime skill to spawn a Bun worker named 'my-worker' using the script 'bun-worker.ts'.