One repo, pnpm workspaces, Turborepo.
daksha.life/ (the new app is in os/apps/mobile, served at my.daksha.life)
AGENTS.md CLAUDE.md DESIGN.md README.md
package.json pnpm-workspace.yaml turbo.json .env.example
docs/
apps/
web/ @debo/web Old web app, retired. Redirects to the new app and keeps /privacy and /api/*.
site/ @debo/site Landing page at www.daksha.life (plain CSS, see DESIGN.md)
pitch/ @debo/pitch Investor data room at pitch.daksha.life (Astryx only, noindex, not public)
voice-agent/ @debo/voice-agent LiveKit Agents worker
mcp-server/ @debo/mcp-server MCP server
packages/
db/ @debo/db Drizzle schema, migrations, queries
memory/ @debo/memory Save and recall, always with sources
ingest/ @debo/ingest Files and audio to text, chunks, embeddings
connectors/ @debo/connectors Wrapper around the connector provider
llm/ @debo/llm Model calls, key choice, usage counting
ui/ @debo/ui Shared components and tokens
recall/ @debo/recall Recall test set (tooling, never imported by apps)
Planned folders hold only a README today. A folder becomes a real package when it gets a package.json.
apps/* -> any package
@debo/memory -> @debo/db, @debo/llm
@debo/ingest -> @debo/db, @debo/llm
@debo/connectors -> @debo/db
@debo/llm -> @debo/db
@debo/recall -> @debo/db, @debo/ingest, @debo/llm
@debo/ui -> nothing in this repo
@debo/db -> nothing in this repo
Packages never import from apps/. No circles.
| Only this package | May do this |
|---|---|
@debo/db |
Talk to Postgres |
@debo/llm |
Call a model or read an AI key |
@debo/connectors |
Call the connector provider |
@debo/ingest |
Parse files and audio |
@debo/memory |
Decide what is worth remembering and find it again |
@debo/recall |
Check search against made-up entries (tooling; nothing imports it) |
This keeps swaps cheap. Changing the memory library touches one package.
apps/web/src/
app/
(site)/ public pages: landing, privacy, pricing
(app)/ signed-in pages: home, journal, ask, memories, settings
api/ route handlers
components/ components used only by the web app
lib/ small helpers
What exists today:
app/page.tsx,app/layout.tsx,app/not-found.tsx: the landing page and its 404 page.app/auth/sign-up,app/auth/sign-in: sign-in pages (Neon Auth).app/home: the first signed-in page.app/api/auth/[...path]: forwards sign-in requests to Neon Auth.app/api/health: development-only check of the database, file storage and AI gateway.src/proxy.ts: sends signed-out visitors of/hometo the sign-in page.lib/auth/: the Neon Auth server and browser clients.lib/server-env.ts: where to reach the database (Hyperdrive on Cloudflare,DATABASE_URLlocally).
Move pages into the (site) and (app) route groups when there are more of them.
- Create
packages/<name>/package.jsonwith the name@debo/<name>. - Add
src/index.tsas the only public entry. - Add
build,typecheckandtestscripts so Turborepo picks it up. - Replace the placeholder README with what the package does and its public functions.
- Add it to the tables in this file.
pnpm install
pnpm dev # run everything
pnpm --filter @debo/web dev # run one app
pnpm build
pnpm typecheck