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.
Build the archive
Section titled “Build the archive”From your plugin folder:
bun run buildThis 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.--watchrebuilds 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.
Version it
Section titled “Version it”- Package ID.
metadata.packageIdis 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.versionis 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.
Match the Ryot version
Section titled “Match the Ryot version”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.
Translate it
Section titled “Translate it”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.
Share it
Section titled “Share it”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
hintsaccurate. - 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.
Settings people fill in
Section titled “Settings people fill in”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 withhost.getPluginConfig. Mark keys and passwords withsecret: true.userSettingsSchema: everyday preferences, such as a default unit, shown under Settings → Plugin preferences. Screens read them withusePluginUserSettings, and backend scripts withhost.getUserSettings.
Data contracts lists what each kind supports.