Glossary
@tynd/cli
Section titled “@tynd/cli”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.
@tynd/core
Section titled “@tynd/core”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.
@tynd/host-src
Section titled “@tynd/host-src”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.
Backend
Section titled “Backend”The TypeScript side that runs on Bun. Declared via backend in tynd.config.ts (default backend/main.ts). Its exports are RPC methods.
createBackend<T>()
Section titled “createBackend<T>()”Frontend import. Returns a typed Proxy that turns method calls into IPC messages. T is typically typeof backend (a type-only import).
createEmitter<T>()
Section titled “createEmitter<T>()”Backend utility. Creates a typed event bus. Exported emitters become subscribable from the frontend via api.on("name", handler).
DevTools
Section titled “DevTools”The WebView’s developer tools. Open with tyndWindow.openDevTools() under tynd dev; packaged apps start with them disabled.
Frontend
Section titled “Frontend”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.
Bun runtime
Section titled “Bun runtime”The single Tynd JavaScript runtime. The native host spawns Bun for the backend; Bun is included in release packages.
IPC (Inter-Process Communication)
Section titled “IPC (Inter-Process Communication)”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).
Monitor
Section titled “Monitor”A connected display. monitors.all() / .primary() / .current() enumerate them. Each monitor has { name, position, size, scale, isPrimary } — coordinates in physical pixels.
OS API
Section titled “OS API”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>.
Primary window
Section titled “Primary window”The main window of a Tynd app — label "main". Created by app.start({ window }). Closing it triggers app.onClose.
Runtime
Section titled “Runtime”Bun is the single JavaScript runtime used by every backend. It runs inside the app’s compiled Rust host.
Secondary window
Section titled “Secondary window”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.
Sidecar
Section titled “Sidecar”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).
StreamCall
Section titled “StreamCall”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().
TYNDPKG
Section titled “TYNDPKG”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.
tynd-bin scheme (tynd-bin://)
Section titled “tynd-bin scheme (tynd-bin://)”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.
tynd scheme (tynd://)
Section titled “tynd scheme (tynd://)”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.
tynd.config.ts
Section titled “tynd.config.ts”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(...).
tyndWindow
Section titled “tyndWindow”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).
Native layer
Section titled “Native layer”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.
Zero-codegen RPC
Section titled “Zero-codegen RPC”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.