Build

Run it locally

Postgres in Docker, then the server, the website and the glasses plugin with pnpm, and the Even Hub simulator for the lens.

You need Node 24, pnpm 11 and Docker.

Install and start the database

pnpm install
pnpm db:up

PostgreSQL 17 listens on localhost:55432 (user, password and database soba). The server runs its migrations on boot.

Configure the server

Copy apps/api/.env.example to apps/api/.env. Production refuses to start without DATABASE_URL, API_ORIGIN, WEB_ORIGIN, BETTER_AUTH_SECRET and VAULT_MASTER_KEY (32 bytes), plus TELEGRAM_WEBHOOK_SECRET when a bot token is set. Everything else is optional and switches a feature off when missing:

VariableTurns on
OPENAI_API_KEYReading calls, voice and Ask
ELEVENLABS_API_KEYSpeech to text
RESEND_API_KEY, EMAIL_FROMEmail codes (in development the code shows on the page)
TELEGRAM_BOT_TOKEN, TELEGRAM_OIDC_CLIENT_ID/SECRETThe bot; Log In With Telegram
GOOGLE_CLIENT_ID/SECRETGoogle sign-in
REOWN_PROJECT_IDTrust Wallet (WalletConnect)
UNISWAP_API_KEYEVM wallet swaps
NANSEN_API_KEY, NANSEN_WEBHOOK_SECRETWallet P/L, history and move alerts; coin context
POLYMARKET_BUILDER_API_KEY/SECRET/PASSPHRASE, POLYMARKET_BUILDER_CODEPolymarket trading (read-only without them)
TONCENTER_API_KEYFaster TON reads
TRY_BINANCE_DEMO, TRY_BYBIT_DEMO, TRY_OKX_DEMO, TRY_HL_WALLETSTry seats
DEMO_HYPERLIQUID, DEMO_POLYMARKETThe public demo
EGRESS_IPSThe IPs shown for locking exchange keys

The website reads NEXT_PUBLIC_API_ORIGIN, NEXT_PUBLIC_SITE_ORIGIN and NEXT_PUBLIC_REOWN_PROJECT_ID (wallet features are off without it).

Run everything

pnpm dev
AppAddress
Serverhttp://localhost:8787
Websitehttp://localhost:3210
Glasses plugin (Vite)http://localhost:5173

See the lens

pnpm --filter @soba/glasses simulate

The Even Hub simulator (0.9.5) loads the plugin from port 5173 with its automation API on 9898. The lens shows a code: link it at http://localhost:3210/link, or tap Try.

Package for the glasses

pnpm --filter @soba/glasses pack

Builds against api.usesoba.xyz and writes soba.ehpk.

CI runs pnpm lint (Biome), pnpm typecheck, pnpm -r --if-present test and the website's design lint (pnpm --filter @soba/web lint:design), then builds the website and the plugin, with Postgres as a service.

On this page