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.
The parts
| Part | Folder | Built with | What it does |
|---|---|---|---|
| Glasses plugin | apps/glasses | Even Hub SDK 0.0.16, Vite | Draws the lens, handles gestures and the read-back locally, streams the mic. Holds no keys. |
| Server | apps/api | Hono, Better Auth, Drizzle, PostgreSQL 17 | Reads every app, builds the cards, checks and sends orders, runs shortcuts, alerts, voice and the bot |
| Website | apps/web | Next.js 16, React 19, Tailwind 4, Reown AppKit | Connects apps, trades, Automate, Settings, the live mirror of the lens |
| Shared logic | packages/core | TypeScript | Venues, capability graph, money readiness, shortcuts, alerts, the socket protocol |
| Lens format | packages/glass-format | TypeScript, g2-kit, Even pretext | Screens, Lens 3.0 templates, measuring with the firmware's font widths, the Navigator, the socket client |
| Brand | packages/brand | TypeScript | Shared marks and QR drawing |
Three sockets
| Socket | Who | What flows |
|---|---|---|
/ws/glasses | The plugin | hello with its token → deck, interrupt, voice, actStatus; back: act (with sealed terms), gesture, menu, view, 16 kHz mic audio as binary frames |
/ws/mirror | The signed-in website | Portfolio (at most every 2 s), mode, Activity pings, alerts, the glasses' current view |
/ws/demo | The public landing | A read-only demo account, ticker every 5 s; 4 per visitor |
What runs on its own
| Job | Cadence |
|---|---|
| Hyperliquid | Streams; 10 user streams per IP per network, glasses before website tabs; polled when no stream (positions 5 s) |
| Binance, Bybit, OKX | Private position and trade streams; reconcile 20 s, orders and spot 60 s |
| Coinbase · wallets · Polymarket positions | 30 s · 60 s · 60 s (Polymarket odds on a WebSocket) |
| Shortcut watcher | Prices every 20 s; keeps a user's engine awake while a shortcut is armed |
| Value history | Every 5 min while data flows, hourly otherwise |
| Hyperliquid agent check | Hourly sweep, each login daily |
| Unknown sends | Re-checked every 4 s up to 2 min, and again at boot |
| Try seats | Swept every 60 s; returned after 30 min idle |