How neharoy3/github-card-generator works
GitHub Card Generator accepts a username, gathers public GitHub profile and repository data, analyzes it, and dynamically returns a themed HTML card without storing it. The API first tries its ADK agent pipeline and falls back to direct card building if that fails; the card URL is served separately. The README documents browser preview and URL-copy features, but the frontend source was not sampled, so those links are documented at a high level. Relationships within the backend are supported by excerpts; frontend behavior and integrations are limited to README evidence.
Main entry points: main.py FastAPI routes · agent.py Card agent · index.html Card interface · mcp_server.py Profile fetch
Components 12
Browser interface
- Card interface
frontend/index.html
API and orchestration
- FastAPI routes
backend/main.py - ADK runner
backend/main.py - Card agent
backend/agent.py
Card generation
- MCP tools
backend/mcp_server.py - Profile fetch
backend/mcp_server.py - Profile analysis
backend/mcp_server.py - HTML rendering
backend/mcp_server.py
Other components
- Username visitor
- GitHub API
- Gemini API
- Card browser
Connections 16
- Username visitor → Card interface: enters username
README.md - Card interface → FastAPI routes: requests generation
README.md - FastAPI routes → ADK runner: runs agent
backend/main.py - ADK runner → Card agent: dispatches
backend/main.py - Card agent → MCP tools: uses toolset
backend/agent.py - Card agent → Profile fetch: requests scrape
backend/agent.py - Card agent → Profile analysis: requests analysis
backend/agent.py - Card agent → HTML rendering: requests rendering
backend/agent.py - Profile fetch → GitHub API: fetches profile and repos
backend/mcp_server.py - Profile analysis → Gemini API: analyzes profile
backend/mcp_server.py - FastAPI routes → Profile fetch: fallback builds card
backend/main.py - FastAPI routes → Profile analysis: fallback builds card
backend/main.py - FastAPI routes → HTML rendering: fallback builds card
backend/main.py - FastAPI routes → HTML rendering: serves card HTML
backend/main.py - FastAPI routes → Card interface: returns card URL
README.md - Card interface → Card browser: previews card
README.md