Skip to content

About

drawing github contribution

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-word-art

Draw a word into a GitHub contribution graph, for any year.

It works by generating a local git repo full of empty, backdated commits positioned as pixels in a 5x7 font, one column per week / one row per day — the same grid GitHub uses to render your contribution graph. Push it to a public repo and the word shows up on your profile.

Preview for 'WTF' in 2026 (42 active days):

..................#...#.#####.#####..................
..................#...#...#...#......................
..................#...#...#...#......................
..................#.#.#...#...####...................
..................#.#.#...#...#......................
..................#.#.#...#...#......................
...................#.#....#...#......................

Setup

Installs git, python3, and gh (GitHub CLI) — needed for auto-push/delete.

macOS / Linux:

./setup.sh
gh auth login

Windows (PowerShell):

.\setup.ps1
gh auth login

Once gh auth login is done, the script auto-detects your GitHub name and uses your account's noreply email (<id>+<login>@users.noreply.github.com) for commits — no need to pass --name/--email yourself, and your real email stays private.

Usage

Preview only, no repo created:

python3 github_word_art.py --word WTF --year 2026 --dry-run

Generate the local repo (commits, no push):

python3 github_word_art.py --word WTF --year 2026

Generate and push straight to a new public GitHub repo (asks for confirmation before creating/pushing anything):

python3 github_word_art.py --word WTF --year 2026 --push

Remove it later — deletes the GitHub repo and the local directory (asks for confirmation first):

python3 github_word_art.py --word WTF --year 2026 --delete

Options

Flag Description
--word Word to draw. Letters, digits, space, - . !
--year Target year, e.g. 2026
--push Create a public repo via gh and push, after confirmation
--delete Delete the repo (GitHub + local) for this word/year, after confirmation
--dry-run Only print the ASCII preview
--intensity Commits per lit day, 1 (light green) to 4 (dark green). Default 3
--name, --email Override the auto-detected git identity
--repo-name Override the auto-suggested repo name
--out Output directory for the local repo
--force Reuse a non-empty output directory

Notes

  • The repo must be public and on its default branch for commits to count — --push handles both automatically.
  • The commit email must match a verified email on your GitHub account, or the contributions won't be attributed to you. The auto-detected identity handles this; a manually passed --email won't if it's wrong.
  • A word only fits if it's short enough for the year — each letter takes 6 week-columns (5 + spacing), and a year has ~52-53. Long words will error out with the max width for that year.
  • After deleting a repo, GitHub's profile page can take a while (minutes to hours) to stop showing the old contributions — that's server-side caching, not a bug in this tool.

About

drawing github contribution

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages