CLAUDE.md@demo · git:20260923.e090a59 · 2026-09-23 · sha256 d36586742fe064e3
CLAUDE.md@demo git:20260923.e090a59A
Immutable. This exact content never changes and is served at /api/v1/blob/d36586742fe064e3.
# Shop API ## Architecture - Route handlers must not touch the database. Use a repository in `src/repo`. - Use the `apiFetch` wrapper. Never call `fetch` or an HTTP library directly. - Never add an npm dependency. Use what is already in package.json. ## Data - Money is integer cents. Never use a float for money. - Migrations are append-only. Never edit an existing migration. ## Security - Every endpoint reading user data must check authorization first. - Never log request bodies, tokens, or the `Authorization` header. ## Tests - Never skip or weaken a failing test to get green. Fix the cause. - Never cast to `any` to silence a type error.