Skip to content

miccy/snake-evolution

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

200 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Snake Evolution

Stars npm License CI

Turn your GitHub contributions into an animated snake that devours them!

Snake eating contributions

✨ Features

  • 🎨 6 Beautiful Themes - Match your profile's aesthetic.
  • 🧠 Smart Pathfinding - Snake hunts high-value contributions first.
  • ⚡ Zero-Install - Run instantly with bunx or npx.
  • 🤖 GitHub Action - Automated daily updates for your profile.
  • 🗓️ Rolling Year - Always shows the last 12 months of contributions.

🚀 Quick Start

GitHub Action (Recommended)

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 }}

CLI (Zero-Install)

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

Markdown Usage

Add this into your README.md

![GitHub Dark](./assets/examples/github-dark.svg)

HTML in Markdown

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>

🎨 Themes

Available themes: github-dark, github-light, ocean, sunset, neon-gamer, cypherpunk.

🌑 GitHub Dark (Default)

GitHub Dark

☀️ GitHub Light

GitHub Light

🌊 Ocean

Ocean

🌅 Sunset

Sunset

🎮 Neon Gamer

Neon Gamer

🔵 Cypherpunk

Cypherpunk

📦 Installation (Global)

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

🛠️ Development

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

📄 License

Original snake concept by Platane 🙏


🛠 Maintained by @miccy with 💙

© 2026 Miccy

About

🐍 Turn your GitHub contributions into an animated snake that devours them! CLI + GitHub Action. PvP mode coming soon!

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors