Tynd vs Tauri v2
Tauri and Tynd share a native WebView stack — both use wry + tao (the same Rust crates) for the window and IPC bridge. The philosophical difference is the backend language.
The core tradeoff
Section titled “The core tradeoff”| Tynd | Tauri v2 | |
|---|---|---|
| Backend language | TypeScript only | Rust (with optional JS via embedded engine) |
| Build toolchain | Bun 1.3+ and Rust 1.95+ (host compiled per app, no Rust to write) | Rust toolchain |
| Typed RPC | createBackend<typeof backend>() — zero codegen |
@tauri-apps/api — command-by-command bindings, codegen plugin required for full types |
| Runtime | Bun backend + a native host compiled per app | One binary shape |
| Mobile | ❌ | ✅ iOS + Android |
| Plugin ecosystem | ✅ official plugin packages + plugin SDK for community plugins | ✅ large official/community plugin catalog |
| IPC transport | wry postMessage + custom scheme |
same |
| Release size | Measure the signed artifact for each target and enabled feature set | Measure the signed artifact for each target and enabled feature set |
Feature comparison
Section titled “Feature comparison”Tauri cells name the core API or the official plugin. Features left out of this table are not compared.
| Feature | Tynd | Tauri v2 |
|---|---|---|
| Multi-window | multiwindow handles, also from the backend (getWindow) |
WebviewWindow |
| Multiple webviews per window | Windows, macOS, Linux X11 / Wayland | ✅ |
| Window effects | setEffects: Mica, Tabbed, Acrylic, Blur, macOS materials; rejects on Linux |
setEffects |
| Frameless drag regions | data-tynd-drag / data-tynd-no-drag / data-tynd-resize |
data-tauri-drag-region |
| Per-window menu bar | Windows, Linux (macOS has one app-wide bar) | ✅ |
| Context menus | Programmatic + declarative (data-tynd-contextmenu) |
Menu.popup |
| Tray | Several icons; attached popover window (Windows, macOS) | Several tray icons; positioner plugin for tray-relative placement |
| Custom protocols | app.protocol from the TypeScript backend |
URI scheme protocols in Rust |
| Asset protocol | convertFileSrc, Range seeking, glob scope |
convertFileSrc, asset scope |
| Push channel | Channel<T> |
Channel |
| Binary in RPC | base64 inside JSON frames (about 4/3 size, 8 MiB frames); tynd-bin:// for fs |
Raw request / response bodies |
| Capabilities | Per command / window / webview / origin / platform, deny by default for native commands | Per window / webview / remote URL / platform, with plugin permission sets and scopes |
| File scope | Default app-folder scope, protected locations, fs.deny |
Plugin scopes |
| Runtime grants | capabilities.allowPath / allowUrl, dialog grantAccess, optional persistence |
Runtime scope APIs, persisted-scope plugin |
| IPC frame check | Per-message frame origin + secret IPC token held by the top-frame bridge | Isolation pattern (optional) |
| CSP | Auto-injected on bundled pages | Injected from config |
| Windows packages | NSIS, MSI, MSIX | NSIS, MSI |
| macOS packages | .app, DMG |
.app, DMG |
| Linux packages | AppImage, deb, rpm, Flatpak, Snap, PKGBUILD | AppImage, deb, rpm |
| Universal macOS / cross-compilation | ❌ / ❌ | ✅ / partial |
| Updater | Signed full + patch (bsdiff) updates, channels, staged rollout | Signed updates (updater plugin) |
| Icon generation | tynd icon |
tauri icon |
When Tynd wins
Section titled “When Tynd wins”- TypeScript-only shop. You never write Rust application code. Like Tauri, Tynd compiles the native host with Cargo, so a Rust toolchain must be installed, but the host is generated for you.
- Zero-codegen RPC. Rename a backend function and the compiler catches every stale frontend call. No
invoke("cmd", …)strings. Calls are cancellable end-to-end. - Bun backend. Full Bun and Node-compatible APIs without writing Rust application code.
- Layered security. Exports define backend RPC; startup capabilities gate every native renderer command;
securityadds fs/http/process rules on top of a default app-folder scope with protected locations. - Built-in distribution extras. MSIX, Flatpak, Snap and PKGBUILD targets, patch updates, channels and staged rollout in the core updater.
When Tauri wins
Section titled “When Tauri wins”- Permission ecosystem maturity. Both generate named native-plugin command permissions. Tauri ships more prebuilt resource-scope schemas and production examples; Tynd uses inline command grants plus
securityfor core path/URL/process scopes. - Mobile. iOS and Android share the same command model as desktop. Tynd is desktop-only.
- Plugin catalog. Tauri’s plugin catalog is broader, especially for mobile-adjacent and platform-specialized integrations such as NFC.
- Build reach. Tauri builds universal macOS binaries and supports some cross-compilation. Tynd builds for the machine it runs on only.
- Updater maturity. Tauri’s updater ecosystem is older and has more real-world deployment history.
Where they’re tied
Section titled “Where they’re tied”- IPC stack — both use
wry+tao+ custom scheme. Zero TCP, no firewall prompt. - OS APIs that are covered by both — dialogs, clipboard, shell, notification, tray, menu, global shortcuts, FS, HTTP, store, and auto-updating. Both use signed update metadata, but their manifests are not drop-in interchangeable.
- Code signing + notarization — both cover Windows signing and macOS signing/notarization. Tynd’s built-in macOS path uses a P12 certificate plus an App Store Connect API-key JSON; manual Apple
codesign/notarytoolremains available as an advanced fallback.
Migration path
Section titled “Migration path”Porting Tauri → Tynd:
- Commands (
#[tauri::command] fn greet(name: &str)) → backendexport async function greet(name: string). - Events (
app.emit("event", …)+await listen("event", …)) →createEmitter+api.on("event", …);Channel→Channel<T>from@tynd/core. - Plugins that Tynd has first-class (fs, http, websocket, sql, store, notification, dialog, clipboard, shell, process, global-shortcut, autolaunch, deep-link, single-instance, updater, tray, menu, keyring, biometric, log) → the matching official plugin (
tynd add <name>, imported from@tynd/plugin-<name>/client); Tauri’s global-shortcut maps totynd add shortcuts(@tynd/plugin-shortcuts), andlogis built into@tynd/core/client. - Stronghold-style secrets → use
keyringfor OS-managed credentials orvaultfor encrypted larger values. - Positioner → use
tyndWindow.positionAt(...), including tray-aware presets, ortray.attachWindow(Windows, macOS). - Persisted scope →
capabilities.allowPath/allowUrlfrom the backend, orgrantAccess: trueon a dialog, withsecurity.persistGrants: true. - URI scheme protocols →
app.protocol(name, handler). - NFC → no direct desktop equivalent; use a Bun-native package or a custom Tynd plugin.
- Capability ACLs — port command grants to
app.start({ capabilities }), path/URL/process scopes tosecurity, and keep app-specific authorization in backend logic.
Porting Tynd → Tauri:
- Backend exports → rewrite each as a
#[tauri::command]. - Typed RPC — you’ll need either
tauri-bindgenor manually maintain.d.tson the frontend. - TypeScript backend runtime — N/A in Tauri (all backend code is Rust).