A simple React app that lets you search any GitHub username and instantly view their public profile — avatar, name, bio, repo count, and followers.
🔗 Live Demo: github-profile-finder-subham.netlify.app
- 🔍 Search any GitHub username and fetch live profile data
- 🖼️ Displays avatar, name, bio, public repo count, and follower count
- ⏳ Loading state while the request is in flight
- 🚫 Graceful error handling for invalid/non-existent usernames
- 🎨 Clean, centered, minimal UI with a custom gradient theme
- React (functional components + hooks)
- Vite for fast dev/build tooling
- GitHub REST API (
/users/:usernameendpoint) - Plain CSS for styling
- Netlify for deployment
The app uses the useState hook to manage the search input, profile data, loading state, and error state. On search, it calls:
https://api.github.com/users/{username}
If GitHub returns a Not Found message (invalid username), the app sets an error state and displays a friendly "User Not Found" message instead of broken data.
Clone the repo and run it locally:
git clone https://github.com/Subham269/github-profile-finder.git
cd github-profile-finder
npm install
npm run devBuild for production:
npm run build
This project was built as a hands-on way to practice:
- Fetching and handling data from a public API
- Managing multiple pieces of related state (
profile,loading,invalid) - Conditional rendering based on request state
- Debugging real CSS layout issues (flexbox direction, background rendering, class vs. id selectors)
- Add a debounce on search input
- Show top pinned repositories
- Add dark/light theme toggle
- Improve mobile responsiveness
Made by Subham Saha — follow the build journey on YouTube and LinkedIn.