Playground
Try every SDK command on a virtual toy, or on your own toy over Bluetooth, and copy the code. No account needed to try it.
Toy
Paste your test key to start. It stays in this page only.
Command
60%
3 s
Connect a toy to play.
Code
import { VelvetToys } from '@velvetrituals/toys';
const velvet = await VelvetToys.init({ apiKey: 'vr_pk_test_…' }); // your publishable key
const toy = await velvet.connect({ virtual: true, model: 'Pixie' });
await toy.vibrate({ strength: 60, durationMs: 3000 });
stopButton.onclick = () => toy.stop(); // always give people a Stop buttonTo run this in your own app, use your own key. Get your free test key →