How damarlanandu2005-jpg/eventsnap works
EventSnap appears to be an event-photo discovery and delivery product with photographer and admin workflows. The central guest journey is event discovery, selfie submission, face matching, and viewing or downloading matched photos. Photographer upload and face-indexing form a separate operational path. The README is still the uncustomized Next.js starter, so capability details come mainly from the file tree and sampled code; edges are limited to shown imports, calls, or navigation.
Main entry points: process-queue.js Queue processor · scan.js Face scan API · index.js Face provider · supabase.js Supabase data and storage
Components 21
Guest discovery
- Event discovery
pages/index.js - Event page
pages/event/[slug].js - Selfie capture
components/SelfieUploader.js - Face scan API
pages/api/scan.js - Match results
pages/results/[sessionId].js - Photo downloads
pages/api/download/zip.js
Photographer operations
- Photographer
- Photographer portal
pages/photographer/index.js - Photo upload APIs
pages/api/photographer - Admin operations
pages/admin
Photo processing
- Queue processor
pages/api/cron/process-queue.js - Face provider
lib/face/index.js - Image preparation
lib/face/image.js - AWS Rekognition
lib/face/aws.js - InsightFace provider
lib/face/insightface.js
Platform services
- Account auth
lib/auth.js - Supabase data and storage
lib/supabase.js - R2 object storage
lib/r2.js - Redis cache
lib/redis.js - Pricing rules
lib/pricing.js
Other components
- Photo seeker
Connections 21
- Photo seeker → Event discovery: browses
pages/index.js - Event discovery → Event page: opens event
pages/index.js - Event page → Selfie capture: renders
pages/event/[slug].js - Photo seeker → Face scan API: submits selfie
- Face scan API → Face provider: searches faces
pages/api/scan.js - Face scan API → Supabase data and storage: reads event photos
pages/api/scan.js - Face scan API → Redis cache: checks cache
pages/api/scan.js - Photo seeker → Match results: views matches
- Photo seeker → Photo downloads: requests archive
- Photographer → Photographer portal: manages events
- Photographer portal → Pricing rules: uses plans
pages/photographer/index.js - Photographer → Photo upload APIs: uploads photos
- Photographer → Admin operations: administers events
- Queue processor → Supabase data and storage: claims and updates
pages/api/cron/process-queue.js - Queue processor → R2 object storage: downloads originals
pages/api/cron/process-queue.js - Queue processor → Face provider: indexes faces
pages/api/cron/process-queue.js - Queue processor → Image preparation: prepares images
pages/api/cron/process-queue.js - Face provider → AWS Rekognition: selects provider
lib/face/index.js - Face provider → InsightFace provider: selects provider
lib/face/index.js - AWS Rekognition → Image preparation: normalizes images
lib/face/aws.js - Account auth → Supabase data and storage: verifies users
lib/auth.js