thymer docs

Plugins

Plugins are JavaScript that runs inside Thymer. A few lines add a command to the palette, a computed property to a collection, or a whole custom view. The Plugin SDK has typed declarations, examples and a hot-reload development loop, and awesome-thymer-plugins lists plugins the community has shared. For more about plugins, see thymer.com/plugins.

Two kinds

An app plugin extends the workspace: command palette commands, status bar items, sidebar widgets, notifications, custom panels. Its class extends AppPlugin.

A collection plugin extends one collection: formulas, custom property rendering and sorting, custom views, buttons on board cards. Its class extends CollectionPlugin, and it has this.collection, this.properties and this.views on top of the shared APIs. Every collection has a plugin behind it; Edit Code in Collection Settings opens it. Dynamic collections use DynCollectionPlugin.

Install a plugin

On a computer, workspace admins can open the Plugins panel from the command palette or through Settings → Plugins → Manage Plugins. The panel has two tabs, Global Plugins for app plugins and Collections for collection plugins.

Most shared plugins live on GitHub, and Thymer installs them from their link:

  1. Copy the link to the plugin’s public GitHub repository, folder, or manifest file.
  2. In the Plugins panel, open Add plugin on the Global Plugins tab or Add collection on the Collections tab, then choose Install from URL.
  3. Paste the link and click Load Plugin to review the plugin’s name, type and any version, author or description it provides.
  4. Click Install to install the plugin for everyone in the workspace. A collection plugin creates a new collection.

A repository link works when its root contains thymer-plugin.json or both plugin.json and a ready-to-run plugin.js. For a plugin in a subfolder, paste the GitHub folder link or the link to its thymer-plugin.json. The Raw link works too, as does a direct HTTPS manifest link from a host that allows cross-origin requests. If a plugin has to be built first, follow its author’s instructions.

More about plugins in the same menu opens thymer.com/plugins.

Updates

Check for updates in the Plugins panel looks for newer versions of plugins installed from a manifest. When a newer version is available, click Update to review it, then Update again to apply it to the workspace. Choose Cancel to skip the update.

Thymer merges the new configuration with yours, keeping your local settings when they conflict. The review warns before replacing locally edited JavaScript or CSS.

By hand

On the Global Plugins tab, Add plugin → Create a plugin opens the code editor. Put the JSON with the name, icon and description in Configuration, the JavaScript in Custom Code, and any styles in Custom CSS. Click Preview to try it, then Save. Each global plugin has an On/Off switch.

Code pasted into the app starts with class Plugin extends AppPlugin or CollectionPlugin; an export in front is fine. Code with import lines comes from the SDK and has to be bundled first: paste the bundled dist/plugin.js.

What to know before installing

Plugins run in your signed-in app with the same access you have, and their code and configuration are stored in the workspace, where every member can read them. Read a plugin before installing it, especially anything that makes network requests, and keep API keys out of shared plugin code. The CLI can read and update plugins too; see The CLI.

Thymer can run the plugin’s code when you confirm Install or Update. Preview in the code editor runs the code you’re editing. Discard removes the draft or restores the previous code and settings. Any changes the plugin made to workspace data still apply. If a plugin makes Thymer hard to use, Safe Mode starts Thymer without plugin code.