Overview
Welcome to the myVibe SDK for developing micro-applications for smart sex toy management. This SDK allows third-party developers to create immersive and interactive experiences without needing to understand the inner workings of the platform.
Device Control
Simple APIs to connect and control smart devices through the main app
Pattern Creation
Build custom vibration patterns and sequences
Responsive UI
Tools for creating interfaces that work within the main app
Privacy-First
Built with privacy and security in mind
Getting Started
Follow these steps to create your first myVibe micro-application:
-
Include the SDK
<script src="https://app.myvibe.tech/sdk/myvibe-sdk.js"></script>
-
Initialize the SDK
const myVibeApp = new MyVibeSDK.App({ name: "Your App Name", version: "1.0.0", permissions: ["vibration", "patterns"] });
-
Connect to devices
// The main app handles device selection and connection // Your app receives the connected device object myVibeApp.onDeviceConnected((device) => { console.log(`Connected to ${device.name}`); });
-
Control the device
// Simple vibration control myVibeApp.setVibration(50); // 0-100 intensity // Or use patterns myVibeApp.playPattern({ name: "Pulse", steps: [ { intensity: 100, duration: 500 }, { intensity: 0, duration: 300 }, { intensity: 100, duration: 500 } ], repeat: 3 });
API Reference
The myVibe SDK provides a simple but powerful API for developing micro-applications:
Device Control
myVibeApp.setVibration(intensity)
- Set vibration intensity (0-100)myVibeApp.stopVibration()
- Stop all vibrationmyVibeApp.getDeviceInfo()
- Get connected device detailsmyVibeApp.getBatteryLevel()
- Get current device battery level
Pattern Controls
myVibeApp.createPattern(patternConfig)
- Create a vibration patternmyVibeApp.playPattern(pattern, options)
- Play a patternmyVibeApp.pausePattern()
- Pause the current patternmyVibeApp.resumePattern()
- Resume a paused patternmyVibeApp.stopPattern()
- Stop the current pattern
Events
myVibeApp.onDeviceConnected(callback)
- Fires when device connectsmyVibeApp.onDeviceDisconnected(callback)
- Fires when device disconnectsmyVibeApp.onBatteryLow(callback)
- Fires on low batterymyVibeApp.onPatternComplete(callback)
- Fires when pattern finishes
Example Apps
Explore these example micro-applications to help you get started:
Try our Interactive Sandbox Environment
Test your code in real-time with our device simulator. Experiment with patterns, events, and UI development in a secure environment.