npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

github-contrib-chart

v0.1.0

Published

A npm package that shows our github contribution chart . Showing the organisation that we have contributed.

Readme

🟩 GitHub Contributions Viewer (Next.js + Tailwind CSS)

This is a simple GitHub Contributions Viewer built with Next.js and Tailwind CSS. It fetches and displays a GitHub user's contribution graph by scraping the raw contribution calendar HTML and rendering it on your site.


🎯 What You’re Achieving

You are building a fully client-rendered app that:

  • Takes a GitHub username via URL query (e.g. ?username=vagabond-0)
  • Fetches the user’s GitHub contribution graph (HTML table embedded in their profile)
  • Parses and injects it directly into your UI
  • Styles the table with Tailwind CSS to make it visually appealing

This can be used for:

  • Developer portfolios
  • GitHub visualizers
  • Open-source dashboards

🛠 Tech Stack

  • Next.js – React framework
  • Tailwind CSS – Utility-first CSS framework
  • HTML Parsing – Built-in fetch and basic parsing (no Axios or Cheerio)

🚀 Getting Started

1. Clone the repository

git clone https://github.com/your-username/github-contrib.git
cd github-contrib

2. Install dependencies

npm install

3. Run the development server

npm run dev

4. Open the application

Visit:

http://localhost:3000/?username=YOUR_GITHUB_USERNAME

Example:

http://localhost:3000/?username=vagabond-0

🧠 How It Works

  1. Client loads the app with a GitHub username from the query.
  2. The useEffect() hook fetches the raw GitHub contribution page:
    https://github.com/users/USERNAME/contributions
  3. The HTML is extracted and rendered using dangerouslySetInnerHTML.
  4. Tailwind styles are applied to make it responsive and neat.

🖼️ Screenshot

Insert a screenshot of your app displaying a contribution graph here.


📁 Folder Structure

/pages
  └── index.js            → Main page with fetch and render logic
/public
/styles
  └── globals.css         → Tailwind CSS global styles
/tailwind.config.js       → Tailwind config

✅ Customization Ideas

  • Add dark mode or contribution color themes
  • Add a text input to type username instead of URL query
  • Export contribution calendar as PNG/SVG
  • Add hover effects to squares

📄 License

This project is licensed under the MIT License.


✨ Credits

Inspired by GitHub's contribution calendar and built with ❤️ using Next.js and Tailwind CSS.