managarten/apps/moodlit/CLAUDE.md
Till JS 72da55d3d0 feat(moodlit): restore from git history, migrate to local-first + Hono
- Restore from git history (was deleted in 079b55a79)
- Delete NestJS backend and mobile app
- Create Hono/Bun server with preset moods API
- Create local-first store (moods, sequences) with 8 preset moods
- Rewrite web app: Moods page with color gradient cards and activation,
  Sequences page with CRUD, auth via shared-auth-ui with guest mode
- Add CLAUDE.md, dev scripts, root CLAUDE.md entry
- 0 type errors on both server and web

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 15:03:19 +02:00

853 B

Moodlit — Ambient Lighting & Mood App

Architecture

Local-first for moods/sequences, Hono/Bun server for preset library.

Browser → IndexedDB (Moods, Sequences)
              ↕ sync
         mana-sync → PostgreSQL

Project Structure

apps/moodlit/
├── apps/
│   ├── web/        # SvelteKit web app (local-first)
│   ├── server/     # Hono/Bun (preset moods API)
│   └── landing/    # Astro landing page
└── package.json

Commands

pnpm dev:moodlit:web       # SvelteKit dev server
pnpm dev:moodlit:server    # Hono/Bun server (port 3073)
pnpm dev:moodlit:landing   # Landing page

Local-First Collections

Collection Fields
moods name, colors (hex array), animation, isDefault
sequences name, moodIds, duration (seconds)