An open API service indexing awesome lists of open source software.

https://github.com/iryna-vyshniak/github-report

๐Ÿงพ Your GitHub contribution statement! View your open-source balance, commit history, and activity stats as a printed receipt. Earn more stars, fork projects, and level up your GitHub journey! ๐Ÿ’พโšก
https://github.com/iryna-vyshniak/github-report

html-to-image jsbarcode

Last synced: 10 months ago
JSON representation

๐Ÿงพ Your GitHub contribution statement! View your open-source balance, commit history, and activity stats as a printed receipt. Earn more stars, fork projects, and level up your GitHub journey! ๐Ÿ’พโšก

Awesome Lists containing this project

README

          

# ๐Ÿ“Š GitHub Report

GitHub Report is a **Next.js & React** app that generates a **printable GitHub contribution summary**. Using **GitHub API, html-to-image, and jsbarcode**, it creates a visually appealing report with key statistics such as repositories, stars, forks, and commits.

---

## ๐Ÿš€ Features

- ๐Ÿ”„ **Dynamic Data Fetching** โ€“ Retrieves user data from GitHub API.
- ๐Ÿท **Barcode Generation** โ€“ Encodes GitHub usernames into barcodes.
- ๐Ÿ–ผ **Export Options** โ€“ Save your report as an image or share it.
- ๐ŸŽจ **Styled as a Receipt** โ€“ Unique transaction-style contribution summary.
- โ™ฟ **Accessibility Optimizations** โ€“ Semantic HTML and ARIA attributes.
- ๐ŸŒ™ **Dark Mode Support** โ€“ Adapts to system theme.

---

## ๐Ÿ“ฆ Tech Stack

- **Next.js 15** โ€“ Server-side rendering & API routes.
- **React 19** โ€“ Component-based UI.
- **GitHub API** โ€“ Fetches user contribution stats.
- **html-to-image** โ€“ Converts reports to images.
- **jsbarcode** โ€“ Generates barcodes.
- **Tailwind CSS** โ€“ Responsive and modern styling.

---

## ๐Ÿ›  Installation

1. **Clone the repository**

```sh
git clone https://github.com/Iryna-Vyshniak/github-report.git
cd github-report
```

2. **Install dependencies**

```sh
npm install
```

_or_

```sh
yarn install
```

3. **Set up environment variables**

- Create a `.env.local` file and add the following:
`env
NEXT_PUBLIC_GITHUB_API=https://api.github.com/users/
NEXT_PUBLIC_REPOS_URL=https://api.github.com/repos/
NEXT_PUBLIC_COMMITS_URL=https://api.github.com/search/commits?q=author:
NEXT_PUBLIC_GITHUB_TOKEN=your token
`

4. **Run the development server**
```sh
npm run dev
```
_or_
```sh
yarn dev
```

---

## ๐Ÿ“ธ Screenshots

GitHub Report
GitHub Report
GitHub Report

---

## ๐Ÿ“œ Usage

1. Enter a **GitHub username**.
2. Click the **Print button** to generate the report.
3. View your **GitHub contribution summary**.
4. **Download** or **share** your report as an image.

---

## ๐Ÿ“Œ Roadmap

- [ ] Add **multi-language support** ๐ŸŒ
- [ ] Allow **custom styling** for receipts ๐ŸŽจ
- [ ] Improve **mobile responsiveness** ๐Ÿ“ฑ
- [ ] Implement **PDF export option** ๐Ÿ“

---

## ๐Ÿค Contributing

Contributions are welcome! ๐ŸŽ‰ If you'd like to improve the project:

1. **Fork the repo**
2. **Create a feature branch** (`git checkout -b feature-name`)
3. **Commit your changes** (`git commit -m 'Add some feature'`)
4. **Push to the branch** (`git push origin feature-name`)
5. **Open a Pull Request** ๐Ÿš€

---

## ๐Ÿ“œ License

MIT License ยฉ [Iryna-Vyshniak](https://github.com/Iryna-Vyshniak)

---

## ๐Ÿ’ก Inspiration

Inspired by the concept of **gamifying open-source contributions**, this project turns GitHub activity into a **receipt-style report** for a fun and interactive experience. ๐Ÿš€