How Whyo is built
The monorepo, the apps, and how data and sign-in move between them.
Whyo is a Turborepo monorepo on pnpm workspaces.
- apps/
- mobile/ Expo iOS app with a share extension
- desktop/ SwiftUI macOS app (XcodeGen)
- api/ Cloudflare Worker: Better Auth, link previews, R2 media
- mcp/ Cloudflare Worker: remote MCP server
- docs/ This site (Blume)
- packages/
- backend/ Convex schema and functions
- shared/ Zod schemas, media rules, signed URLs
- config/ Shared tsconfig
| Piece | Runs on | Holds |
|---|---|---|
| Convex | Convex cloud | Profiles, collections, items, tastes |
| api worker | Cloudflare Workers + D1 + R2 | Sessions and accounts, uploaded media |
| mcp worker | Cloudflare Workers | Nothing; reads Convex as the user |
The required why
items.create rejects any item without a sentiment (like or dislike) and a why of at least 3 characters. The apps also block saving until both are filled in, but Convex is the source of truth.
Conventions
- File and folder names are kebab-case. Biome enforces it for TypeScript.
- Commit subjects use a type and scope:
feat(api): …,fix(mobile): ….