Overview
The GitHub Contribution Chart Generator is an open-source utility designed to create a visually distinct representation of a user's GitHub activity. Specifically, it generates an SVG animation where a 'snake' character traces the path of contributions on the standard GitHub activity grid. This animation can then be embedded directly into a GitHub profile README, offering a dynamic and personalized element to a developer's public profile.
The tool operates by fetching a user's contribution data and rendering it into an SVG image. It is implemented as a GitHub Action, which simplifies its deployment and maintenance. Users configure a workflow file within their GitHub repository, specifying parameters such as the target GitHub username, output file name, and animation speed. Upon execution, the Action automatically generates or updates the snake animation, which can then be displayed on the user's profile. This automation ensures that the contribution chart remains current without manual intervention.
This generator is particularly suited for individual developers and open-source contributors who wish to enhance their online presence and showcase their coding activity in a non-standard format. It serves as a creative alternative to the static contribution graph provided by GitHub, making a profile more engaging. The process involves minimal setup, primarily requiring familiarity with GitHub Actions YAML syntax. The project's open-source nature allows for community contributions and adaptations, further extending its utility and ensuring transparency in its operation.
Beyond personal branding, the tool can also be used by teams or organizations that maintain public GitHub profiles for their projects or members, offering a consistent and branded way to display collective activity. Its use of standard web technologies like SVG ensures broad compatibility across different browsers and platforms where GitHub profiles are viewed. The project's documentation provides clear steps for initial setup and troubleshooting, making it accessible to developers with varying levels of experience in GitHub Actions.
The generator can be customized to some extent, allowing users to control aspects like the snake's color (by modifying the SVG output if desired) or the frequency of updates. For instance, a common setup involves scheduling the GitHub Action to run daily or weekly, ensuring the contribution snake reflects recent activity. This level of control, combined with its ease of integration, positions the GitHub Contribution Chart Generator as a practical utility for personalizing and animating GitHub profiles without requiring external hosting or complex server-side logic.
Key features
- Animated Contribution Chart Generation: Converts a static GitHub contribution graph into a dynamic SVG animation, depicting a snake moving across the grid.
- GitHub Actions Integration: Designed to run as a GitHub Action, simplifying automation and integration into existing repositories for continuous updates.
- Profile README Embedding: Generates an SVG file suitable for direct embedding into a GitHub profile README, enhancing visual appeal.
- Open-Source Project: Fully open-source, allowing for community contributions, modifications, and transparent operation.
- Configurable Parameters: Supports configuration of parameters such as target GitHub username, output file path, and update frequency through workflow files.
- No External Hosting Required: The generated SVG is hosted directly within the GitHub repository, eliminating the need for separate hosting services.
- Cross-Browser Compatibility: Utilizes standard SVG format, ensuring broad compatibility across web browsers for viewing the animation.
Pricing
The GitHub Contribution Chart Generator is an open-source project and is available for use without any direct cost. It operates under an open-source license, meaning users can access, modify, and distribute the code freely. There are no subscription fees, usage charges, or premium features associated with this tool.
| Feature | Cost (as of 2026-05-28) | Notes |
|---|---|---|
| Core Generation Tool | Free | Fully open-source and available on GitHub. |
| GitHub Actions Usage | Free (within GitHub's free tier limits) | GitHub Actions provides a free tier for public repositories and a monthly allowance for private repositories. Exceeding these limits may incur charges from GitHub, not the generator itself. Refer to GitHub Actions billing documentation for detailed information. |
| Community Support | Free | Support is available through GitHub issues and the open-source community. |
Common integrations
- GitHub Actions: The primary integration point, allowing the generator to run automatically on a schedule within a GitHub repository to update the contribution snake. Developers define a YAML workflow file to trigger the action. For details on setting up workflows, consult the GitHub Actions workflow documentation.
- GitHub Profile READMEs: The generated SVG output is designed to be embedded directly into a user's
README.mdfile in their special GitHub profile repository, making the animated chart visible on their public profile page.
Alternatives
- GitHub's Native Contribution Graph: The default static graph displayed on every GitHub profile, showing daily contributions over time.
- Third-party GitHub Stats Generators: Tools like GitHub Readme Stats generate various badges and statistics (e.g., total commits, stars, top languages) for profile READMEs.
- Custom SVG Generators: General-purpose SVG generation libraries or frameworks that could be used to create highly customized visualizations, though requiring more development effort.
- Live Coding Stream Overlays: For developers who stream their coding sessions, tools that display real-time coding activity or statistics directly on their stream.
Getting started
To get started with the GitHub Contribution Chart Generator, you will typically create a new GitHub repository (or use an existing one, especially your special profile README repository) and set up a GitHub Actions workflow. The following steps outline a basic setup:
- Create a Repository: If you don't have one, create a new public repository on GitHub. If you intend for this to be on your profile, ensure it's named
<YOUR_GITHUB_USERNAME>/<YOUR_GITHUB_USERNAME>. - Add a Workflow File: Inside your repository, create a directory named
.github/workflows/. Inside this directory, create a new YAML file, for example,snake.yml. - Configure the Workflow: Paste the following YAML content into your
snake.ymlfile. This configuration schedules the action to run daily and generates the snake animation for your GitHub username.
name: Generate GitHub Contribution Snake
on: # Schedule daily updates
schedule:
- cron: "0 0 * * *" # Runs every day at 00:00 UTC
workflow_dispatch # Allows manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Platane/snk@v3
with:
github_user_name: your-github-username # Replace with your GitHub username
outputs:
- dist/github-contribution-grid-snake.svg
- dist/github-contribution-grid-snake-dark.svg?palette=github-dark
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- Commit and Push: Commit the
snake.ymlfile and push it to your GitHub repository. - Verify Action Run: Go to the "Actions" tab in your repository. You should see the workflow run automatically based on the schedule or you can manually trigger it using "Run workflow" if
workflow_dispatchis included. - Embed in README: Once the action completes, it will generate SVG files (e.g.,
github-contribution-grid-snake.svg) in thedist/directory of your repository. You can then embed this SVG into yourREADME.mdfile using standard Markdown image syntax:

Replace your-github-username and your-repo-name with your actual GitHub username and repository name. For more advanced configurations and troubleshooting, refer to the GitHub Contribution Chart Generator README.