Build

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.

FIG · FROM A CARD TO THE LENSCardsdeck · interruptSŌBA SERVERSŌBA PLUGIN · ON YOUR PHONENavigatorplace · read-backframeOfLens 3.0 templateRendereronly what changedswipe · tap · back, localfirmware font widths≤ 8 text · ≤ 4 images576 × 288BTWebsite mirror · phone pageeach drawn view, as isEven Hub bridgerebuild ~165 ms · text ~83 ms · image ~800 ms1234BTC −3%
1The server sends cards (the deck) and interrupts; keys and decisions stay on the server2On the phone, the Navigator keeps your place, the pointer and the read-back, with no round trip3frameOf lays the screen out for 576 × 288, measured with the firmware’s own font widths4The renderer sends only what changed: ≤ 8 text boxes and ≤ 4 images per page, over Bluetooth

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.jsonpackage_id trade.soba.glasses, name "Soba", version 0.1.2
Permissionsnetwork (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.")
Buildpnpm --filter @soba/glasses pack → soba.ehpk with the public origins baked in; nothing secret is in the package

Drawing on 576 × 288

Limit or costValue
Per page≤ 8 text boxes (the hint is the only one that takes input), ≤ 4 images of ≤ 288 × 144
Classic frameA header, 4 body lines of 39 px, the hint at y 249; body ≤ 40 characters, header ≤ 32
GlyphsThe firmware drops unknown glyphs, so quotes, dashes and accents are mapped to safe ones ("Sōba" → "Soba")
Measured on hardwareA rebuild ~165 ms, a text update ~83 ms per box, a full image ~800 ms
StrategySame 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.0Each 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).

Every drawn view is reported back (view), so the website's mirror and the phone page show exactly what is on the lens.

On this page