For AI agents: the complete documentation index is available at /vue-vrm/llms.txt, the full documentation bundle is available at /vue-vrm/llms-full.txt, and this page is available as Markdown at /vue-vrm/examples/index.md.

Examples

Warning

Unless you hold the copyright to the model and all of its assets, do not load the actual file directly from a public URL or from files bundled with your app. Use one of the approaches below instead.

vue-vrm only accepts ArrayBuffers (see Why ArrayBuffer only). These examples show how to deliver model files from a server so that they never appear as public URLs in your code. Both run on Cloudflare Workers.

ExampleSource of the modelDifficulty
Cloudflare R2 + WorkersYour own files in an R2 bucketEasy
VRoid Hub APIModels published on VRoid Hub, through OAuthAdvanced

In both cases, the app side is the same: fetch the bytes and pass them to model-data.

const response = await fetch(endpoint);
modelData.value = await response.arrayBuffer();

The complete implementation is available in logue/v.logue.dev: