Project Structure
How the Next.js app is organized — routes, lib modules, and components.
Creative Hub is a single Next.js 16 app — no separate backend service. Business logic lives in Server Components, Server Actions, and a few API routes.
Top-level layout
text
fsh-creative-hub/
├── src/app/ # Routes & API
├── src/components/ # UI (hub/, landing/, docs/, …)
├── src/lib/ # Server actions, queries, Supabase
├── supabase/migrations/
├── scripts/ # Seed & migrate utilities
├── e2e/ # Playwright tests
└── PRD and MD files/ # Product specs (linked from docs)App Router
| Path | Purpose |
|---|---|
/ | Public landing page |
/login | Auth entry |
/projects | Project grid (hub home) |
/tasks/* | Task views (Today, Upcoming, Inbox, labels) |
/for-you | Inbox / triage feed |
/projects/[id]/* | Project workspace, boards, canvas, docs |
/share/[token] | Public view-only links |
/docs | This documentation |
lib/ modules
lib/supabase/— browser, server, middleware, admin clientslib/projects/— project CRUD & memberslib/workspace/— assets, comments, voteslib/tasks/— task systemlib/inbox/— For You feedlib/search/— global searchlib/routes.ts— canonical path helpers
components/
hub/— authenticated shell (header, nav, search)landing/— marketing pageworkspace/— asset overlay, presentationproject-files/— project home, boardsdocs/— documentation UI