Skip to main content

Requirements

  • Browser: Modern browsers
    • Chrome 57+
    • Firefox 52+
    • Safari 11+
    • Edge 16+
  • Language: JavaScript (ES6+)
  • Build Tools: Optional (Vite, Webpack, Parcel, etc.)

Install SDK

Install via npm:
Using ES Module (Recommended):
Using CommonJS:

Get Example Source Code

Clone the github repository to local, navigate to demo/web/vue or demo/web/react directory

Configure Application Information and Keys

Bind Application Domain

Follow the instructions on this page to bind your Web application domain in the console, for example: example.com

Get AppID and AppKey

Follow the instructions on this page to get appId and appKey, open src/views/CameraPreview.vue (Vue) or src/views/CameraPreview.jsx (React) and modify the configuration:
licenseJson takes priority over appId + appKey. For offline download and details, see License & Auth.

Run Example

Install dependencies and start the development server:
Then access the displayed address in your browser (usually http://localhost:5173)

Verify Running

  1. Open browser developer tools (F12)
  2. Check console for error messages
  3. If you see “Engine initialized successfully”, it’s running correctly
  4. You can click function buttons to test beauty effects