The plugin list
Settings → Plugins → Find plugins reads a list from https://blackstudio.app/plugins/plugins.json (set BLACK_PLUGIN_INDEX to use another):
{
"plugins": [
{
"id": "word-of-the-day",
"name": "Word of the day",
"description": "A word to use today, every morning.",
"author": "You",
"version": "1.0.0",
"apiVersion": 1,
"sandboxed": true,
"permissions": ["network:api.example.com"],
"download": "https://example.com/word-of-the-day-1.0.0.zip",
"sha256": "…the SHA-256 that npm run build prints…",
"homepage": "https://example.com/word-of-the-day"
}
]
}Bläck Studio installs plugins only from a list:
- The download: it fetches the zip that the list names, and refuses it unless the zip's SHA-256 matches the one in the list.
- The contents: before unpacking, it checks that the zip holds the plugin the list names, with nothing outside the plugin's folder.
To add a plugin, add its entry to the list's repository.
Lists of your own
Anyone can keep a list: a plugins.json like the one above, at an https address. A list can name itself with "name" next to "plugins".
Bläck Studio also offers a community list by default, next to the official one: https://raw.githubusercontent.com/black-community/plugins/main/plugins.json. Its plugins are marked as not official. The writer can remove the list.
The writer adds a list under Settings → Plugins → Find plugins → Plugin lists, by its address:
- Asked first: Bläck Studio reads the list, then asks in its own window whether to add it. The window says that the list's plugins aren't Bläck Studio's.
- Marked as unofficial: its plugins appear next to the official ones, each labelled with the list it's from.
- Checked the same way: Bläck Studio checks a download against its list exactly as it does for the official list.
- Updates: a plugin installed from a list is updated only from that list. Bläck Studio won't replace a plugin from one list with one from another list, and won't replace one you're writing in the plugins folder.
- Removing a list: its plugins stay installed. They just aren't offered any more.