How chinmayikc/vertex works
Vertex is a technical-club website with public event and member discovery, authenticated member access, and an internal Smart India Hackathon workspace. The main user journey starts at the public site, which links into events, projects, membership, and SIH pages; authenticated staff can manage club and hackathon operations. Server functions handle privileged actions and use Supabase for authentication and data. The graph reflects explicit route references and sampled calls; some public-page and SIH capabilities are documented or listed but their implementation details were not sampled.
Main entry points: hackathon.functions.ts SIH operations · SiteChrome.tsx Site navigation · admin.tsx Admin console · index.tsx Home page
Components 28
Public club site
- Home page
src/routes/index.tsx - Club pages
src/routes - Club data
src/data/team.ts - Member search
src/components/MemberSearch.tsx
SIH workspace
- SIH overview
src/routes/events.sih-internal-hackathon.index.tsx - SIH teams
src/routes/events.sih-internal-hackathon.team.tsx - SIH joining
src/routes/events.sih-internal-hackathon.join.tsx - SIH results
src/routes/events.sih-internal-hackathon.results.tsx - SIH rules
src/data/sih-2026.ts - Result data
src/data/sih-2026-results.ts
Authenticated operations
- Admin console
src/routes/_authenticated/admin.tsx - Member account
src/routes/_authenticated/me.tsx
Server and data
- SIH operations
src/lib/hackathon.functions.ts - Team operations
src/lib/hackathon.server.ts - Club operations
src/lib/admin.functions.ts - Staff operations
src/lib/staff.functions.ts - Role checks
src/lib/roles.server.ts - Input validation
src/lib/schemas.ts - Auth middleware
src/integrations/supabase/auth-middleware.ts - Browser client
src/integrations/supabase/client.ts - Admin client
src/integrations/supabase/client.server.ts
Shared interface
- Site navigation
src/components/SiteChrome.tsx - Page atmosphere
src/components/Atmosphere.tsx - Ambient background
src/components/AmbientBackground.tsx - Motion kit
src/components/motion-kit.tsx - Photo upload
src/components/PhotoUpload.tsx
Other components
- Visitor
- Supabase
Connections 40
- Visitor → Home page: opens
- Home page → Site navigation: renders
src/routes/index.tsx - Home page → Page atmosphere: renders
src/routes/index.tsx - Home page → Motion kit: uses
src/routes/index.tsx - Home page → Club pages: links to
src/routes/index.tsx - Member search → Club data: filters
src/components/MemberSearch.tsx - Member search → Club pages: supports
- Page atmosphere → Ambient background: uses
src/components/Atmosphere.tsx - Site navigation → Motion kit: uses
src/components/SiteChrome.tsx - Site navigation → Browser client: checks session
src/components/SiteChrome.tsx - SIH overview → Site navigation: renders
src/routes/events.sih-internal-hackathon.index.tsx - SIH overview → SIH rules: reads
src/routes/events.sih-internal-hackathon.index.tsx - SIH overview → SIH operations: calls
src/routes/events.sih-internal-hackathon.index.tsx - SIH overview → SIH teams: links to
- SIH teams → SIH rules: reads
src/routes/events.sih-internal-hackathon.team.tsx - SIH teams → SIH operations: calls
src/routes/events.sih-internal-hackathon.team.tsx - SIH joining → SIH operations: uses
- SIH results → Result data: reads
- SIH operations → Auth middleware: requires auth
src/lib/hackathon.functions.ts - SIH operations → Input validation: validates
src/lib/hackathon.functions.ts - SIH operations → Role checks: checks role
src/lib/hackathon.functions.ts - SIH operations → Team operations: delegates to
src/lib/hackathon.functions.ts - Team operations → Admin client: uses
src/lib/hackathon.server.ts - Admin console → Site navigation: renders
src/routes/_authenticated/admin.tsx - Admin console → Photo upload: renders
src/routes/_authenticated/admin.tsx - Admin console → Club operations: calls
src/routes/_authenticated/admin.tsx - Admin console → SIH operations: calls
src/routes/_authenticated/admin.tsx - Admin console → Staff operations: calls
src/routes/_authenticated/admin.tsx - Member account → Site navigation: renders
src/routes/_authenticated/me.tsx - Member account → Photo upload: renders
src/routes/_authenticated/me.tsx - Club operations → Auth middleware: requires auth
src/lib/admin.functions.ts - Club operations → Input validation: validates
src/lib/admin.functions.ts - Club operations → Role checks: checks role
src/lib/admin.functions.ts - Club operations → Supabase: reads and writes
src/lib/admin.functions.ts - Staff operations → Auth middleware: requires auth
src/lib/staff.functions.ts - Staff operations → Role checks: checks role
src/lib/staff.functions.ts - Auth middleware → Supabase: verifies claims
src/integrations/supabase/auth-middleware.ts - Browser client → Supabase: connects
src/integrations/supabase/client.ts - Admin client → Supabase: connects
src/integrations/supabase/client.server.ts - Club pages → Member search: includes