Glassly Miniapp SDK betaThe SDK is in beta, so its APIs may change before general availability.Developing on Mentra Live? We recommend using the Glassly Bluetooth SDK.The developer tools are available in the Glassly App under Settings → Miniapp Developer Settings.Share feedback with an in-app bug report, on Discord, or by email at help@glassly.ai.
session.led controls the indicator LED on supported glasses. You give it a color and a blink pattern, and it tells the LED to turn on or off.
src/background/index.ts
The LED needs glasses with a LIGHT hardware capability. Declare it in your manifest so the miniapp only installs on glasses that have an LED. There’s no runtime permission to request.

Methods

LedControlOptions is the shape turnOn accepts:

Colors

LedColor is a fixed set of names. The phone maps each name to the per-device LED index, so the same name can light different physical LEDs across glasses.
Every method returns a Promise that resolves once the command is dispatched to the glasses, not when the blink pattern finishes playing. A blink("red", 200, 200, 4) call resolves right after the command goes out, well before the LED has run all four cycles. Don’t await the call as a way to wait for the LED to go dark; if you need timing, track it yourself.