Download examples/README.md from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 2.95 kB
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/README.md
- Command line
-
hf download hf://Anirudh1950/MentraOS/examples/README.md
-
curl -L -o README.md https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/README.md
Examples
Example apps for integrators who embed Mentra's platform SDKs in their own apps:
bluetooth/: the Bluetooth SDK Starter Kit. Native Android, iOS, and macOS apps and React Native apps that use@mentra/bluetooth-sdk(com.mentraglass:bluetooth-sdkon Android,MentraBluetoothSDKon Apple platforms) to connect to smart glasses directly over Bluetooth, plus local media and streaming helpers.oem-app/: a minimal Expo host that embeds@mentra/engine, the on-device miniapp registry and runtime, the way a second host app would.miniapp/: the reference Mentra miniapp ("Mentra Example") built with the Mentra Miniapp SDK, with live captions and an SDK Tester page for eachsessionmodule.
To start a new Mentra miniapp, use the Mentra Miniapp SDK and tooling in
sdk/ (bunx create-mentra-miniapp).
Building from source
The examples build against the SDK source in this repository, so SDK changes take effect in the next example build without publishing anything:
miniapp/is not a member of theexamples/workspace. It belongs to the repository root andsdk/Bun workspaces, which link@mentra/miniappand@mentra/miniapp-cli(workspace:*) tomobile/modules/miniappandsdk/miniapp-cli. Install withbun installat the repository root or insdk/, then runbun run devorbun run buildinexamples/miniapp.- The React Native examples and
oem-appare members of theexamples/Bun workspace (package.json,bun.lock). It links@mentra/*(workspace:*) tomobile/modulesandcloud-v2/packages, the same waysdk/does, and resolves one Expo / React Native version for all the examples. Install withcd examples && bun install; installing runs the linked packages'preparescripts, which build them. - The native Android example includes
mobile/modules/bluetooth-sdk/androidas a Gradle composite build. - The native iOS and macOS examples use
mobile/modules/bluetooth-sdkas a local Swift package.
The standalone
Bluetooth SDK Starter Kit
is generated from bluetooth/ with its SDK dependencies pinned to published
versions: the export turns each example into a standalone project that
depends on published package versions. A scheduled workflow exports each
channel's latest completed release; intermediate releases are skipped
(.github/workflows/bluetooth-starter-kit-export.yml, script
.github/scripts/export-bluetooth-starter-kit.mjs). The kit's own CI lives in
the kit repository, is left untouched by the export, and validates each export
push.
CI: Example App Builds builds the Bluetooth examples; OEM Host Boundary Gate and OEM Example App APK cover oem-app/.