Warning
This API is in its alpha stage, breaking changes is expected in new releases. Use it with caution.
// main.ts
import { Plugin } from "sophosia";
class MyPlugin extends Plugin {
async enable() {
this.addButton(/* button */);
this.addView(/* view */);
}
}See the repo Sample Plugin for more detailed usage. In this repo, you can find the usage of vite build, integration with the frontend framework vue, and the use of github action to automate the release of your plugin.