https://github.com/siiddhantt/githitbox
A fast, reusable GitHub profile hit counter that generates beautiful badge images
https://github.com/siiddhantt/githitbox
badge badge-generator dynamic-badges fastapi github-profile github-readme github-readme-stats github-stats hit-counter profile-counter python readme-stats
Last synced: 3 months ago
JSON representation
A fast, reusable GitHub profile hit counter that generates beautiful badge images
- Host: GitHub
- URL: https://github.com/siiddhantt/githitbox
- Owner: siiddhantt
- Created: 2025-08-14T18:06:20.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-09-18T13:36:08.000Z (4 months ago)
- Last Synced: 2025-09-18T15:55:07.687Z (4 months ago)
- Topics: badge, badge-generator, dynamic-badges, fastapi, github-profile, github-readme, github-readme-stats, github-stats, hit-counter, profile-counter, python, readme-stats
- Language: Python
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎯 GitHitBox
*A fast, reusable GitHub profile hit counter that generates beautiful badge images*
[](https://python.org)
[](https://fastapi.tiangolo.com)
[](https://opensource.org/licenses/MIT)
## 🚀 Features
- **🌍 Universal**: Works for any GitHub username
- **🎨 4 Badge Styles**: flat, plastic, counter, for-the-badge
- **⚡ Fast**: Built with FastAPI
- **💾 Persistent**: Database storage (SQLite/PostgreSQL)
- **🚀 Easy to Deploy**: Works on any hosting platform
## 📖 Usage
Add to your GitHub profile README:
```markdown

```
**Styles Available:**
| Style | Example |
|-------|---------|
| Flat (default) |  |
| Plastic |  |
| Counter |  |
| For-the-badge |  |
> 💡 **Tip**: Add `?v=2` to bypass GitHub's image cache
## 🛠️ Local Development
```bash
git clone https://github.com/siiddhantt/githitbox
cd githitbox
pip install -r requirements.txt
python main.py
```
Visit `http://localhost:3001/docs` for API documentation.
## 🔌 API Endpoints
- `GET /badge/{username}?style={style}` - Badge image
- `GET /count/{username}` - JSON hit count
- `GET /stats` - Global statistics
- `GET /health` - Health check
## ⚙️ Configuration
**Environment Variables:**
- `DATABASE_URL` - Database connection (defaults to SQLite)
**Badge Styles:**
- `flat` - Clean, modern (default)
- `plastic` - Rounded, glossy
- `counter` - Digital display with dark theme
- `for-the-badge` - Bold, rectangular
## 📝 License
MIT License - free to use for your projects!
---
⭐ **Star this repo if you find it useful!**
[](https://github.com/siiddhantt/githitbox/stargazers)