Waitlist Log in

Code map

A pnpm monorepo: one Next.js app and four packages the pipeline is built from.

Stack

  • Site: Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS. Motion with GSAP and Lenis; the "ii" on the home page is drawn with WebGL.
  • Data: Postgres, plain SQL migrations, the postgres client. No ORM.
  • Model: any OpenAI-compatible API, DeepSeek by default.
  • Payments: USDC on Solana with Solana Pay, verified with plain JSON-RPC.
  • Hosting: Netlify for the site, GitHub Actions for builds and backups.

Repository

PathWhat
apps/web/The site
packages/ingest/Reading posts: the XSource interface, twitterapi.io and official X API adapters, the resumable runner
packages/brain-core/Model client, every prompt, map/merge/reduce distill, call checks, brain assembly, export
packages/stats/Deterministic call pricing: price sources, coin matching, returns, hit rates
packages/db/Postgres client and SQL migrations
scripts/cli.tsThe pipeline CLI (pnpm brain:*) and the Add worker
scripts/dev-mock.tsLocal stack with no keys
config/pricing.tsAPI prices, for real-cost tracking and Add quotes
brains/The open files of every mind
docs/These docs. The site's /docs page is built from the same files
.github/workflows/Weekly refresh, Add builds, backups

Inside the site

PathWhat
apps/web/app/Pages and API routes
apps/web/app/api/chat/One mind's answer, streamed
apps/web/app/api/group/Group chat: speaking order, then one speaker at a time
apps/web/app/api/tools/Check a coin, rate my bag
apps/web/app/api/add/, api/plus/Quotes and checkouts
apps/web/app/api/early/Waitlist state and tasks
apps/web/lib/server/Server code: auth, limits, live data, payments, jobs, shares, the waitlist (early.ts)
apps/web/lib/cards.tsThe live cards inside answers
apps/web/components/UI by area: app, chat, group, brain, coin, leaderboard, early (the waitlist), add, account, hero
apps/web/config/Plans and limits, the waitlist, token, payments, the launch minds
apps/web/styles/tokens.cssDesign tokens: palette, type scale, radii, motion. The single source for the look
apps/web/lib/logo-geometry.tsThe "ii" mark as a pixel grid, shared by the WebGL scene, the SVG mark and the favicon
apps/web/lib/brain-render.tsThe turning pixel brains

Database

Tables, from packages/db/migrations/:

TableHolds
influencersEvery mind: code, handle, status, one-line mind
posts, ingest_stateCollected posts, and where each read phase stopped
distill_notesCached notes per map batch
calls, statsChecked calls and their prices
brainsEvery brain version: files, prompt, size, model
recent_postsPosts since a brain was built, cached for live context
usersAccounts from Log in with X
chats, messages, sharesConversations and shared answers
jobs, paymentsAdd builds and USDC payments
earlyThe waitlist: wallet, tasks, spot, who invited whom
spend, errors, settingsReal cost of every API call, error log, admin settings
takedown_requestsRemoval and deletion requests

License

MIT. See LICENSE.