Skip to content

Repository files navigation

GitHub Profile Finder

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

React Vite Netlify

✨ Features

  • 🔍 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

🛠️ Built With

  • React (functional components + hooks)
  • Vite for fast dev/build tooling
  • GitHub REST API (/users/:username endpoint)
  • Plain CSS for styling
  • Netlify for deployment

⚙️ How It Works

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.

🚀 Getting Started

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 dev

Build for production:

npm run build

📸 Preview

Screenshot 2026-07-13 180658

📚 What I Learned

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)

🔮 Future Improvements

  • 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages