Development
Sleeve is a Bun + Elysia backend with a React/Vite frontend, Prisma and SQLite. The app is deliberately small and single-user.
Read first
- Project rules and invariants — golden rules, invariants and the repo map.
- Architecture — runtime modes, modules and request flows.
- Data model — Prisma models and invariants.
- API — endpoints and payloads.
Common tasks
| Task | Start with |
|---|---|
| Add a field or endpoint | Data model, API |
| Change the UI | Design system |
| Change Discover | Discovery |
| Change metadata behavior | Operations § Metadata enrichment |
| Debug or deploy | Operations |
| Understand a choice | Decisions |
Local checks
bash
bun install
bun run db:deploy
bun run checkbun run check runs typecheck, Biome lint, the test suite and a production build. For manual testing, use the disposable database:
bash
scripts/temp-db.sh bun run seed
scripts/temp-db.sh bun server/index.tsNever run destructive commands against prisma/dev.db; see Contributing.
Docs site
bash
bun run docs:dev
bun run docs:buildUse DOCS_BASE=/sleeve/ bun run docs:build for a GitHub project page.
Portable skills
Procedures for AI coding assistants live in .agents/skills/ and work with OpenCode, Codex and Claude Code:
sleeve-data-safetysleeve-feature-slicesleeve-ui-changesleeve-musicbrainzsleeve-verify