Turn your GitHub activity into a garden where commits bloom into flowers 🌸 and empty days stay green 🌿
See your garden here: https://sakura-garden.vercel.app
- 🌸 Transforms your GitHub contributions into a beautiful garden
Updates automatically based on your GitHub activity- 🌗 Automatically matches light or dark mode — no need to pick one
- 📱 Looks good on desktop and mobile
- ⚡ Easy to integrate into any README or portfolio
- 💻 Dedicated website to generate and view your garden
- 🎬 Flowers bloom in one by one when the image loads
- Go to https://sakura-garden.vercel.app
- Enter your GitHub username
- Copy the garden
- Paste into your README
- Commit and push
- Copy the code below
<a href="https://sakura-garden.vercel.app" target="_blank" rel="noopener">
<picture>
<source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=dark" media="(prefers-color-scheme: dark)" width="846" height="164" style="height:auto"/>
<source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" media="(prefers-color-scheme: light)" width="846" height="164" style="height:auto"/>
<img src="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" width="846" height="164" style="height:auto"/>
</picture>
</a>- Replace
your-github-usernamewith your GitHub username - Paste into your README
- Create
.github/workflows/sakura-garden.yml - Copy the code below
name: Sakura Garden
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/sakura-garden.yml'
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate sakura garden
uses: a104437ana/sakura-garden@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout --orphan output
git add sakura-garden.svg sakura-garden-dark.svg
git commit -m "Update sakura garden" || exit 0
git push -f origin output- Paste into the file you just created
- Copy the code below
<a href="https://sakura-garden.vercel.app" target="_blank" rel="noopener">
<picture>
<source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden-dark.svg" media="(prefers-color-scheme: dark)" width="846" height="164" style="height:auto"/>
<source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" media="(prefers-color-scheme: light)" width="846" height="164" style="height:auto"/>
<img src="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" width="846" height="164" style="height:auto"/>
</picture>
</a>- Replace
your-github-usernamewith your GitHub username - Paste into your README
You can also hit the API directly to generate the image, without going through the site:
https://sakura-garden.vercel.app/api/svg?username=YOUR_USERNAME&theme=dark|light|auto|auto-green&animate=true|false&levels=true|false
username— your GitHub usernametheme—dark,light,auto, orauto-green— the last two are single images that read fine on both light and dark backgrounds, no<picture>/<source>needed (autouses a translucent pink outline for empty days,auto-greenuses solid green)animate— set tofalseto disable the flower bloom-in animation (defaulttrue)levels— set tofalseto make every flower the same, instead of shading by how active each day was (defaulttrue)
Want your GitHub contributions graph in any color/theme? Check out gitcolors
If you like this project, please consider giving it a star ⭐