Skip to content

Plugin guide

A plugin adds a feature to Tessera. For example, a plugin can refuse certain changes, add an item to the menu that opens when the person types / in a note, store extra information on rows, or show a message on the screen.

A plugin is a small program, written in TypeScript, together with a short file that describes it, called the manifest. The app starts the plugin and gives it a single object, ctx, through which the plugin does everything that it is able to do. The features that ship with the app, such as to-dos, tags and dates, are plugins as well, and they use the same ctx object that your plugin receives.

To begin, follow Your first plugin. It leads you from an empty folder to a plugin that runs in the app.

The SDK, its types, the scripts that build a plugin, and the plugins that come with the app are published in the public repository tessera-plugins. Your first plugin explains how to set it up and how to build a plugin with it.

  • Your first plugin walks through setting up the repository, writing a plugin, building it into a file and installing it in the app.
  • Manifest and permissions describes the file that declares a plugin, and the permissions that a plugin can ask for.
  • Concepts explains the four ideas behind every plugin.
  • How a change goes through explains what happens when a row is edited, moved or deleted, and where a plugin can take part.
  • The data model describes rows and outlines, and explains how to store extra information on them.
  • The ctx object goes through everything that ctx provides.
  • Examples presents ten complete plugins.
  • Testing a plugin shows how to run a plugin inside a test.
  • Reference documents every function and type, with its parameters.