Home
Softono
lydie

lydie

Open source TypeScript
42
Stars
2
Forks
0
Issues
1
Watchers
1 month
Last Commit

About lydie

Lydie is a modern writing workspace for structured documents, notes, and knowledge.

Platforms

Web Self-hosted

Languages

TypeScript

Lydie

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

Screenshot

πŸš€ 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:

sst dev still expects Postgres at localhost:5432; bun run dev now handles that automatically.

Development (Docker, optional)

bun run docker:dev

Access:

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:

  1. Lint and type check
  2. Build Docker images
  3. Run E2E tests
  4. Deploy with SST

πŸ“š Documentation

πŸ“„ License

MIT License - See LICENSE for details