The G2 plugin
A thin Even Hub plugin: it keeps your place and the read-back on the phone, draws only what changed, and holds no keys.
Package
| SDK | @evenrealities/even_hub_sdk 0.0.16 (min_sdk_version 0.0.16), @evenrealities/pretext 0.1.4 for the firmware's font widths, g2-kit 0.4.0 for drawing |
app.json | package_id trade.soba.glasses, name "Soba", version 0.1.2 |
| Permissions | network (only https://api.usesoba.xyz and wss://api.usesoba.xyz), g2-microphone ("Hold the temple to speak a command or ask about your trades. Audio is used only while you hold it.") |
| Build | pnpm --filter @soba/glasses pack → soba.ehpk with the public origins baked in; nothing secret is in the package |
Drawing on 576 × 288
| Limit or cost | Value |
|---|---|
| Per page | ≤ 8 text boxes (the hint is the only one that takes input), ≤ 4 images of ≤ 288 × 144 |
| Classic frame | A header, 4 body lines of 39 px, the hint at y 249; body ≤ 40 characters, header ≤ 32 |
| Glyphs | The firmware drops unknown glyphs, so quotes, dashes and accents are mapped to safe ones ("Sōba" → "Soba") |
| Measured on hardware | A rebuild ~165 ms, a text update ~83 ms per box, a full image ~800 ms |
| Strategy | Same screen: update boxes in place; a new page or more than 3 changed boxes: rebuild. Images after text, only when changed, at most every 2 s (never delayed on a read-back). An image the glasses refuse shows its text twin for 60 s. |
| Lens 3.0 | Each template draws pictures beside the same words (dot-matrix digits, rings, bars, the day arc, charts as two 288 × 128 tiles). If a template can't fit, the classic text frame shows instead. |
Input
Tap arrives with no event type (protobuf drops CLICK = 0), so the plugin treats a missing type as a tap. Taps have a 220 ms cooldown; scrolls are ignored for 110 ms after a tap. Hold starts voice; the OS menu (Tap, then hold) carries the plugin's items, re-sent on every page.
The socket
One WebSocket to /ws/glasses. Every (re)connect sends hello with the token, time zone, worn state, app version and launch source. Heartbeat 15 s; reconnect 0.5 s → 10 s. Messages are validated with Zod. Pairing is the RFC 8628 device flow: the plugin only shows the code and stores the session it is given. The last deck is cached on the phone, so the lens comes back at once, and ages tick every second (STALE at 15 s, OFFLINE at 45 s).
view), so the website's mirror and the phone page show exactly what is on the lens.