Skip to Content
sdeck docs

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"]
  }
}
FieldWhat it is for
nameThe plugin's id, the same as in createPlugin
keywordssdeck-plugin lists it in Studio and on sdeck.one/plugins
repositoryOn GitHub, it lets you verify that the plugin is yours
sdeck.apiVersionThe API version it needs
sdeck.entryThe file whose default export is the plugin. TypeScript is fine.
sdeck.icon<pack>/<name>, with #rrggbb for a color
sdeck.permissionsThe 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.