Git Garden is a creative and engaging visualization tool that transforms your GitHub activity into a beautiful garden. Each element in your garden—whether it's a tree, flower, or decoration—represents different aspects of your contributions on GitHub. Watch your garden grow as you commit to repositories, give stars, and engage with the open-source community. Git Garden also reflects your most used programming language through visual cues in the environment, making your coding journey more interactive and fun!
- Visualizes GitHub contributions as a farm
- Customizable for any GitHub user and specific year
- Dynamically generates SVG images
- Easy to integrate into GitHub profile READMEs
To add GitGarden to your GitHub profile, simply insert the following markdown into your README:
[![GitGarden](https://gitgarden.marshallku.dev/?user_name=YOUR_GITHUB_USERNAME)](https://github.com/marshallku/gitgarden)
Replace YOUR_GITHUB_USERNAME
with your actual GitHub username.
You can also customize the year by adding the year
query parameter:
[![GitGarden](https://gitgarden.marshallku.dev/?user_name=YOUR_GITHUB_USERNAME&year=2023)](https://github.com/marshallku/gitgarden)
GitGarden can be self-hosted using Docker. You have two options:
-
Pull the latest image from GitHub Container Registry:
docker pull ghcr.io/marshallku/gitgarden:latest
-
Copy the example environment file:
cp .env.example .env
-
Edit the
.env
file with your GitHub token and other necessary configurations. -
Run the container:
docker run -p 18080:18080 --env-file .env ghcr.io/marshallku/gitgarden:latest
-
Clone the repository:
git clone https://github.com/marshallku/gitgarden.git cd gitgarden
-
Copy the example environment file:
cp .env.example .env
-
Edit the
.env
file with your GitHub token and other necessary configurations. -
Build and run the Docker container:
docker build -t gitgarden . docker run -p 18080:18080 gitgarden
Both options will make GitGarden available at http://localhost:18080
.
To set up GitGarden for local development:
- Ensure you have Rust and Cargo installed.
- Clone the repository and navigate to the project directory.
- Copy
.env.example
to.env
and fill in your GitHub token. - Run
cargo build
to compile the project. - Use
cargo run
to start the server locally.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.