Build a plugin
Start a plugin or an integration from Spiti's template, check it, try it and publish a release.
Start a plugin
spiti plugin new water --name "Water" --description "Log what you drink."This creates the water folder as its own git repository with a working plugin: a page and a Home card that show a tally, and an Add one action you can run from the page, the card, the command center or the CLI. It holds the manifest (spiti.json), server and view code, tests, a GitHub Actions workflow, a README and an AGENTS.md for coding agents. Spiti fills in the id, name and description, sets engines.spiti to the version you run, installs its libraries and makes the first commit.
| Option | Does |
|---|---|
--id | The plugin's id. The folder's name by default |
--name | The name people see. The id in title case by default |
--description | One line on what it does |
--icon | A Fabricator icon name for its manifest |
--integration | Starts an integration instead |
--skip-install | Leaves bun install for later |
The folder must be new or empty. The template and Spiti's SDK come with the Spiti you have installed, so it works offline apart from bun install. Add --json for a result scripts can read.
Develop and check
Use the Bun version in package.json. From the plugin's folder:
bun run check && bun run test
spiti plugin check .
spiti install .bun run check formats, lints and type-checks; bun run test runs the model and server tests. spiti plugin check validates the manifest against your Spiti, builds the server and views, checks the database migrations, and matches the manifest's cards, menu bar items and other surfaces with the code. spiti install . opens the install review in Spiti.app; raise version in spiti.json to install a change over it.
With --json, plugin check prints one entry per problem, each with its rule, the file and line when known, and a hint on what to change. It exits with 1 when something fails.
bun run test:e2e drives the plugin in Spiti.app with Playwright, on a separate Spiti it starts for the test.
Publish a release
spiti plugin publishIt releases what you've committed. It runs plugin check and the tests, sets the version in spiti.json and package.json, commits feat: release <version>, and tags v<version>. Then it uploads that commit through a connected integration that can host source code, into a repository named after the plugin, and prints the command that installs this exact release:
spiti install github:<owner>/water@<commit>| Option | Does |
|---|---|
--bump patch, minor or major | Raises the version first. Needed once a version is released |
--owner | The account or organization to publish under. Your own account by default, then the one you used last |
--visibility public | Makes the repository public. It's private by default, and installs from GitHub need a public repository |
--account | The connected account to upload with, when you have several |
The integration needs CLI and agent access on its page under Integrations. Without one, publish stops after the release commit and tag; push the repository yourself, or connect one and run publish again. A run that fails while uploading leaves the release commit in place, and the next run picks up from the upload.
To install the plugin from GitHub, see Install from GitHub.