Lydie
Lydie is a high-performance writing workspace that scales from simple notes to deeply structured, interconnected knowledge systems.

π Quick Start
Development (SST, recommended)
bun install
bun run db:migrate
bun run dev
dev auto-starts Docker Postgres and auto-stops it on exit.
If you want to keep Postgres running after exit, use KEEP_DB_RUNNING=1 bun run dev.
This starts the local SST multiplexer and runs local dev processes for:
- Web App: http://localhost:3000
- Backend API: http://localhost:3001
- Zero Sync: http://localhost:4848
- Marketing: local Astro dev server in the SST tabs
sst dev still expects Postgres at localhost:5432; bun run dev now handles that automatically.
Development (Docker, optional)
bun run docker:dev
Access:
- Web App: http://localhost:3000
- Backend API: http://localhost:3001
- Zero Sync: http://localhost:4848
Run migrations (if needed):
bun run db:migrate
Production (AWS)
See Deployment Guide for AWS deployment with SST.
bun run deploy:prod
π οΈ Tech Stack
- Frontend: React, Vite, TanStack Router
- Backend: Hono, Better Auth
- Database: PostgreSQL, Drizzle ORM
- Real-time: Zero sync, WebSockets
- AI: Vercel AI SDK
- Infrastructure: SST (local orchestration + AWS), Docker (optional local/self-host)
π Project Structure
βββ docker/ # Docker Compose + nginx config
βββ infra/ # SST AWS infrastructure
βββ packages/
β βββ config/ # Environment configuration
β βββ web/ # React SPA
β βββ backend/ # Hono API server
β βββ core/ # Shared logic
β βββ database/ # Drizzle ORM schema
β βββ zero/ # Zero sync configuration
βββ docs/
βββ DEPLOYMENT.md # Local dev, self-hosting & AWS deployment
π¦ Deployment Options
| Environment | Command | Notes |
|---|---|---|
| Local Dev | bun run dev |
SST multiplexer + local processes |
| Local Dev (Alt) | bun run docker:dev |
Docker Compose with hot reload |
| AWS Prod | bun run deploy:prod |
ECS Fargate, S3, CloudFront |
π§ͺ Development
# Start local development (recommended)
bun run dev
# Optional: Docker-based development
bun run docker:dev
# Optional: run migrations
bun run db:migrate
# Optional: Postgres only for SST dev
bun run docker:db:up
π CI/CD
GitHub Actions workflow included at .github/workflows/ci-cd.yml:
- Lint and type check
- Build Docker images
- Run E2E tests
- Deploy with SST
π Documentation
- Deployment - Local dev, self-hosting & AWS production deployment
- Migration Summary - Implementation details
π License
MIT License - See LICENSE for details