Sample apps
The same doorbell flow on every platform: connect with a token, subscribe to a topic, ring it, and dry-run the cost. The mobile samples add an Edge tab that moves messages between nearby phones with no network. See samples/README.md for the scripted flow.
| Platform | Try it | |
|---|---|---|
| Web | Open the web sample: the doorbell with <subetha-feed>, <subetha-send> and sdk.js. Paste a token for https://subetha.us. | source |
| React Native (Expo) | Open the web build (the Doorbell tab, and the Edge tab's animated QR). Android development build with the Rust core (66.6 MB, debug build from the latest Mobile SDKs run on main) (x86_64, for emulators). On a phone: npm run core:android && npm install && npx expo run:android. | source |
| Android (Kotlin) | Download the APK (15.9 MB, debug build from the latest Mobile SDKs run on main). Doorbell plus the Edge tab (Bluetooth LE, sound, animated QR, LAN, relay bridge). | source |
| iOS (Swift) | Build from source on a Mac: sdk/swift/scripts/build-xcframework.sh, then cd samples/ios && xcodegen and open Doorbell.xcodeproj. TestFlight is pending an Apple Developer account. | source |
| Flutter | cd samples/flutter && flutter run on Android or iOS. No web build: the Edge tab needs the native Rust core (subetha_core). | source |
| CLI | npx subetha pub|sub|tail|cost|lan, and plain curl. | source |
| Python | pip install -e sdk/python, then publish.py / subscribe.py. | source |
| Agents (MCP) | Point an MCP client at https://subetha.us/mcp with a spend-capped token. | source |