Build

Architecture

A thin G2 plugin, one server that reads eight apps and decides nothing without you, a website and a Telegram bot on the same engine.

FIG · HOW SŌBA WORKSEVEN G2BTYOUR PHONESōba pluginin the Even AppMIC · TAP · SWIPEWebsiteusesoba.xyzTelegram bot@soba1_botSŌBA SERVERLive enginereads every appRead-back & checksbefore money movesAnswer enginevoice · Ask SōbaElevenLabsspeech to textOpenAIreads intentPostgreSQLYOUR EIGHT APPSHyperliquidPolymarketGram WalletTrust WalletBinanceBybitOKXCoinbase1234BTC −3%card▶tapclose 50%order
1The live engine reads your apps: prices, positions, orders, bets and balances2It sends the plugin cards over a WebSocket, riskiest first3The plugin lays each card out for the 576 × 288 lens and draws it on the G24A tap comes back the same way; after the read-back and the checks, the order goes to the app

The parts

PartFolderBuilt withWhat it does
Glasses pluginapps/glassesEven Hub SDK 0.0.16, ViteDraws the lens, handles gestures and the read-back locally, streams the mic. Holds no keys.
Serverapps/apiHono, Better Auth, Drizzle, PostgreSQL 17Reads every app, builds the cards, checks and sends orders, runs shortcuts, alerts, voice and the bot
Websiteapps/webNext.js 16, React 19, Tailwind 4, Reown AppKitConnects apps, trades, Automate, Settings, the live mirror of the lens
Shared logicpackages/coreTypeScriptVenues, capability graph, money readiness, shortcuts, alerts, the socket protocol
Lens formatpackages/glass-formatTypeScript, g2-kit, Even pretextScreens, Lens 3.0 templates, measuring with the firmware's font widths, the Navigator, the socket client
Brandpackages/brandTypeScriptShared marks and QR drawing

Three sockets

SocketWhoWhat flows
/ws/glassesThe pluginhello with its token → deck, interrupt, voice, actStatus; back: act (with sealed terms), gesture, menu, view, 16 kHz mic audio as binary frames
/ws/mirrorThe signed-in websitePortfolio (at most every 2 s), mode, Activity pings, alerts, the glasses' current view
/ws/demoThe public landingA read-only demo account, ticker every 5 s; 4 per visitor

What runs on its own

JobCadence
HyperliquidStreams; 10 user streams per IP per network, glasses before website tabs; polled when no stream (positions 5 s)
Binance, Bybit, OKXPrivate position and trade streams; reconcile 20 s, orders and spot 60 s
Coinbase · wallets · Polymarket positions30 s · 60 s · 60 s (Polymarket odds on a WebSocket)
Shortcut watcherPrices every 20 s; keeps a user's engine awake while a shortcut is armed
Value historyEvery 5 min while data flows, hourly otherwise
Hyperliquid agent checkHourly sweep, each login daily
Unknown sendsRe-checked every 4 s up to 2 min, and again at boot
Try seatsSwept every 60 s; returned after 30 min idle

On this page