{"id":15030086,"url":"https://github.com/annihil/github-spray","last_synced_at":"2025-05-15T10:07:35.083Z","repository":{"id":57251283,"uuid":"166721165","full_name":"Annihil/github-spray","owner":"Annihil","description":":octocat: Draw on your GitHub contribution graph ░▒▓█","archived":false,"fork":false,"pushed_at":"2023-12-09T13:02:17.000Z","size":31,"stargazers_count":1394,"open_issues_count":1,"forks_count":87,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-15T10:07:00.211Z","etag":null,"topics":["calendar","cli","cli-app","contribution","github","graffiti","graph","heatmap","javascript","npm-package","pixel-art"],"latest_commit_sha":null,"homepage":"https://annihil.github.io/github-spray-generator","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Annihil.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-20T23:35:55.000Z","updated_at":"2025-05-15T07:04:02.000Z","dependencies_parsed_at":"2024-06-19T10:00:00.126Z","dependency_job_id":null,"html_url":"https://github.com/Annihil/github-spray","commit_stats":{"total_commits":25,"total_committers":5,"mean_commits":5.0,"dds":0.36,"last_synced_commit":"eb597a2b43138dbba394768d5595357fac3ea6a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Annihil%2Fgithub-spray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Annihil%2Fgithub-spray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Annihil%2Fgithub-spray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Annihil%2Fgithub-spray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Annihil","download_url":"https://codeload.github.com/Annihil/github-spray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319721,"owners_count":22051074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","cli","cli-app","contribution","github","graffiti","graph","heatmap","javascript","npm-package","pixel-art"],"created_at":"2024-09-24T20:12:24.332Z","updated_at":"2025-05-15T10:07:30.066Z","avatar_url":"https://github.com/Annihil.png","language":"JavaScript","readme":"# GitHub Spray\n[![npm](https://img.shields.io/npm/v/github-spray.svg?style=flat-square)](https://www.npmjs.com/package/github-spray)\n[![license](https://img.shields.io/github/license/annihil/github-spray.svg?style=flat-square)]()\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://i.imgur.com/nPZyGNo.gif\" height=\"200\" width=\"200\" alt=\"GitHub Spray logo\"/\u003e\n\u003c/p\u003e\n\nA CLI to generate sprays for your GitHub contribution history graph\n\n![](https://i.imgur.com/Of8MjPj.gif)\n\n## Installation\n\n```sh\nnpm i -g github-spray\n```\n\n## Requirements\n\n- Git\n- Recent NodeJS\n\n## Usage\n\n1. Create a new GitHub repository and copy its url\n2. \n```sh\ngithub-spray -t \u003ctext\u003e --multiplier \u003cfactor\u003e --push --origin \u003cgithub_repository_url\u003e\n```\n(example)\n```sh\ngithub-spray -t hello --multiplier 10 --push --origin https://github.com/John/hello.git\n```\n_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_.  \n\n```sh\ngithub-spray --help\n```\n\n### Fonts\n```sh\ngithub-spray -t \u003ctext\u003e --font \u003cfont_name\u003e\n```\n(example)\n```sh\ngithub-spray -t Wald0 --font portable_vengeance\n```\n![](https://i.imgur.com/iF2xwwU.png)  \n```sh\ngithub-spray -t Mario? --font mario\n```\n![](https://i.imgur.com/0P8Dmrn.png)  \n#### led7\n![](https://i.imgur.com/O5EW9IV.png)  \n![](https://i.imgur.com/yUaeoGL.png)  \n![](https://i.imgur.com/mvtC6sE.png)  \n![](https://i.imgur.com/A76n04M.gif)  \n*Fonts available are in the fonts folder*\n\n### Invert colors\n![](https://i.imgur.com/rgSownU.png)\n```sh\ngithub-spray -t hello -i\n```\n\n### Flip vertical\n![](https://i.imgur.com/xHNnAGb.png)\n```sh\ngithub-spray -t hello --flipvertical\n```\n\n### Flip horizontal\n![](https://i.imgur.com/LMtZGAr.png)\n```sh\ngithub-spray -t hello --fliphorizontal\n```\n\n### Custom pattern\n\nTo use a custom pattern, create a JSON file like follow.  \n*The numbers (1 to 4) will determine the number of commit per day, and thus the green's darkness.*\n```json\n[\n    \"  333  \",\n    \" 3   3 \",\n    \"3 2 2 3\",\n    \"3     3\",\n    \"3 222 3\",\n    \" 3   3 \",\n    \"  333  \"\n]\n```\n![](https://i.imgur.com/sZDSnFH.png)\n```sh\ngithub-spray -f \u003cpath/to/pattern.json\u003e ...\n```\n\n![](https://i.imgur.com/QDxcot7.png)\n```sh\ngithub-spray -f patterns/space-invaders.json ...\n```\n\n**You can use [GitHub Spray Generator](https://annihil.github.io/github-spray-generator/) to graphically draw patterns**\n\n### Custom start date\n```sh\ngithub-spray --startdate YYYY-MM-DD ...\n```\n*The date will be rounded to the nearest sunday.*  \nBy default the start date is the nearest sunday of the current date - 53 weeks.\n\n### Multiplier: scale colors\n```sh\ngithub-spray -m \u003cfactor\u003e ...\n```\nMultiply the number of commit per day by the given factor to make the spray darker or brighter on your calendar heatmap. \n\n## Known issues\n- Before Monday 10 March 2014 there could be a [shift due to the timezone](https://github.blog/2014-03-07-timezone-aware-contribution-graphs/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannihil%2Fgithub-spray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannihil%2Fgithub-spray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannihil%2Fgithub-spray/lists"}