The framework provides developers with JSAPI and OpenAPI capabilities to launch diversified convenient services to users. This section covers the client-side JavaScript APIs (JSAPI) that Mini Apps can use to interact with the platform and device features.Documentation Index
Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
Use this file to discover all available pages before exploring further.
API Patterns
Mini Program JSAPIs follow two main patterns:Event Listening APIs
APIs prefixed withmy.on listen to system events and accept callback functions. When the event is triggered, the callback is executed.
Standard Interface APIs
Most other APIs accept an object as a parameter and support three callback types:| Callback | Description |
|---|---|
success | Called when the operation completes successfully |
fail | Called when the operation fails |
complete | Always called after success or fail |
Promise Support
APIs also return Promise objects, allowing both callback and async/await patterns:API Categories
Basic
Core APIs for version checking and feature detection
In-App Event
App lifecycle and error event handling
UI
Navigation, feedback, dialogs, and UI controls
Media
Image, video, and animation handling
Storage
Local data persistence
File
File system operations
Location
Geolocation services
Map
Map integration and routing
Network
HTTP requests and WebSocket connections
Device
Hardware and system information
Sharing
Content sharing capabilities
Update
App update management
web-view
WebView integration
Open Capabilities
Authentication, payments, and cross-app navigation
Feature Detection
Before using an API, you can check if it’s supported in the current environment:Next Steps
JSAPI Reference
Complete API reference by category
JS Bridge Guide
Cross-app launch integration