Dashboard Tutorial
What is the Dashboard?
The dashboard is a persistent UI surface that MentraOS renders on the smart-glasses when the user looks up. It can show system information (time, battery, status) and content contributed by apps. Your app can treat the dashboard as an additional, lightweight display surface that remains visible even when other apps are in the foreground. MentraOS exposes a high-level Dashboard API throughAppSession
. You do not need to manage WebSocket messages or layouts manually—the SDK takes care of that. All you have to do is call a few convenience methods on session.dashboard.content
.
Prerequisites
- MentraOS SDK installed in your project.
- A working app server with a standard
onSession
implementation (see the Quickstart guide).
Write to the Dashboard
Full Example
packages/apps/hello-dashboard/src/index.ts
Best Practices
- Be concise – Users glance at the dashboard; keep messages short.
- Aim for ≤60 characters – Longer messages may be truncated.
- Respect user settings – Provide toggles or frequency controls so users can decide how often content appears.
Next Steps
- Read the Dashboard API reference for detailed method signatures, types, and enums.
- Join our Discord community if you have questions or feedback.