package.json
What makes an npm package a plugin.
{
"name": "sdeck-plugin-weather",
"version": "1.0.0",
"type": "module",
"keywords": ["sdeck-plugin"],
"repository": "github:you/sdeck-plugin-weather",
"sdeck": {
"apiVersion": 5,
"entry": "./src/index.tsx",
"icon": "lucide/cloud-sun",
"permissions": ["network"]
}
}| Field | What it is for |
|---|---|
name | The plugin's id, the same as in createPlugin |
keywords | sdeck-plugin lists it in Studio and on sdeck.one/plugins |
repository | On GitHub, it lets you verify that the plugin is yours |
sdeck.apiVersion | The API version it needs |
sdeck.entry | The file whose default export is the plugin. TypeScript is fine. |
sdeck.icon | <pack>/<name>, with #rrggbb for a color |
sdeck.permissions | The same as in createPlugin, so that people see them before they install it |
sdeck.permissions only informs. What the plugin may do is decided by the user, about what the code asks
for.