Skip to content

mna11/contribution-city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Contribution City

Contribution City

English | 한국어


Overview

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!


Building Types

Commits Building Preview
0 No building -
1-3 Lantern (Xsmall.svg) Xsmall
4-6 Blue House (Small.svg) Small
7-9 Mansion (Middle.svg) Middle
10+ Red Tower (Big.svg) Big

Setup

Step 1. Create Repository

  • Fork this repository.

Step 2. Create Personal Access Token

  1. GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
  2. Generate new token with repo scope
  3. Add the token to repository Secrets as PAT_TOKEN

Step 3. Run Workflow

  1. Actions → Generate Contribution City → Run workflow
  2. After completion, add to your README.md:
![Contribution City](https://raw.githubusercontent.com/{{USERNAME}}/{{REPO_NAME}}/main/contribution-city.svg)

Replace {{USERNAME}} and {{REPO_NAME}} with your GitHub username and repository name.

Project Structure

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

Environment Variables

Variable Required Description
PAT_TOKEN Yes Access token
GITHUB_USERNAME Yes Target GitHub username

Acknowledgements

This project was heavily inspired by github-profile-3d-contrib by yoshi389111.

License

MIT License

Font

About

Generates an isometric 3D city based on your GitHub commits from the last 7 days

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •