This project generates an isometric 3D city based on your GitHub commits from the last 7 days. Each building represents a day's commits — the more commits, the bigger the building!
| Commits | Building | Preview |
|---|---|---|
| 0 | No building | - |
| 1-3 | Lantern (Xsmall.svg) | |
| 4-6 | Blue House (Small.svg) | |
| 7-9 | Mansion (Middle.svg) | |
| 10+ | Red Tower (Big.svg) |
- Fork this repository.
- GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
- Generate new token with
reposcope - Add the token to repository Secrets as
PAT_TOKEN
- Actions → Generate Contribution City → Run workflow
- After completion, add to your README.md:
Replace
{{USERNAME}}and{{REPO_NAME}}with your GitHub username and repository name.
your-repo/
├── .github/
│ └── workflows/
│ └── generate-city.yml
├── assets/
│ ├── font/
│ │ └── Galmuri11.ttf
│ ├── Base.svg
│ ├── Xsmall.svg, Small.svg, Middle.svg, Big.svg
│ ├── MON.svg ~ SUN.svg
│ └── 0.svg ~ 9.svg
├── generate-city.js
└── README.md
| Variable | Required | Description |
|---|---|---|
PAT_TOKEN |
Yes | Access token |
GITHUB_USERNAME |
Yes | Target GitHub username |
This project was heavily inspired by github-profile-3d-contrib by yoshi389111.
MIT License
- Galmuri11 by quiple