How ritesh5585/slatex... works
Slatex turns a GitHub username or repository input into profile, repository, or comparison dashboards. The main flow runs through server-rendered pages and GitHub services; services cache results, rate-limit cache misses, and call GitHub from the server. The product also includes open-source project discovery. Edges use README statements or indexed source references; several service and recommendation internals were not sampled, so those links are limited to documented relationships.
Main entry points: cache.ts Redis cache · github GitHub API routes · page.tsx Repository dashboard · compare.ts Comparison service
Components 24
Dashboard experience
- Search landing
app/page.tsx - Profile dashboard
app/profiles/page.tsx - Profile views
app/profiles/commits/page.tsx - Repository dashboard
app/repo/page.tsx - Developer comparison
app/compare/page.tsx - Profile visualizations
components/user - Repository visualizations
components/repo - Comparison charts
components/compare
GitHub data
- GitHub API routes
app/api/github - Profile services
lib/api/github/services/profile-bundle.ts - Repository services
lib/api/github/services/repo-bundle.ts - Commit services
lib/api/github/services/commits.ts - Contribution services
lib/api/github/services/contributions.ts - Comparison service
lib/api/github/services/compare.ts - GraphQL documents
lib/api/github/queries
Project discovery
- Discovery pages
app/find - Project recommendations
lib/api/opensource/recommend.ts - Recommendation results
components/find/FindProjectsResults.tsx
Data runtime
- Redis cache
lib/cache.ts - Request limiter
lib/rate-limiter.ts - GraphQL client
lib/api/github/client.ts
Other components
- Visitor
- GitHub API
- Upstash Redis
Connections 31
- Visitor → Search landing: enters
README.md - Visitor → Profile dashboard: searches
README.md - Visitor → Repository dashboard: searches
README.md - Visitor → Developer comparison: compares
README.md - Search landing → Profile dashboard: routes user
README.md - Search landing → Repository dashboard: routes repo
README.md - Profile dashboard → Profile services: loads bundle
app/profiles/page.tsx - Profile dashboard → Profile visualizations: renders
app/profiles/page.tsx - Profile views → Profile visualizations: renders
app/profiles/commits/page.tsx - Repository dashboard → Repository services: loads bundle
app/repo/page.tsx - Repository dashboard → Commit services: loads history
app/repo/page.tsx - Repository dashboard → Repository visualizations: renders
app/repo/page.tsx - Developer comparison → Comparison service: loads comparison
app/compare/page.tsx - Developer comparison → Comparison charts: renders
app/compare/page.tsx - GitHub API routes → Comparison service: dispatches
app/api/github/compare/route.ts - GitHub API routes → Profile services: dispatches
app/api/github/user/[username]/route.ts - GitHub API routes → Repository services: dispatches
app/api/github/repo/[owner]/[name]/route.ts - GitHub API routes → Commit services: dispatches
app/api/github/repo/[owner]/[name]/commits/route.ts - GitHub API routes → Contribution services: dispatches
app/api/github/user/[username]/contributions/route.ts - Profile services → Redis cache: caches results
README.md - Repository services → Redis cache: caches results
README.md - Commit services → Redis cache: caches results
README.md - Contribution services → Redis cache: caches results
README.md - Comparison service → Redis cache: caches results
lib/api/github/services/compare.ts - Comparison service → Request limiter: limits misses
lib/api/github/services/compare.ts - Comparison service → GraphQL client: queries
lib/api/github/services/compare.ts - GraphQL client → GitHub API: sends GraphQL
lib/api/github/client.ts - Redis cache → Upstash Redis: reads and writes
README.md - Discovery pages → Project recommendations: requests projects
app/find/[username]/page.tsx - Discovery pages → Recommendation results: renders results
app/find/[username]/page.tsx - Recommendation results → Project recommendations: uses results
app/find/[username]/page.tsx