@hmcs/sdk
v0.1.0-alpha.5
Published
TypeScript SDK for building mods and extensions for Desktop Homunculus
Downloads
168
Readme
@hmcs/sdk
TypeScript SDK for building mods and extensions for Desktop Homunculus.
Install
npm install @hmcs/sdk@https://github.com/desktop-homunculus/typescript-sdkQuick Start
import { Vrm } from "@hmcs/sdk";
// Spawn a VRM character
const vrm = await Vrm.spawn("my-mod:avatar");Function Style
For SDK source code under src/, use the following style:
- Use
function/async functiondeclarations for top-level public API functions and reusable top-level helpers. - Use arrow functions for inline callbacks (for example, array methods and event listeners).
This keeps API boundaries explicit while preserving readability in callback-heavy code.
License
MIT
