git-commit-painter
v1.0.0
Published
A terminal utility for drawing pixel art on your GitHub contribution graph ░▒▓█
Downloads
121
Maintainers
Readme
Git Commit Painter 🎨
What It Does
Turn your boring GitHub contribution graph into art. Write your name, draw patterns, or make your entire year look green — all with real git commits.
Installation
npm i -g git-commit-painterPrerequisites
- Git installed and configured
- Node.js (v14+)
Quick Start
- Create a new, empty GitHub repository and copy its URL.
- Run the painter:
git-commit-painter -t <text> --multiplier <factor> --push --origin <repo_url>Example:
git-commit-painter -t hello --multiplier 10 --push --origin https://github.com/dhirenderchoudhary/hello.git💡 The
--multiplierflag scales commit intensity so the painted text stands out against your existing activity.
Terminal Output
All Options
git-commit-painter --help| Flag | Description |
|---|---|
| -t, --text <string> | Text to render on the graph |
| -f, --file <path> | Path to a custom JSON pattern |
| --font <name> | Typography style (see below) |
| -s, --startdate <YYYY-MM-DD> | Custom start date (snaps to Sunday) |
| -m, --multiplier <n> | Scale commit intensity |
| -i, --invert | Invert shade values |
| --flipvertical | Mirror vertically |
| --fliphorizontal | Mirror horizontally |
| -o, --origin <url> | Remote repository URL |
| -p, --push | Push to origin after generating |
| --force | Force push |
Typography Styles
Custom typography styles are in src/typography/.
git-commit-painter -t <text> --font <font_name>Example:
git-commit-painter -t Wald0 --font portable_vengeanceAvailable: gameboy · led7 · mario · portable_vengeance
Custom Patterns
Create a JSON file where numbers 1–4 control shade intensity:
[
" 333 ",
" 3 3 ",
"3 2 2 3",
"3 3",
"3 222 3",
" 3 3 ",
" 333 "
]Then paint it:
git-commit-painter -f path/to/pattern.json --origin <repo_url> --pushA sample space-invaders.json template is included in src/templates/.
Start Date
By default, painting begins 53 weeks before the current date (filling one full year). Override with:
git-commit-painter --startdate 2024-01-01 ...The date is automatically snapped to the nearest Sunday.
Multiplier
git-commit-painter -m 15 ...Higher values produce darker shades on the heatmap — useful when your existing contribution count is already high.
How It Works
- Creates a temporary git repo with empty commits
- Each commit is backdated to the correct day on the contribution graph
- The number of commits per day controls the green shade intensity
- Push the repo to GitHub and the art appears on your profile
License
MIT © dhirenderchoudhary
