How manya-singh7/code-wrapped works
Code Wrapped turns a GitHub user's selected activity period into a narrated, visual retrospective: sign-in and date/timezone context feed server-side collection and analysis, cached results are presented as slides and share cards, and public profiles can serve saved retrospectives without live GitHub access. The README also documents comparison, rankings, achievements, and location inference. Those capabilities are represented even where implementation excerpts were unavailable; their links are documented or left unverified rather than inferred from sibling modules.
Main entry points: page.js Activity collection · page.jsx Head-to-head comparison · WrappedSlides.jsx Narrated slide story · auth.js GitHub OAuth
Components 24
Access and entry
- GitHub OAuth
src/auth.js - Wrapped request
src/app/page.js - Period and timezone
src/app/DateRangePicker.jsx
Activity and insights
- Activity collection
src/app/page.js - GitHub request handling
src/lib/github.js - Request limiting
src/lib/concurrency.js - AI stories and chapters
src/app/page.js - Rankings and achievements
src/app/page.js - Collaborator locations
src/lib/userLocations.js
Wrapped experience
- Narrated slide story
src/app/WrappedSlides.jsx - Activity visualizations
src/app/ContributionHeatmap.jsx - Collaborator map
src/app/WorldMap.jsx - Map marker layout
src/lib/spreadMarkers.js - Share card export
src/app/StatsCard.jsx
Profiles and comparison
- Public profile
src/app/u/[username]/page.jsx - Head-to-head comparison
src/app/compare/page.jsx - Comparison form
src/app/compare/CompareForm.jsx - GitHub data routes
src/app/api/github
External services and state
- GitHub API
- Geocode cache
supabase/geocode_cache.sql - Supabase
src/app/supabaseClient.js - Geocoding service
Other components
- Visitor
- GitHub user
Connections 32
- Visitor → GitHub OAuth: signs in
README.md - GitHub user → GitHub API: provides activity
README.md - GitHub OAuth → Wrapped request: supplies session
src/app/page.js - Visitor → Wrapped request: requests Wrapped
README.md - Period and timezone → Wrapped request: sets period
src/app/page.js - Wrapped request → Activity collection: loads activity
src/app/page.js - Activity collection → GitHub request handling: requests data
src/app/page.js - GitHub request handling → GitHub API: fetches activity
src/lib/github.js - Activity collection → Request limiting: limits requests
README.md - Activity collection → AI stories and chapters: builds narrative
README.md - AI stories and chapters → Supabase: reads and writes cache
src/app/page.js - Activity collection → Rankings and achievements: derives highlights
README.md - Activity collection → Collaborator locations: resolves collaborators
README.md - Collaborator locations → Geocode cache: uses cached places
- Collaborator locations → Geocoding service: geocodes places
- Wrapped request → Supabase: reads and writes snapshots
src/app/page.js - Wrapped request → Narrated slide story: renders story
src/app/page.js - Narrated slide story → Activity visualizations: renders charts
src/app/WrappedSlides.jsx - Narrated slide story → Collaborator map: renders locations
src/app/WrappedSlides.jsx - Collaborator map → Map marker layout: spreads markers
src/lib/spreadMarkers.js - Narrated slide story → Share card export: renders export cards
src/app/WrappedSlides.jsx - Visitor → Public profile: opens profile
README.md - Public profile → Supabase: reads public cache
src/app/u/[username]/page.jsx - Public profile → Narrated slide story: renders cached story
src/app/u/[username]/page.jsx - Visitor → Head-to-head comparison: requests comparison
README.md - Head-to-head comparison → Comparison form: renders form
src/app/compare/page.jsx - Head-to-head comparison → GitHub request handling: fetches user stats
src/app/compare/page.jsx - Head-to-head comparison → Request limiting: limits requests
src/app/compare/page.jsx - Head-to-head comparison → GitHub OAuth: checks session
src/app/compare/page.jsx - Visitor → GitHub data routes: requests data
- GitHub data routes → GitHub OAuth: checks session
src/app/api/github/commits/route.js - GitHub data routes → GitHub API: fetches repositories
src/app/api/github/commits/route.js