Skip to content

Glossary

The npm package that provides a tiny JavaScript launcher for the native Rust tynd command. Platform binaries arrive through the @tynd/tooling-<os>-<arch> optional dependencies; no command implementation or downloader runs in TypeScript.

The runtime-facing npm package. It exports backend lifecycle/event primitives and frontend RPC/core helpers. Specialized capabilities are imported from their owning plugin packages.

The npm package holding the Rust sources of the native host. tynd create, tynd init, and tynd add add it as a dev dependency; tynd dev and tynd build compile the app host from it with Cargo.

The TypeScript side that runs on Bun. Declared via backend in tynd.config.ts (default backend/main.ts). Its exports are RPC methods.

Frontend import. Returns a typed Proxy that turns method calls into IPC messages. T is typically typeof backend (a type-only import).

Backend utility. Creates a typed event bus. Exported emitters become subscribable from the frontend via api.on("name", handler).

The WebView’s developer tools. Open with tyndWindow.openDevTools() under tynd dev; packaged apps start with them disabled.

The SPA that renders in the native WebView. Served via the tynd:// custom scheme in production; proxies to a dev server (Vite, Angular CLI, …) in development.

The single Tynd JavaScript runtime. The native host spawns Bun for the backend; Bun is included in release packages.

The transport between frontend, Rust host, and backend. No TCP — uses the WebView’s window.ipc.postMessage, evaluate_script, and the tynd:// / tynd-bin:// custom schemes.

The native app menu bar (top of the screen on macOS, inside the window on Windows/Linux). Declared in app.start({ menu }); clicks handled with menu.onClick(id, fn).

A connected display. monitors.all() / .primary() / .current() enumerate them. Each monitor has { name, position, size, scale, isPrimary } — coordinates in physical pixels.

A method callable from the frontend that dispatches to the Rust host — bypasses the TypeScript backend entirely. Example: dialog.openFile, fs.readText, compute.hash. Imported from the owning plugin, e.g. @tynd/plugin-dialog/client, after tynd add <name>.

The main window of a Tynd app — label "main". Created by app.start({ window }). Closing it triggers app.onClose.

Bun is the single JavaScript runtime used by every backend. It runs inside the app’s compiled Rust host.

Any window beyond the primary. Created with multiwindow.create({ label, url?, title?, width?, height? }) from @tynd/plugin-multiwindow. Each has its own WebView + IPC channel; events auto-route by label.

A native binary bundled inside your app (ffmpeg, yt-dlp, etc.). Declared in tynd.config.ts::sidecars. Extracted to a temp dir at launch; accessed at runtime via sidecar.path(name).

The handle returned by calling an async function* backend export from the frontend. Both awaitable (resolves to the generator’s return value) and async-iterable (yields each chunk). Cancellable via .cancel().

The self-extracting trailer appended to a Tynd binary at tynd build time. Contains frontend assets, backend bundle, Bun binary, and sidecars. Magic bytes: TYNDPKG\0 as the last 8 bytes of the file.

The secondary custom scheme for zero-copy binary IPC. Routes: fs/readBinary, fs/writeBinary, compute/hash. Raw bytes in request/response bodies — no base64, no JSON envelope.

The custom scheme that serves frontend assets. tynd://localhost/<path> maps to the built frontend directory (or a dev-server proxy in development). window.location.origin is always tynd://localhost.

The project config file. TypeScript types provide editor inference; native Rust tooling loads, normalizes, and validates fields such as backend, frontendDir, plugins, sidecars, protocols, bundle, and updater. Window/menu/tray policy belongs in backend app.start(...).

The frontend API for window control — size, position, focus, fullscreen, multi-window, events. Every call auto-targets the window it’s invoked from (no explicit label arg).

The Rust-based layer that handles WebView embedding, custom protocols (tynd://, tynd-bin://), windowing, and the event loop. Shared crate stack with Tauri v2 — but invisible to your code.

Tynd’s typed-RPC model. Types flow from typeof backend — no .d.ts generation, no IDL, no schema compiler. Refactoring a backend function automatically updates types at every frontend call site.