API Reference
Every Tynd app has three surfaces:
- Backend (
@tynd/core) — imported bybackend/main.ts, exposesapp.start, emitters, lifecycle hooks. - Frontend RPC (
@tynd/core/client) — typed proxy to your backend functions viacreateBackend<typeof backend>(). - Capability APIs — the minimal core (app, current window and webview, os, path, monitors, security, log, workers) comes from
@tynd/core/client; every other capability is an official plugin imported from its@tynd/plugin-*/cliententry point.
Backend
Section titled “Backend”@tynd/core—app.start,app.onReady,app.onClose,createEmitter,AppConfig,WindowConfig, menu/tray config.- Streaming RPC — async-generator handlers.
Always in the host and imported from @tynd/core/client:
Official plugins
Section titled “Official plugins”Every plugin made by the Tynd team is an official plugin, installed with tynd add <name>.
Host-backed plugins
Section titled “Host-backed plugins”Their native code ships in the Tynd host. Each one is a @tynd/plugin-<name> package imported from @tynd/plugin-<name>/client. tynd add <name> installs it and lists it in plugins; the next tynd dev or tynd build compiles it into the host.
Standalone plugins
Section titled “Standalone plugins”Each one is a @tynd/plugin-<name> package that carries its own code: JS only, a backend module, or a native Rust crate in the package that tynd compiles into the host. Install them with tynd add <name> like the host-backed ones.
The full catalog of official plugins lives in Plugins.
Web-platform APIs
Section titled “Web-platform APIs”fetch, WebSocket, crypto, URL, Blob and the other Web globals are not re-exported by @tynd/core/client: use the globals the WebView (frontend) or Bun (backend) provides. The plugin clients add the native paths the Web APIs lack, such as http without CORS and compute hashing.