Skip to content

Sumaiya-SE/DevLens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” DevLens β€” GitHub Profile Viewer

A sleek Next.js app to search and explore GitHub profiles in real-time β€” featuring live autocomplete suggestions, full repository browsing, and language statistics.

Next.js React GitHub API


✨ Features

  • πŸ” Live Autocomplete β€” Type a username and see matching GitHub profiles appear instantly. Click to view any profile in one click.
  • πŸ“š Full Repository List β€” View every single public repository a user has, with progressive "Load More" loading (not the repo code)
  • πŸ’» Language Statistics β€” See the top programming languages used across all repositories.
  • 🎨 Animated UI β€” Smooth hover effects, fade-in animations, shimmer transitions, and a beautiful gradient theme.
  • πŸ“± Fully Responsive β€” Works seamlessly on desktop, tablet, and mobile.

πŸš€ Getting Started

Prerequisites

Installation

# 1. Clone the repository
git clone https://github.com/Sumaiya-SE/Devlens.git

# 2. Navigate into the project
cd devlens

# Make sure You have Node.js downloaded then,

# 3. Install dependencies
npm install

# 4. Start the development server
npm run dev

Then open http://localhost:3000 in your browser.


πŸ› οΈ Tech Stack

Technology Purpose
Next.js 14 React framework with App Router
React 18 Component-based UI
GitHub REST API Fetching user and repository data
CSS3 Animations, gradients, responsive layout

πŸ“ Project Structure

Devlens/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ layout.js          # Root layout
β”‚   β”œβ”€β”€ page.js            # Main page & search logic
β”‚   └── globals.css        # Global styles & animations
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ SearchBar.js       # Search input with autocomplete dropdown
β”‚   β”œβ”€β”€ UserProfile.js     # Profile card (avatar, bio, stats)
β”‚   β”œβ”€β”€ RepoCard.js        # Individual repository card
β”‚   └── LanguageStats.js   # Language breakdown display
└── package.json


πŸ”‘ API Usage

This project uses the public GitHub REST API β€” no API key required.

Endpoint Used For
/search/users?q={query} Live autocomplete suggestions
/users/{username} Fetching user profile data
/users/{username}/repos Fetching all repositories

Rate Limit: GitHub allows 60 requests/hour for unauthenticated users, which is plenty for personal use.


πŸ’‘ What I Learned

  • Setting up a Next.js 14 project with the App Router
  • Using React hooks (useState, useEffect, useRef)
  • Fetching data from a public REST API
  • Building reusable components in React
  • Implementing debouncing for search performance

πŸ‘€ Author


⭐ If you found this useful, consider giving it a star and connect me through LinkedIn!

About

πŸ” A sleek Next.js app to search and explore GitHub profiles in real-time β€” featuring live autocomplete suggestions, full repository browsing, and language statistics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors