Skip to content

Build and share your plugin

A finished plugin is a single .zip archive that anyone with Ryot Pro can install from Settings → Plugins. This page covers building that archive and what to think about before you hand it to someone else.

From your plugin folder:

Terminal window
bun run build

This runs ryot plugin build, which checks your messages, manifest, code, data types and queries, then writes the archive to dist/<publisher>/<name>.zip. The archive contains only compiled code, the manifest and the compiled message catalogs, never your source files. Building the same source twice gives the same archive.

Useful options, passed after bun run build:

  • --output <path> writes the archive to a file of your choice.
  • --watch rebuilds whenever you save a file.

On a fresh copy of the repository, build once with bun turbo build --filter=<package name> from the repository root, so that the packages your plugin depends on are built first. The CLI reference has every detail.

  • Package ID. metadata.packageId is permanent. People update your plugin by uploading an archive with the same package ID. If you fork someone else’s plugin, choose your own publisher name.
  • Version. metadata.version is shown to people when they install or update, as in “v0.1.0 → v0.2.0”. Raise it with every release so they can tell builds apart.
  • Data types only grow. An update may add entity types, properties, events and relationships, but not remove or change existing ones. Ryot refuses an update that does.

Build your plugin from the same version of Ryot that will run it. An archive built from a different version can be refused with “This archive was not built for this version of Ryot.” When a new Ryot version comes out, check out that version, rebuild, and publish a new archive.

Add a catalog per language next to en.json, such as shared/messages/de.json or shared/messages/pt-BR.json. Each translation must use the same placeholders as the English message. Ryot shows the reader’s language when it is available and falls back to English. The build also generates an en-XA pseudo-locale from your English catalog. See Messages.

Send people the .zip file, for example as a release download. Before they install it, Ryot shows them the plugin’s name, version, package ID, description and every operation with its Read-only, Changes data or Can delete data label, and warns them that the plugin can read and change all of their data. Help them decide to trust you:

  • Publish the source code, so people can read it and build the archive themselves.
  • Write clear operation titles and descriptions, and keep the hints accurate.
  • Say which Ryot version each archive was built for.
  • List any settings the plugin asks for at install time, such as API keys.

Ryot does not sign archives or verify publishers. Your package ID is a label, not proof of identity.

Two kinds of settings are available:

  • configSchema: settings asked for when someone installs the plugin, such as an API key. People change them later under Configuration in Settings → Plugins. Backend scripts read them with host.getPluginConfig. Mark keys and passwords with secret: true.
  • userSettingsSchema: everyday preferences, such as a default unit, shown under Settings → Plugin preferences. Screens read them with usePluginUserSettings, and backend scripts with host.getUserSettings.

Data contracts lists what each kind supports.