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
- Go to https://sakura-garden.vercel.app
- Enter your GitHub username
- Copy the generated code
- Paste into your README
- Copy the code below
<picture>
<source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=dark" media="(prefers-color-scheme: dark)"/>
<source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" media="(prefers-color-scheme: light)"/>
<img src="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" alt="sakura contributions" width="1000"/>
</picture>- 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
<picture>
<source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden-dark.svg" media="(prefers-color-scheme: dark)" width="1000"/>
<source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" media="(prefers-color-scheme: light)" width="1000"/>
<img src="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" alt="sakura garden" width="1000"/>
</picture>- Replace
your-github-usernamewith your GitHub username - Paste into your README
You can see an example of this setup in action here
- ๐ธ Transforms your GitHub contributions into a beautiful garden
Updates automatically based on your GitHub activity- ๐ Supports both light and dark themes
- โก Easy to integrate into any README or portfolio
- ๐ป Dedicated website to generate and view your garden
If you like this project, please consider giving it a star โญ