VelaJS App Development

Create custom applications for Xiaomi smartwatches using VelaJS (Quick Apps). Apps run directly on the device and can optionally communicate with Android using additional modules.

Standalone watch apps
Optional phone integration
RPK packaging

Official Documentation

Full VelaJS reference:

This includes UI, APIs, lifecycle, storage, and advanced modules.

What is a VelaJS App?

A VelaJS app is a lightweight JavaScript-based application that runs natively on Xiaomi wearable devices.

VelaJS apps can work completely standalone without any phone communication.

App Capabilities (Standalone)

These features do NOT require Interconnect or any Android integration.

Interconnect Module (Optional)

Interconnect is an optional module that enables communication between your VelaJS app and an Android app.

When you need Interconnect

When you DON'T need it

Interconnect adds complexity and requires an Android companion app.

Notify for Xiaomi Integration (Advanced)

If you use Interconnect, you can integrate your app with Notify for Xiaomi instead of building everything from scratch.

⚠️ Important: This is a custom library specifically built for Notify for Xiaomi.

It is NOT the official Xiaomi SDK and cannot be replaced with the stock library.

Using the standard Xiaomi wearable library will NOT work correctly with Notify.

Why this custom library is required

Do NOT use

repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    implementation(name: 'xms-wearable-lib_1.4_release', ext: 'aar')
}

This library is only required when using Interconnect with Notify. Standalone VelaJS apps do not need it.

Files & Example Projects

Use these as a starting point for development.

Build & Install

1. Build app

2. Install via Notify

  1. Open Notify for Xiaomi
  2. Go to Device
  3. Select Third party app
  4. Upload your .rpk

The app will be installed on your smartwatch.

Development Workflow

  1. Create VelaJS app
  2. (Optional) Add Interconnect
  3. (Optional) Build Android companion
  4. Export .rpk
  5. Install via Notify

Best Practices

Wearables have limited resources compared to smartphones.

Compatibility

Support depends on firmware capabilities.