tauri-app-sidecar-nodejs
When to use this skill
ALWAYS use this skill when the user mentions:
- Running Node.js as a sidecar process in Tauri
- Packaging Node.js binaries alongside the app
- Managing sidecar lifecycle (start, stop, logging)
Trigger phrases include:
- "sidecar", "node.js sidecar", "nodejs backend", "sidecar packaging", "bundled node"
How to use this skill
- Compile Node.js to a standalone binary using tools like
pkgornexe:npx pkg server.js -t node18-macos-x64,node18-win-x64,node18-linux-x64 - Place sidecar binaries in
src-tauri/binaries/with platform-specific naming:src-tauri/binaries/node-server-x86_64-apple-darwin src-tauri/binaries/node-server-x86_64-pc-windows-msvc.exe src-tauri/binaries/node-server-x86_64-unknown-linux-gnu - Configure the sidecar in
tauri.conf.json:{ "bundle": { "externalBin": ["binaries/node-server"] } } - Start the sidecar from Rust:
let sidecar = app.shell().sidecar("node-server").unwrap(); let (mut rx, child) = sidecar.spawn().unwrap(); - Configure shell permissions for the sidecar in capabilities
- Manage lifecycle: stop the sidecar gracefully on app exit using the child process handle
Outputs
- Sidecar binary packaging per platform
- Sidecar configuration in tauri.conf.json
- Start/stop lifecycle management in Rust
References
Keywords
tauri sidecar, node.js, nodejs backend, sidecar packaging, bundled binary
More from partme-ai/full-stack-skills
vite
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
68element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
63vue3
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
54electron
Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.
51uniapp-project
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
40ascii-terminal-animation-pack
Plan and generate terminal ASCII animations/screensaver-style output (FPS, refresh rules, loop policy, low-flicker guidance), with a static poster frame and an optional local demo script.
34