Skip to content

keys

@tynd/plugin-keys enables the host keys API and exposes its typed client. The API itself is documented on the keys page.

Terminal window
tynd add keys
import { keys } from "@tynd/plugin-keys/client";

Declaring the plugin compiles the matching api-keys Cargo feature into the app host on the next tynd dev or tynd build. Or by hand: bun add @tynd/plugin-keys and list it in plugins in tynd.config.ts. Without it, calls reject with an error naming @tynd/plugin-keys.

Package @tynd/plugin-keys
Kind Host-backed official plugin (facade over a host API)
Host API keys
Aliases for tynd add key-blocking, disable-keys
Catalog permission labels host:keys
Estimated size 20 KB
Client exports keys