Install @persistlyapp/sdk, configure localStorage, and start with PersistlyGameSaves.
JavaScript Examples
Start with browser examples, then build adapters around the same SDK.
Phaser, PlayCanvas, Cocos Creator, Construct, and RPG Maker should reuse @persistlyapp/sdk instead of copying runtime client logic.
Example Paths
Use the core JavaScript SDK as the dependency for JS engine integrations.
Dedicated adapters can add engine lifecycle helpers later, but save/load/sync/conflict behavior should stay in the core SDK.
Canonical configure, saveData, loadData, and forceSyncData example, with named slots when needed.
Anonymous browser games, signed-in restore, accountData, lifecycle sync, and safe delete flows.
Use only when building wrappers or direct HTTP integrations.