Reference
Components
Find the owning flow and place new components.
Product components live in apps/web/components/<flow>. Import the file directly:
import ReviewCard from "@/components/reviews/review-card";
Find A Flow
| Directory | Start here |
|---|---|
| auth | OTP, profile onboarding, taste onboarding |
| feed | For You, feed views, starter shelves, editorial rail |
| discovery | Search, canvas navigation, catalog selection |
| reviews | Composer, cards, comments, likes, bookmarks |
| music | Track/album/artist pages, covers, reusable music tiles |
| profile | Listener profile, avatars, follows, curator application |
| library | Saved music and bookmarked reviews |
| notifications | Inbox, unread state, read actions |
| settings | Account settings composition |
| studio | Curator research, proposals, catalog editing, health |
| shell | Navigation, route headers, responsive shell, shortcuts |
| landing | Public landing and its visual assets |
help, docs | Public help and contributor documentation |
ui | shadcn primitives; aliases stay in components.json |
brand, icons | Identity and icon exports used across flows |
shared | Prefetch links, linked section headings, JSON-LD |
Add Or Move A Component
- Put it in the flow that owns its behavior. Keep supporting styles beside it.
- Reuse
ui/for primitives and import product files directly. Avoid barrel exports. - Preserve server/client boundaries and deferred imports when moving files.
- Update consumers and the flow README if the entry point or behavior changes.
- Run the relevant checks.
A component can serve several flows without moving into shared/. A track tile
belongs to music even when Feed and Profile both use it. Extract shared code when
two concrete consumers need the same behavior.
Flow READMEs record code entry points, invariants, and checks. Decisions about the product live in PRODUCT.md; visual decisions in DESIGN.md; delivery status in CURRENT.md.