Skip to content

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 ​

  1. Project rules and invariants — golden rules, invariants and the repo map.
  2. Architecture — runtime modes, modules and request flows.
  3. Data model — Prisma models and invariants.
  4. API — endpoints and payloads.

Common tasks ​

TaskStart with
Add a field or endpointData model, API
Change the UIDesign system
Change DiscoverDiscovery
Change metadata behaviorOperations § Metadata enrichment
Debug or deployOperations
Understand a choiceDecisions

Local checks ​

bash
bun install
bun run db:deploy
bun run check

bun 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.ts

Never run destructive commands against prisma/dev.db; see Contributing.

Docs site ​

bash
bun run docs:dev
bun run docs:build

Use 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-safety
  • sleeve-feature-slice
  • sleeve-ui-change
  • sleeve-musicbrainz
  • sleeve-verify