How luckydenki/gitshboard works
Gitshboard is a GitHub-connected dashboard that turns account and repository data into profile views, activity and technology analyses, project-health insights, and embeddable SVG summaries. Users browse the frontend, search public accounts or authenticate with GitHub, then request dashboard data; backend routes and controllers serve those requests, with services coordinating GitHub access and persistence. The README documents several product capabilities whose detailed frontend wiring was not sampled, so those links are shown only where supported or documented.
Main entry points: app.ts REST application · repo.services.ts Repository analysis · routes.ts Application routes · auth.services.ts Authentication service
Components 32
Frontend experience
- Application routes
frontend/app/routes.ts - Home and search
frontend/app/components/page/home/SearchBar.tsx - User dashboard
frontend/app/components/page/user-dashboard/UserDashboardLayout.tsx - Repository dashboard
frontend/app/routes/repo-dashboard.tsx - Community page
frontend/app/components/page/community/CommunityMain.tsx
API and identity
- REST application
backend/src/app.ts - Authentication routes
backend/src/routes/auth.routes.ts - OAuth controller
backend/src/controllers/auth.controllers.ts - Authentication service
backend/src/services/auth.services.ts - JWT middleware
backend/src/middlewares/auth.middleware.ts - User routes
backend/src/routes/user.routes.ts - GitHub user client
backend/src/client/user.client.ts - OAuth token client
backend/src/client/auth.client.ts
GitHub analysis
- Repository routes
backend/src/routes/repo.routes.ts - Repository controller
backend/src/controllers/repo.controllers.ts - Repository analysis
backend/src/services/repo.services.ts - GitHub repository client
backend/src/client/repo.client.ts - Search routes
backend/src/routes/search.routes.ts - Search service
backend/src/services/search.services.ts - GitHub search client
backend/src/client/search.client.ts - Contribution routes
backend/src/routes/contribute.routes.ts - Contribution analysis
backend/src/services/contribution.services.ts - README image routes
backend/src/routes/readme.routes.ts - README image controller
backend/src/controllers/readme.controllers.ts - SVG generation service
backend/src/services/readme.services.ts - SVG chart renderers
backend/src/render/RenderCommitActivitySVG.tsx
Persistence and cache
- User repository
backend/src/repository/user.repository.ts - PostgreSQL
- Redis repository
backend/src/repository/redis.repository.ts - Redis client
backend/src/infra/redis/redisClient.ts
Other components
- Dashboard visitor
- GitHub API
Connections 42
- Dashboard visitor → Application routes: browses
- Application routes → Home and search: routes to
- Application routes → User dashboard: routes to
- Application routes → Repository dashboard: routes to
- Application routes → Community page: routes to
- Application routes → REST application: requests API
- REST application → Authentication routes: mounts
backend/src/app.ts - REST application → User routes: mounts
backend/src/app.ts - REST application → Repository routes: mounts
backend/src/app.ts - REST application → Search routes: mounts
backend/src/app.ts - REST application → Contribution routes: mounts
backend/src/app.ts - REST application → README image routes: mounts
backend/src/app.ts - Authentication routes → OAuth controller: dispatches
backend/src/routes/auth.routes.ts - OAuth controller → Authentication service: calls
backend/src/controllers/auth.controllers.ts - Authentication service → OAuth token client: requests token
backend/src/services/auth.services.ts - Authentication service → GitHub user client: fetches profile
backend/src/services/auth.services.ts - Authentication service → User repository: upserts account
backend/src/services/auth.services.ts - Authentication service → GitHub API: authenticates
- User repository → PostgreSQL: persists identity
- User routes → JWT middleware: authenticates
backend/src/routes/user.routes.ts - User routes → GitHub API: fetches account data
backend/src/routes/user.routes.ts - Repository routes → JWT middleware: authenticates
backend/src/routes/repo.routes.ts - Repository routes → Repository controller: dispatches
backend/src/routes/repo.routes.ts - Repository controller → Repository analysis: requests analyses
backend/src/controllers/repo.controllers.ts - Repository analysis → GitHub repository client: loads repository data
backend/src/services/repo.services.ts - GitHub repository client → GitHub API: queries
- Search routes → Search service: dispatches
backend/src/routes/search.routes.ts - Search service → GitHub search client: searches
backend/src/services/search.services.ts - GitHub search client → GitHub API: searches accounts
backend/src/client/search.client.ts - Contribution routes → JWT middleware: authenticates
backend/src/routes/contribute.routes.ts - Contribution routes → Contribution analysis: serves contributions
- README image routes → README image controller: dispatches
backend/src/routes/readme.routes.ts - README image controller → SVG generation service: requests SVG
backend/src/controllers/readme.controllers.ts - SVG generation service → SVG chart renderers: renders charts
backend/src/services/readme.services.ts - SVG generation service → Repository analysis: reuses statistics
backend/src/services/readme.services.ts - SVG generation service → Contribution analysis: uses activity data
backend/src/services/readme.services.ts - Repository analysis → Redis repository: reads and writes cache
backend/src/services/repo.services.ts - Redis repository → Redis client: operates cache
backend/src/repository/redis.repository.ts - REST application → Redis client: connects
backend/src/app.ts - Repository analysis → GitHub API: analyzes GitHub data
- User dashboard → Repository analysis: shows profile insights
- Repository dashboard → Repository analysis: shows project insights