Getting started
Create and load your first Nuclear plugin and verify the SDK works end-to-end.
Quick start
{
"name": "hello-plugin",
"version": "0.1.0",
"description": "Minimal Nuclear plugin",
"author": "Your Name",
"main": "index.ts",
"nuclear": {
"displayName": "Hello Plugin",
"category": "Examples"
}
}const CATEGORY = "Examples";
module.exports = {
async onLoad(api) {
await api.Settings.register([
{
id: "hello",
title: "Hello world",
category: CATEGORY,
kind: "boolean",
default: true
}
]);
const v = await api.Settings.get("hello");
await api.Settings.set("hello", !v);
},
async onEnable(api) {
api.Settings.subscribe("hello", () => {});
}
};Load it in the app
Verify the SDK
Plugin shape
Common checks
Symptom
Cause
Fix
Next steps
Last updated