Live Demo: https://github-search-two-xi.vercel.app/
A small React + TypeScript app for searching GitHub users from the browser with the public GitHub Search API.
- Searches GitHub users by username or keyword
- Renders matching users in a simple result list
- Links each result directly to the user profile on GitHub
- Shows loading and error states during API requests
- Uses a responsive centered layout with Tailwind CSS 4
- React 19
- TypeScript
- Vite 8
- Tailwind CSS 4 via
@tailwindcss/vite - GitHub REST Search API
- Node.js 20+ recommended
- npm
npm installnpm run devVite will print the local URL, usually http://localhost:5173.
npm run dev
npm run build
npm run preview
npm run lintdev: starts the Vite development serverbuild: runs TypeScript project builds, then creates a production bundlepreview: serves the production build locallylint: runs ESLint across the project
Search requests are sent directly from the client to:
https://api.github.com/search/users?q=<query>
This project does not currently configure GitHub authentication, so it uses the unauthenticated public API rate limits.
src/
components/
hooks/
types/
App.tsx
main.tsx
- Search is currently triggered by form submission
- Results show basic user data from the search response
- The repository includes placeholder files for additional components that are not yet wired into the app