Turn your GitHub contributions into an animated snake that devours them!
- 🎨 6 Beautiful Themes - Match your profile's aesthetic.
- 🧠 Smart Pathfinding - Snake hunts high-value contributions first.
- ⚡ Zero-Install - Run instantly with
bunxornpx. - 🤖 GitHub Action - Automated daily updates for your profile.
- 🗓️ Rolling Year - Always shows the last 12 months of contributions.
Add this workflow to your repository (e.g., .github/workflows/snake.yml) to automatically generate the snake animation every day.
name: Generate Snake on: schedule: - cron: "0 0 * * *" # Run daily at midnight workflow_dispatch: # Allow manual run jobs: build: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 - uses: miccy/snake-evolution@v1 with: github_user_name: ${{ github.repository_owner }} outputs: | dist/snake.svg dist/snake-dark.svg?palette=github-dark dist/snake-ocean.svg?palette=ocean - name: Push to Output Branch uses: crazy-max/ghaction-github-pages@v4 with: target_branch: output build_dir: dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Generate animations locally without installing anything.
# Using Bun (Recommended) bunx @snake-evolution/cli@latest generate -u YOUR_USERNAME # Using npx npx @snake-evolution/cli@latest generate -u YOUR_USERNAME
Add this into your README.md

Add this into your README.md for centered image with dark/light mode support
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./assets/examples/github-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="./assets/examples/github-light.svg"> <img alt="Snake eating contributions" src="./assets/examples/github-dark.svg" width="100%"> </picture> </p>
Available themes: github-dark, github-light, ocean, sunset, neon-gamer, cypherpunk.
If you prefer to have the tool available globally:
bun add -g @snake-evolution/cli # or npm install -g @snake-evolution/cli # Usage snake generate -u miccy
This project is a monorepo managed by Turbo and Bun.
# Clone repository git clone https://github.com/miccy/snake-evolution.git cd snake-evolution # Install dependencies bun install # Build all packages bun run build # Run CLI from source bun run snake generate -u YOUR_USERNAME -o test.svg
Original snake concept by Platane 🙏
