xrift-sdk
Installation
SKILL.md
XRift SDK Guide
A guide for using @xrift/sdk to programmatically interact with the XRift platform API.
References
- API Reference - Full specification of XriftClient, WorldsApi, ItemsApi, error classes, and utility functions
- Code Templates - Ready-to-use code examples for Node.js and browser environments
- Type Definitions - Complete TypeScript type definitions for all SDK interfaces
Critical Rules
- API token is always required —
XriftClientmust be initialized with a validtoken. Never hardcode tokens; use environment variables or secure configuration. - File data must be
FileDatatype — The SDK acceptsArrayBuffer | Uint8Array, not file paths or strings. The caller is responsible for reading files into binary data before passing to the SDK. remotePathmust be a relative path — Never use absolute paths or paths starting with/. Use paths likescene.glborassets/texture.png.- Always handle errors — Wrap API calls in try/catch and handle
XriftAuthError,XriftApiError, andXriftNetworkErrorseparately.
Project Overview
Related skills