Official plugins
Official plugins ship as separate @tynd/plugin-* packages. They are not re-exported from @tynd/core/client; install the package, add it to plugins in tynd.config.ts, then import the package client directly.
bun add @tynd/plugin-sqlexport default { plugins: ["@tynd/plugin-sql"],}tynd dev and tynd build link a native plugin’s Rust crate into the app
host they compile. Their package-required Cargo features are enabled
automatically. Optional accelerators/codecs use an object entry:
plugins: [ { pkg: "@tynd/plugin-audio", features: ["capture"] },]The optional permissions field is a command-level runtime allow-list for the
native plugin’s generic host calls:
plugins: [ { pkg: "@acme/plugin-indexer", permissions: ["fs:readText", "fs:readDir"] },]Selectors use api:method; api:* grants an entire API. apis entries act as
API-wide wildcards and cannot be combined with permissions. When neither field is configured, package manifest APIs are
used; missing package metadata stays deny-all. Pure-JS plugins keep using Bun;
both plugin types keep Bun as the only JavaScript runtime.
Native Rust plugins execute in-process. Tynd’s release profile keeps panic
unwinding enabled and contains panics from plugin init, command dispatch,
background intervals, and shutdown; a contained failure becomes an error and
does not stop the remaining plugins. This boundary cannot recover from process
aborts, native memory corruption, stack overflow, or a plugin that never
returns. Treat native plugins as trusted code, grant only commands they need,
and prefer Bun/TypeScript for capabilities that do not require native access.
Typed #[plugin_impl] plugins can declare the reserved untagged methods
plugin_init(&self, &PluginCx) -> PluginResult<()> and
plugin_shutdown(&self, &PluginCx) -> PluginResult<()>. They map to the native
lifecycle and are never renderer commands. Stable resource-owning native
plugins use shutdown to stop PTYs, audio streams, and speech before exit.
#[plugin_impl] native plugins expose named renderer permissions from their
declared commands. start_capture becomes audio:allow-start-capture;
generated manifests also provide allow-all, deny-all, and default
(allow-all) sets. This renderer ACL is independent from the plugin’s
permissions config above, which controls calls in the opposite direction:
plugin → host. Core and plugin commands use separate internal namespaces: a
plugin named fs cannot grant the core fs:* API.
Plugin-registered init scripts and custom URI schemes run only in app-local webviews. A webview that shows remote content gets them only when the plugin registered them as remote (the script must then embed no secret and the scheme handler must treat every request as untrusted). Requests to a plugin URI scheme that carry neither Origin nor Referer are served only when Sec-Fetch-Site is same-origin or none.
Native plugin methods are webview-only. A native plugin’s client, defineTypedPlugin<CommandsCatalog>(name) from @tynd/plugin-sdk, calls the Rust side through the webview bridge (__tynd__.os_call("plugin", "<name>:<method>")). The Bun backend has no generic plugin host-call, by design, so backend code cannot reach native plugins.
Plugin names are canonical lowercase kebab-case, at most 31 characters:
^[a-z][a-z0-9-]{0,30}$. Bun definitions, native macros, generated manifests,
and host registration enforce the same rule; invalid aliases and reserved
names fail before the runtime starts.
Official plugins
Section titled “Official plugins”Every plugin made by the Tynd team is an official plugin. Plugins by anyone else are community plugins, added by package name.
Standalone plugins
Section titled “Standalone plugins”These are released independently; native ones ship their own Rust crate, linked into the host when declared.
| Package | Type | Purpose | Docs |
|---|---|---|---|
@tynd/plugin-audio |
Native | Audio capture, playback, WAV I/O. | API |
@tynd/plugin-oauth |
Bun/TS | Loopback OAuth callback listener. | API |
@tynd/plugin-sql |
Bun/TS | Embedded SQLite via bun:sqlite. |
API |
@tynd/plugin-terminal |
Native | Real PTY terminal. | API |
Host-backed plugins
Section titled “Host-backed plugins”Host-backed plugins are thin facades over host APIs whose native code ships in the Tynd host, released with @tynd/core and @tynd/host-src: declaring one compiles the matching api-* feature into the host and exposes the typed client from <package>/client. Each page links to the full API reference.
| Plugin | Package | Description | Host API |
|---|---|---|---|
autolaunch |
@tynd/plugin-autolaunch |
Login item | autolaunch |
biometric |
@tynd/plugin-biometric |
Biometric prompts | biometric |
cli |
@tynd/plugin-cli |
Command-line argument parsing | cli |
clipboard |
@tynd/plugin-clipboard |
System clipboard | clipboard |
compute |
@tynd/plugin-compute |
Native hashing and random bytes | compute |
deep-link |
@tynd/plugin-deep-link |
Custom URL schemes | deep-link |
dialog |
@tynd/plugin-dialog |
Native file and message dialogs | dialog |
fs |
@tynd/plugin-fs |
File-system access | fs |
http |
@tynd/plugin-http |
Native HTTP client | http |
keyring |
@tynd/plugin-keyring |
OS credential store | keyring |
keys |
@tynd/plugin-keys |
Keyboard-combo blocking | keys |
menu |
@tynd/plugin-menu |
Application and context menus | menu |
multiwindow |
@tynd/plugin-multiwindow |
Secondary windows and child webviews | multiwindow |
network |
@tynd/plugin-network |
Network interfaces | network |
notification |
@tynd/plugin-notification |
Desktop notifications | notification |
power |
@tynd/plugin-power |
Power state | power |
process |
@tynd/plugin-process |
Process execution | process |
screenshot |
@tynd/plugin-screenshot |
Screen capture | screenshot |
shell |
@tynd/plugin-shell |
Open URLs and paths with the OS | shell |
shortcuts |
@tynd/plugin-shortcuts |
Global shortcuts | shortcuts |
sidecar |
@tynd/plugin-sidecar |
Bundled helper processes | sidecar |
single-instance |
@tynd/plugin-single-instance |
Single-instance lock | single-instance |
store |
@tynd/plugin-store |
Persistent key-value store | store |
system-stats |
@tynd/plugin-system-stats |
CPU, memory and load metrics | system-stats |
theme |
@tynd/plugin-theme |
OS theme tracking | theme |
tray |
@tynd/plugin-tray |
System tray icon and menu | tray |
updater |
@tynd/plugin-updater |
Auto-update runtime | updater |
vault |
@tynd/plugin-vault |
Encrypted app vault | vault |
websocket |
@tynd/plugin-websocket |
Native WebSocket client | websocket |
window-state |
@tynd/plugin-window-state |
Window persistence | window-state |
Use the Bun runtime for a local HTTP server and the WebView’s graphics APIs for GPU capability detection. Build command palettes in your frontend with your UI library of choice.
Core APIs
Section titled “Core APIs”The host always compiles a minimal core: the window and webview, the tynd:// scheme, IPC, RPC and events, the app lifecycle, the debug protocol, and the acl and log APIs (no Cargo feature: they cannot be built out). Their clients come from @tynd/core/client, with no plugin to install:
app,tyndWindow(current window),tyndWebview(current webview)os,path,monitors,security,logcreateBackend,createFrontendEmitter, RPC helpers,createPluginClient,workers
Every other host API is a host-backed official plugin listed above. Its client is imported only from <package>/client; @tynd/core/client has no subpath for it. Using one needs the package in your dependencies and in plugins (tynd add <name> does both), and the next tynd dev or tynd build compiles the API into the app host. A host built without the API rejects its calls with an error naming @tynd/plugin-<api>.