/GitHub-Profiles

A responsive web application that allows users to search and view public GitHub profiles and repositories using the GitHub REST API. Built with **HTML, CSS, and JavaScript**, and powered by **Axios**, it delivers a simple yet elegant interface to explore GitHub data in real-time.

Primary LanguageJavaScript

πŸ‘€ GitHub Profile Finder

GitHub Profile Finder Screenshot

A sleek, responsive web app that fetches and displays any GitHub user’s profile and repositories using the GitHub API.

🌐 Live Demo | ✨ Features | πŸ› οΈ Tech Stack | πŸš€ Getting Started | πŸ“Έ Screenshots | πŸ“„ License


πŸ“Œ About the Project

The GitHub Profile Finder is a modern and minimal web app that allows users to search for any GitHub profile and get real-time data like avatar, bio, number of followers, public repositories, and the most recently created repos.

This project is ideal for learning how to work with APIs, manage asynchronous requests, and build responsive UI layouts using only HTML, CSS, and JavaScript (no frameworks).


✨ Features

βœ”οΈ Search any GitHub user by username
βœ”οΈ View profile avatar, name, bio, and stats
βœ”οΈ Displays followers, following, and repo count
βœ”οΈ Shows 5 most recently created repositories
βœ”οΈ Error handling for invalid usernames
βœ”οΈ Fully responsive layout for desktop and mobile
βœ”οΈ Built with no external UI libraries or frameworks


πŸ–ΌοΈ Demo Preview

πŸ”— Live Demo: Click here to try the app now!

GitHub Profiles in Action


πŸ› οΈ Tech Stack

Technology Description
HTML5 Markup for the structure
CSS3 Styling and responsive design
JavaScript (ES6) App logic, API calls, and DOM updates
Axios For making HTTP requests to GitHub API
GitHub API Source for profile and repo data

πŸ§ͺ How to Use

  1. Open the app in your browser: πŸ”— https://garimaakashyap.github.io/GitHub-Profiles/

  2. Enter any GitHub username in the search field (e.g., torvalds, gaearon, or your own username).

  3. Hit Enter or submit the form.

  4. The app will:

βœ”οΈ Fetch the user's public data from GitHub

βœ”οΈ Display their avatar, bio, and key statistics

βœ”οΈ List the 5 most recently created public repositories

  1. If the user does not exist, an elegant error card will be shown.

🧠 Behind the Scenes (Technical Details)

πŸ”— API Integration The app uses the GitHub REST API to fetch user data:

GET https://api.github.com/users/{garimaakashyap}

GET https://api.github.com/users/{garimaakashyap}/repos?sort=created

πŸ“¦ Axios for Requests

Instead of fetch(), this project uses Axios for:

Simpler syntax

Better error handling

Cleaner async/await patterns

🧩 Dynamic HTML Generation

DOM elements like the user card and repository links are dynamically created using template literals and JavaScript DOM methods.

πŸ“΅ Error Handling

If the user is not found (404), an error card is displayed.

If repository fetching fails, an error message is shown.


πŸ“± Responsive Design

Uses media queries for devices below 500px

Input and card components adapt for smaller screen sizes

Layout becomes vertical for better mobile readability


✨ Visual Aesthetics

Modern pink color palette (#f7bdd0, #ee9bb7)

Soothing shadows and rounded cards

Custom GitHub-inspired card layout

Use of Poppins font for a clean look


πŸš€ Getting Started

Follow these steps to run the project locally:

πŸ“ Clone the Repository

git clone https://github.com/garimaakashyap/GitHub-Profiles.git
cd github-profile-finder

Contact