How noahchocolumbia/week-1 works
This is a Next.js meme-making and community app. A user signs in, completes a profile, uploads a photo, generates or remixes AI captions, and publishes or shares a meme; other users browse, vote, and view ranked or individual posts. The graph groups those user-facing stages and includes the server actions, feed assembly, and Supabase persistence layer. Evidence is limited to the README, SOURCE INDEX references, and sampled excerpts; unsampled subsystem links are omitted where their callers are not shown.
Main entry points: feed.ts Feed assembly · actions.ts Server actions · supabase-server.ts Server client · Studio.tsx Creation studio
Components 23
Identity and profile
- Sign in
src/app/login/page.tsx - Auth routes
src/app/auth/callback/route.ts - Profile
src/app/profile/page.tsx - Avatar upload
src/components/AvatarUploader.tsx - Name setup
src/app/welcome/page.tsx
Meme creation
- Generate page
src/app/generate/page.tsx - Creation studio
src/components/Studio.tsx
Browse and engage
- Home gallery
src/app/page.tsx - Rate memes
src/app/rate/page.tsx - Ranked memes
src/app/top/page.tsx - Meme detail
src/app/m/[id]/page.tsx - Projects
src/app/projects/page.tsx - Meme post card
src/components/PostCard.tsx - Vote controls
src/components/VoteButtons.tsx
Application services
- Feed assembly
src/lib/feed.ts - Server actions
src/app/actions.ts - Styles and formats
src/lib/styles.ts - Caption generation
src/lib/gemini.ts - Server client
src/lib/supabase-server.ts - Browser client
src/lib/supabase.ts - Supabase data and storage
Other components
- User
- Google Gemini API
Connections 38
- User → Sign in: signs in
- Sign in → Server client: checks session
src/app/login/page.tsx - Auth routes → Server client: handles auth
src/app/auth/callback/route.ts - User → Name setup: sets name
- Name setup → Server actions: saves name
src/app/welcome/page.tsx - User → Profile: views profile
- Profile → Feed assembly: loads scores
src/app/profile/page.tsx - Profile → Avatar upload: edits avatar
src/app/profile/page.tsx - Avatar upload → Server actions: saves avatar path
src/components/AvatarUploader.tsx - Avatar upload → Browser client: uploads image
src/components/AvatarUploader.tsx - User → Home gallery: browses
- Home gallery → Feed assembly: loads memes
src/app/page.tsx - User → Rate memes: rates memes
- Rate memes → Feed assembly: loads memes
src/app/rate/page.tsx - Rate memes → Meme post card: renders feed
src/app/rate/page.tsx - User → Ranked memes: views rankings
- Ranked memes → Feed assembly: ranks memes
src/app/top/page.tsx - User → Meme detail: opens meme
- Meme detail → Feed assembly: loads meme
src/app/m/[id]/page.tsx - Home gallery → Meme post card: renders posts
src/app/page.tsx - Meme detail → Meme post card: renders post
src/app/m/[id]/page.tsx - Meme post card → Vote controls: shows controls
src/components/PostCard.tsx - Vote controls → Server actions: casts vote
src/components/VoteButtons.tsx - User → Generate page: creates meme
- Generate page → Creation studio: renders studio
src/app/generate/page.tsx - Generate page → Feed assembly: loads drafts
src/app/generate/page.tsx - Creation studio → Server actions: generates captions
src/components/Studio.tsx - Creation studio → Browser client: uploads photo
src/components/Studio.tsx - Creation studio → Styles and formats: chooses style
src/components/Studio.tsx - Server actions → Caption generation: requests captions
src/app/actions.ts - Caption generation → Google Gemini API: calls generation API
src/lib/gemini.ts - Server actions → Server client: authenticates and persists
src/app/actions.ts - Server actions → Supabase data and storage: stores uploads
src/app/actions.ts - Feed assembly → Supabase data and storage: reads posts and scores
src/lib/feed.ts - Feed assembly → Server client: uses server client
src/lib/feed.ts - Server client → Supabase data and storage: queries data
src/lib/supabase-server.ts - Browser client → Supabase data and storage: accesses storage
- Projects → Server client: loads session
src/app/projects/page.tsx