How p90752831-ai/number works
NUMBER is a Next.js identity-profile MVP: users register to receive a database-assigned number, enrich their profile, and let others find it by number or public profile link. The graph follows the evidenced page/component calls and documents database responsibilities from the README; unsampled storage and middleware behavior is not expanded into guessed flows.
Main entry points: server.ts Server Supabase client · [number]/page.tsx Public profile · search/page.tsx Number search · dashboard/page.tsx Account dashboard
Components 21
Pages and discovery
- Home
app/page.tsx - Number search
app/search/page.tsx - Public profile
app/[number]/page.tsx - Marketplace placeholder
app/marketplace/page.tsx
Accounts and profiles
- Login and register
app/login/page.tsx - Authentication form
components/AuthForm.tsx - Account dashboard
app/dashboard/page.tsx - Profile edit page
app/profile/edit/page.tsx - Profile editor
components/EditForm.tsx - Navigation
components/Nav.tsx - Logout control
components/LogoutButton.tsx
Shared profile features
- Profile card
components/ProfileCard.tsx - QR code
components/Qr.tsx - Search form
components/SearchForm.tsx - Profile links and completion
lib/links.ts - Profile types
lib/types.ts
Data and services
- Browser Supabase client
lib/supabase/client.ts - Server Supabase client
lib/supabase/server.ts - Profiles, policies, triggers
supabase/schema.sql - Supabase Auth, Postgres, Storage
Other components
- Visitor
Connections 35
- Visitor → Home: opens
README.md - Visitor → Login and register: registers or logs in
README.md - Home → Search form: renders
app/page.tsx - Visitor → Number search: searches number
README.md - Number search → Search form: renders
app/search/page.tsx - Number search → Server Supabase client: queries profiles
app/search/page.tsx - Visitor → Public profile: opens number link
README.md - Public profile → Server Supabase client: queries profiles
app/[number]/page.tsx - Public profile → Profile card: renders
app/[number]/page.tsx - Home → Login and register: links to registration
app/page.tsx - Login and register → Authentication form: renders
app/login/page.tsx - Login and register → Authentication form: renders
app/login/page.tsx - Authentication form → Browser Supabase client: signs in or up
components/AuthForm.tsx - Authentication form → Supabase Auth, Postgres, Storage: requests authentication
components/AuthForm.tsx - Supabase Auth, Postgres, Storage → Profiles, policies, triggers: assigns unique number
README.md - Account dashboard → Server Supabase client: checks session and reads profile
app/dashboard/page.tsx - Account dashboard → QR code: renders
app/dashboard/page.tsx - Visitor → Account dashboard: views account
README.md - Profile edit page → Server Supabase client: checks session and reads profile
app/profile/edit/page.tsx - Profile edit page → Profile editor: renders
app/profile/edit/page.tsx - Profile editor → Browser Supabase client: updates profile and avatar
components/EditForm.tsx - Browser Supabase client → Supabase Auth, Postgres, Storage: accesses data and storage
- Server Supabase client → Supabase Auth, Postgres, Storage: uses cookie session
lib/supabase/server.ts - Profiles, policies, triggers → Supabase Auth, Postgres, Storage: defines policies and triggers
README.md - Profile card → Profile links and completion: formats social links
components/ProfileCard.tsx - Profile links and completion → Profile types: uses profile shape
lib/links.ts - Account dashboard → Profile links and completion: calculates completion
app/dashboard/page.tsx - Navigation → Server Supabase client: checks session
components/Nav.tsx - Navigation → Logout control: renders
components/Nav.tsx - Logout control → Browser Supabase client: signs out
components/LogoutButton.tsx - Profile card → Profile types: renders profile data
components/ProfileCard.tsx - Number search → Profile types: uses profile data
app/search/page.tsx - Public profile → QR code: renders
app/[number]/page.tsx - QR code → Public profile: encodes profile link
README.md - Visitor → Marketplace placeholder: views placeholder
README.md