mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-09 13:21:47 +00:00
Overview
@termix-ssh/plugin-sdk is what every Termix plugin builds against, including the ones that ship with Termix. It has the types for a plugin's backend and frontend, table definitions, the manifest schema, test helpers, and the termix-plugin CLI. The easiest way to start is the Termix Plugin Template.
What's Inside
- Backend: the types for
activate(ctx), database and table helpers, host commands and SSH certificates - Frontend: the types for
activate(app), plus@termix-ssh/plugin-sdk/ui, the components and theme Termix serves to plugins - Manifest: the manifest schema, the capability catalog and settings types
- Testing:
createMockCtx(),createTestDb(),renderWithApp()and a Vitest preset - CLI:
termix-plugin, which builds, tests, validates, packs and signs a plugin and writes its migrations
Installation
npm install --save-dev @termix-ssh/plugin-sdk
CLI
npx termix-plugin build # bundle dist/backend.js and dist/frontend.js
npx termix-plugin test # run the plugin's Vitest suite
npx termix-plugin validate # check manifest.json and the files it names
npx termix-plugin migrations # write migrations from the table definitions
npx termix-plugin pack # write <id>-<version>.tmxplug
npx termix-plugin sign <file.tmxplug> # sign it, needs TERMIX_PLUGIN_SIGNING_KEY
npx termix-plugin verify <file.tmxplug> --key <base64> # check a signature
npx termix-plugin keygen --out <dir> # make a new signing key pair
Support
To report a bug or request a feature, open a support ticket. You need to be logged in to GitHub. Please be as detailed as possible, preferably in English.
For discussions and questions, join the Discord server.
License
Distributed under the Apache License Version 2.0. See LICENSE for more information.