Skip to content

Inkweaver SDK

The Inkweaver SDK is the library your scripts and plugins use to work with Inkweaver. Import what you need from @inkweaverdev/inkweaver-sdk:

import { getState, onChange } from "@inkweaverdev/inkweaver-sdk";
PageWhat it covers
State and settingsReading and changing state and settings, and setting their starting values
EventsResponding to state changes and screenplay labels
Commands and selectorsCalling and decorating commands and selectors
Navigation and bookmarksStepping through history, and saving and loading bookmarks
Assets and filesFinding built assets, and reading and writing files
View state and drawingBeats, view state, and what a draw sends to the screen
Menu schemaThe shape of a menu and its fields
UtilitiesStores, state guards, and the call stack mixin
AdvancedLow-level functions for committing state and processing screenplay content