How mario-pv/git-overview works
git-overview is a Next.js app for generating shareable GitHub profile dashboards and exploring repositories, developers, rankings, and trends. The main profile flow resolves a username, fetches and enriches GitHub data, then renders a selectable portfolio template; separate routes serve rankings, trending results, view counts, and OpenGraph previews. The README also documents image/PDF export, QR sharing, and a 3D Dev Globe. Some of those implementations were not excerpted, so their links are marked unverified rather than inferred as confirmed calls.
Main entry points: [username]/page.tsx Profile route · storage.ts Redis or memory cache · github.ts GitHub profile fetch · rankings/page.tsx Rankings page
Components 34
Profile dashboards
- Profile route
src/app/[username]/page.tsx - Profile view
src/components/portfolio/ProfileView.tsx - GitHub template
src/components/templates/TemplateGitHub.tsx - Project template
src/components/templates/TemplateProjectFocused.tsx - Contribution activity
src/components/portfolio/ContributionGraph.tsx - External contributions
src/components/portfolio/ExternalContributions.tsx - Project cards
src/components/portfolio/ProjectCard.tsx - Repository languages
src/components/portfolio/RepoLanguageBar.tsx
Discovery and rankings
- Explore route
src/app/explore/page.tsx - Notable repositories
src/components/explore/NotableReposExplorer.tsx - Rankings page
src/app/explore/rankings/page.tsx - Repository rankings
src/components/explore/ReposTable.tsx - Developer rankings
src/components/explore/UsersTable.tsx - Trending page
src/app/trending/page.tsx - Trending results
src/components/explore/TrendingTable.tsx - Dev Globe page
src/app/explore/globe/page.tsx - Interactive Dev Globe
src/components/explore/DevGlobe.tsx
Data services
- Profile data model
src/lib/types/github.ts - GitHub profile fetch
src/lib/server/github.ts - Repository analysis
src/lib/server/repo-analyzer.ts - GitHub rate limits
src/lib/server/github-rate-limit.ts - Cache service
src/lib/server/cache/index.ts - Redis or memory cache
src/lib/server/cache/storage.ts - Rankings service
src/lib/server/rankings.ts - Rankings model
src/lib/types/rankings.ts - Trending service
src/lib/server/trending.ts - Trending model
src/lib/types/trending.ts - Globe data service
src/lib/server/globe.ts - Location geocoding
src/lib/server/geo/geocode.ts - Country centroids
src/lib/server/geo/country-centroids.ts
Sharing and presentation
- Portfolio export
src/lib/utils/export-portfolio.ts
Other components
- Profile visitor
- Redis
- GitHub API
Connections 39
- Profile visitor → Profile route: opens profile
src/app/[username]/page.tsx - Profile route → GitHub profile fetch: fetches profile
src/app/[username]/page.tsx - Profile route → Cache service: uses cache
src/app/[username]/page.tsx - Profile route → Profile view: renders
src/app/[username]/page.tsx - GitHub profile fetch → Repository analysis: enriches repositories
src/lib/server/github.ts - GitHub profile fetch → GitHub rate limits: updates limits
src/lib/server/github.ts - GitHub profile fetch → Redis or memory cache: reads cache
src/lib/server/github.ts - GitHub profile fetch → GitHub API: queries
- Repository analysis → Redis or memory cache: uses cache
src/lib/server/repo-analyzer.ts - Repository analysis → GitHub rate limits: checks limits
src/lib/server/repo-analyzer.ts - Cache service → Redis or memory cache: delegates storage
src/lib/server/cache/index.ts - Redis or memory cache → Redis: connects to
src/lib/server/cache/storage.ts - Profile view → GitHub template: selects template
- Profile view → Project template: selects template
- GitHub template → Contribution activity: renders activity
- GitHub template → Project cards: renders projects
- Project template → External contributions: renders contributions
src/components/templates/TemplateProjectFocused.tsx - Project template → Project cards: renders projects
src/components/templates/TemplateProjectFocused.tsx - Project template → Repository languages: renders languages
src/components/templates/TemplateProjectFocused.tsx - Project cards → Repository languages: renders languages
src/components/portfolio/ProjectCard.tsx - Profile route → Profile data model: uses profile type
src/app/[username]/page.tsx - Explore route → Notable repositories: renders
src/app/explore/page.tsx - Rankings page → Rankings service: loads rankings
src/app/explore/rankings/page.tsx - Rankings page → Repository rankings: renders repositories
src/app/explore/rankings/page.tsx - Rankings page → Developer rankings: renders developers
src/app/explore/rankings/page.tsx - Rankings service → Redis or memory cache: uses cache
src/lib/server/rankings.ts - Rankings page → Rankings model: uses types
src/app/explore/rankings/page.tsx - Trending page → Trending service: fetches results
src/app/trending/page.tsx - Trending page → Trending results: renders results
src/app/trending/page.tsx - Trending service → Rankings service: reuses rankings
src/lib/server/trending.ts - Trending service → Redis or memory cache: uses cache
src/lib/server/trending.ts - Trending page → Trending model: normalizes filters
src/app/trending/page.tsx - Trending page → Profile visitor: serves view
- Dev Globe page → Interactive Dev Globe: displays globe
- Interactive Dev Globe → Globe data service: loads globe data
- Globe data service → Location geocoding: geocodes locations
- Location geocoding → Country centroids: uses centroids
src/lib/server/geo/geocode.ts - Profile view → Portfolio export: exports profile
- Profile route → Profile visitor: serves preview