@playableintelligence/template-sdk
v0.1.2
Published
Zero-dependency runtime SDK for declaring hotswappable game-template assets and resolving them against platform-provided inputs.
Downloads
588
Readme
@playableintelligence/template-sdk
Zero-dependency runtime for asset-swappable game templates. Declare hotswappable slots with hotswappable(); the slot resolves to a platform-provided asset or a local default. In a deployed iframe it auto-hydrates injected inputs (no provider wiring).
npm i @playableintelligence/template-sdkimport { hotswappable } from "@playableintelligence/template-sdk";
const playerFace = hotswappable({
name: "playerFace",
input: "facemesh",
variable: "PLAYER_FACE",
default: "./assets/face.glb",
});Pairs with @playableintelligence/template-cli (schema export), @playableintelligence/template-vite (build plugin), and @playableintelligence/template-host (server injection).
Proprietary — see LICENSE.
