A full-stack web application that analyzes and displays GitHub profile information using React.js on the frontend and FastAPI on the backend.
👉 Open GitHub Profile Analyzer
GitHub Profile Analyzer allows users to enter a GitHub username and explore important information about that GitHub profile through a clean and responsive dashboard.
The frontend is built with React.js, while FastAPI handles the backend API and communication with the GitHub API.
The project was also deployed separately:
- 🎨 Frontend → Vercel
- ⚡ Backend → Render
- 🔎 Search GitHub users by username
- 👤 Display GitHub profile information
- 🖼️ Display profile avatar
- 👥 Followers and following information
- 📦 Repository information
- 💻 Programming language statistics
- 🔗 Direct GitHub profile access
- 📱 Responsive UI
- ⚡ React frontend with FastAPI backend
- 🌐 Production deployment
- React.js
- JavaScript
- Vite
- React Router
- Axios / Fetch API
- CSS
- Python
- FastAPI
- Pydantic
- GitHub API
- CORS Middleware
- Vercel — Frontend
- Render — Backend
github_profile_analyzer/
│
├── backend/
│ ├── main.py
│ ├── ...
│ └── requirements.txt
│
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── api/
│ │ └── ...
│ │
│ ├── public/
│ ├── package.json
│ └── vite.config.js
│
└── README.md
User enters GitHub username
↓
React.js
↓
FastAPI Backend
↓
GitHub API
↓
GitHub User Data
↓
React Dashboard
This project was not just about building the UI and API. I also faced several real-world development and deployment problems.
The application worked correctly during local development, but after deploying the frontend and backend separately, browser requests were blocked because of CORS.
I had to configure FastAPI's CORSMiddleware to allow requests from the deployed Vercel frontend.
app.add_middleware(
CORSMiddleware,
allow_origins=[
"https://github-profile-analyzer-five-pied.vercel.app"
],
allow_credentials=False,
allow_methods=["*"],
allow_headers=["*"],
)This helped me understand the difference between local development origins and production origins.
Another interesting problem appeared after deployment.
Navigation to:
/profile
worked normally inside the application.
However, refreshing the /profile page produced:
404: NOT_FOUND
The reason was that React Router handles /profile on the client side, while Vercel initially tried to find /profile as a server-side resource.
This taught me about SPA routing and server-side rewrites.
Initially, profile information was passed using React Router's navigation state.
navigate('/profile', {
state: user
})This worked during navigation, but the state could disappear after a full page refresh.
The better approach is to use a dynamic route:
/profile/:username
and retrieve the username using:
const { username } = useParams()The application can then fetch the profile data again from the backend.
This makes the profile URL more reliable and shareable.
During development, I also encountered several Git and deployment-related problems, including:
- Incorrect file paths while using
git add - Uncommitted changes
- Pull/rebase issues
- Keeping local and remote branches synchronized
- Backend deployment configuration
- Frontend/backend production URL configuration
These problems helped me understand that deployment is a major part of full-stack development, not just an afterthought.
Through this project, I gained practical experience with:
- React.js
- React Router
- Dynamic routes
useParams()- React state management
- FastAPI
- REST APIs
- GitHub API integration
- CORS
- Frontend ↔ Backend communication
- Error handling
- Vercel deployment
- Render deployment
- Git and GitHub workflows
- Debugging production issues
Some features I would like to add in future versions:
- 📊 More advanced GitHub analytics
- 📈 Contribution graph analysis
- ⭐ Repository popularity analysis
- 🏆 GitHub achievement/metrics section
- 📉 Repository activity charts
- 🔥 Most-used technologies
- 📅 Contribution activity timeline
- 🤖 AI-powered profile analysis
- 📄 Export profile analysis as PDF
- 🔐 GitHub OAuth authentication
- ⚡ Better caching and API performance
I built this project to improve my practical understanding of full-stack development with React.js and FastAPI.
More importantly, I wanted to experience the complete development lifecycle:
Planning
↓
Development
↓
API Integration
↓
Frontend Integration
↓
Debugging
↓
Git/GitHub
↓
Deployment
↓
Production Debugging
The bugs I encountered during deployment were actually some of the most valuable parts of the project because they forced me to understand how the application works beyond the local development environment.
| Resource | Link |
|---|---|
| 🚀 Live Application | GitHub Profile Analyzer |
| 💻 Source Code | GitHub Repository |
If you find this project useful or have suggestions for improvement, feel free to check out the repository and share your feedback.
Built with React.js + FastAPI + GitHub API 🚀
