With hackGraph, you can make your GitHub profile look like you've been hard at work... even if you haven't. This Node.js script lets you create commits in the past (or the future) to fill your GitHub contribution graph with custom patterns, artwork, or just a lot of green!
hackGraph helps you generate commits on your GitHub profile for any date. Whether you want to fill up your contribution graph or create cool designs, hackGraph makes it easy.
Follow these steps to bring your contribution graph to life:
- Clone this repository
git clone https://github.com/fenrir2608/hackGraph.git
cd hackGraph- Set up your project Initialize a new Node.js project:
npm init -y- Install the required npm modules Install all dependencies:
npm install moment simple-git random- Create your commit script
- Create a JavaScript file to manage your commits.
- Create a JSON file to store all the commit timestamp data.
So, you've got the basics down. What's next?
- Custom Patterns: Experiment with different patterns on your contribution graph. Maybe spell out your name or create some cool designs.
- Density Control: Play around with the number of commits per day to adjust the shades of green.
- Input Strings: Convert input strings to X-Y mapped contributions.
moment- Handles date and time manipulation.simple-git- For easy Git commands.random- To generate random numbers for the commits.
Huge thanks to Akshay Saini and homyorke for the original inspiration behind this project.