Skip to content

API Reference

Every Tynd app has three surfaces:

  • Backend (@tynd/core) — imported by backend/main.ts, exposes app.start, emitters, lifecycle hooks.
  • Frontend RPC (@tynd/core/client) — typed proxy to your backend functions via createBackend<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-*/client entry point.
  • @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:

Every plugin made by the Tynd team is an official plugin, installed with tynd add <name>.

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.

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.

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.