Use plugins
There are two ways to load plugins:1. From local files
Place JavaScript or TypeScript files in the plugin directory..symbiotic/plugins/- Project-level plugins~/.config/symbiotic/plugins/- Global plugins
2. From npm
Specify npm packages in your config file.symbiotic.json
How plugins are installed
-
npm plugins are installed automatically using Bun at startup. Packages and their dependencies are cached in
~/.cache/symbioticnode_modules/. -
Local plugins are loaded directly from the plugin directory. To use external packages, you must create a
package.jsonwithin your config directory, or publish the plugin to npm and add it to your config.
Load order
Plugins are loaded from all sources and all hooks run in sequence. The load order is:- Global config (
~/.config/symbiotic.json) - Project config (
symbiotic.json) - Global plugin directory (
~/.config/symbiotic/plugins/) - Project plugin directory (
.symbiotic/plugins/)