Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

github-spray

> 包管理
Open source

:octocat: Draw on your GitHub contribution graph ░▒▓█

1.5K stars0 likes4 views
WebsiteGitHub

About

:octocat: Draw on your GitHub contribution graph ░▒▓█

GitHub Spray

A CLI to generate sprays for your GitHub contribution history graph

Installation

bash
npm i -g github-spray

Requirements

  • Git
  • Recent NodeJS

Usage

  1. Create a new GitHub repository and copy its url
bash
github-spray -t <text> --multiplier <factor> --push --origin <github_repository_url>

(example)

bash
github-spray -t hello --multiplier 10 --push --origin https://github.com/John/hello.git

Depending on your number of contributions on the given period that you want to spray, you will need to multiply the number of commit per day by a specific factor (--multiplier) so that the spray become more relevant on your calendar heatmap.

bash
github-spray --help

Fonts

bash
github-spray -t <text> --font <font_name>

(example)

bash
github-spray -t Wald0 --font portable_vengeance
bash
github-spray -t Mario? --font mario

led7

Fonts available are in the fonts folder

Invert colors

bash
github-spray -t hello -i

Flip vertical

bash
github-spray -t hello --flipvertical

Flip horizontal

bash
github-spray -t hello --fliphorizontal

Custom pattern

To use a custom pattern, create a JSON file like follow.
The numbers (1 to 4) will determine the number of commit per day, and thus the green's darkness.

json
[
    "  333  ",
    " 3   3 ",
    "3 2 2 3",
    "3     3",
    "3 222 3",
    " 3   3 ",
    "  333  "
]
bash
github-spray -f <path/to/pattern.json> ...
bash
github-spray -f patterns/space-invaders.json ...

You can use GitHub Spray Generator to graphically draw patterns

Custom start date

bash
github-spray --startdate YYYY-MM-DD ...

The date will be rounded to the nearest sunday.
By default the start date is the nearest sunday of the current date - 53 weeks.

Multiplier: scale colors

bash
github-spray -m <factor> ...

Multiply the number of commit per day by the given factor to make the spray darker or brighter on your calendar heatmap.

Known issues

  • Before Monday 10 March 2014 there could be a shift due to the timezone

Issues· 1 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptcalendarclicli-appcontribution

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image