Getting Started
Scrims SDK setup for third-party plugins and extensions.
Plugin Signature Auth
Public SDK usage is plugin-first. Instantiate the client with your plugin id and Ed25519 private key PEM.
const ScrimsAPI = require("./scrims-api");
const scrims = new ScrimsAPI({
pluginId: process.env.SCRIMS_PLUGIN_ID,
privateKeyPem: process.env.SCRIMS_PRIVATE_KEY_PEM
});
Manual Key Provisioning (Current)
- Generate your Ed25519 keypair in your secure environment.
- Share the public key with the Scrims team for plugin registration.
- Store your private key PEM in
SCRIMS_PRIVATE_KEY_PEM. - Use your assigned
SCRIMS_PLUGIN_IDwhen constructing the SDK.
Developer portal-based self-service key provisioning is planned and will replace this manual step.
Generate Reference Docs
Generate TypeDoc output locally:
yarn docs:sdk
Generated files are served from /developers/sdk.