Skip to content
Browse guides

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

DirectoryStart here
authOTP, profile onboarding, taste onboarding
feedFor You, feed views, starter shelves, editorial rail
discoverySearch, canvas navigation, catalog selection
reviewsComposer, cards, comments, likes, bookmarks
musicTrack/album/artist pages, covers, reusable music tiles
profileListener profile, avatars, follows, curator application
librarySaved music and bookmarked reviews
notificationsInbox, unread state, read actions
settingsAccount settings composition
studioCurator research, proposals, catalog editing, health
shellNavigation, route headers, responsive shell, shortcuts
landingPublic landing and its visual assets
help, docsPublic help and contributor documentation
uishadcn primitives; aliases stay in components.json
brand, iconsIdentity and icon exports used across flows
sharedPrefetch links, linked section headings, JSON-LD

Add Or Move A Component

  1. Put it in the flow that owns its behavior. Keep supporting styles beside it.
  2. Reuse ui/ for primitives and import product files directly. Avoid barrel exports.
  3. Preserve server/client boundaries and deferred imports when moving files.
  4. Update consumers and the flow README if the entry point or behavior changes.
  5. 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.