## Summary Initialize the monorepo structure and development infrastructure. This is the foundation for all other work. ## Tasks ### Monorepo Setup - [ ] Initialize Bun workspace at the root - [ ] Configure root `package.json` with workspaces: `packages/core`, `packages/storage/mongodb`, `packages/channels`, `packages/server`, `packages/trust` - [ ] Add shared `tsconfig.json` (base) with per-package extends - [ ] Configure Vite as the build tool for library packages (`core`, `storage/*`, `channels`, `trust`) - [ ] Add ESLint + Prettier with shared config - [ ] Add root scripts for common tasks (`dev`, `build`, `test`, `lint`) ### CI / Quality Gates - [ ] GitHub Actions workflow: lint, typecheck, test on push/PR - [ ] Pre-commit hook: lint-staged + typecheck ### Development Environment - [ ] Docker Compose for local dependencies (MongoDB) - [ ] `.env.example` with documented variables - [ ] Seed script for development data (sample channels, routes, threads) ## Acceptance Criteria - `bun install` from root installs all workspace dependencies - `bun run build` builds all packages - `bun run test` runs tests across all packages (empty suites OK) - `bun run lint` passes - CI runs on push and PR - `docker compose up` starts MongoDB ## Dependencies None — this is the first issue. ## References - [VISION.md — Tech Stack](./VISION.md#7-tech-stack) - [PLAN.md — Phase 0](./PLAN.md#phase-0--project-bootstrap)
Summary
Initialize the monorepo structure and development infrastructure. This is the foundation for all other work.
Tasks
Monorepo Setup
package.jsonwith workspaces:packages/core,packages/storage/mongodb,packages/channels,packages/server,packages/trusttsconfig.json(base) with per-package extendscore,storage/*,channels,trust)dev,build,test,lint)CI / Quality Gates
Development Environment
.env.examplewith documented variablesAcceptance Criteria
bun installfrom root installs all workspace dependenciesbun run buildbuilds all packagesbun run testruns tests across all packages (empty suites OK)bun run lintpassesdocker compose upstarts MongoDBDependencies
None — this is the first issue.
References