Skip to content

smart-developer1791/preact-github-repo-analyzer

Repository files navigation

✦ Preact GitHub Repo Analyzer

A lightweight, high-performance web tool to analyze public GitHub repositories, built entirely with Preact.

Preact TypeScript GitHub API Vite Vercel

Deploy with Vercel


✨ Highlights

  • Direct API Integration: Queries the public GitHub REST API directly from the client.
  • Deep Insights: Displays key statistics such as stars, forks, open issues, and primary languages.
  • Extreme Lightweight: Built with Preact to ensure maximum performance and minimal bundle size.
  • Responsive Design: A polished UI built with Tailwind CSS 4 that looks great on mobile and desktop.

🧱 Project Structure

src/
|-- main.tsx           # Entry point
`-- app.tsx            # Main application logic and UI components

🛠️ Tech Stack

  • Preact 10 with Vite 6
  • GitHub REST API
  • Tailwind CSS 4 for styling
  • lucide-preact for iconography

🚀 Local Development

npm install
npm run dev

Open http://localhost:5173.

🔌 Extension Notes & Nuances

  • API Rate Limits: The app uses unauthenticated requests to the GitHub API, which are limited to 60 requests per hour per IP. For extended use or a production deployment, consider adding a feature to provide a Personal Access Token (PAT).
  • Responsive UI: The application uses modern CSS Grid and Flexbox layouts through Tailwind CSS to adapt perfectly to all screen sizes.

🧪 Build & Checks

npm run build
npm run preview

🌐 Vercel Deployment

The repository includes a highly optimized vercel.json for Vite static deployment.

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "framework": "vite",
  "buildCommand": "npm run build",
  "outputDirectory": "dist",
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

📄 License

MIT License. See LICENSE.

About

✦ A high-performance web tool built with Preact to analyze and display key statistics of public GitHub repositories using the GitHub REST API.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors