https://github.com/Platane/snk Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Platane / snk Public * Notifications * Fork 680 * Star 3.4k Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif platane.github.io/snk 3.4k stars 680 forks Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Security * Insights Platane/snk This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Use this GitHub Action with your project Add this Action to an existing workflow or create a new one. View on Marketplace main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 9 branches 51 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/P] Use Git or checkout with SVN using the web URL. [gh repo clone Platan] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @Platane Platane add manual run ... 5332254 Oct 19, 2023 add manual run 5332254 Git stats * 240 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows add manual run October 19, 2023 19:23 packages use process.env. instead of @action/core in test and local October 17, 2023 17:30 svg-only 3.2.0 October 17, 2023 15:44 .gitignore read contribution calendar from github api July 17, 2023 22:55 .nvmrc [?] use node 20 September 23, 2023 20:18 Dockerfile [?] use node 20 September 23, 2023 20:18 README.md October 17, 2023 17:45 action.yml 3.2.0 October 17, 2023 15:44 package.json 3.2.0 October 17, 2023 15:44 tsconfig.json April 8, 2022 23:25 yarn.lock vix vercel endpoint October 6, 2023 10:38 View code snk Usage Implementation README.md snk GitHub Workflow Status GitHub release GitHub marketplace type definitions code style Generates a snake game from a github user contributions graph github contribution grid snake animation Pull a github user's contribution graph. Make it a snake Game, generate a snake path where the cells get eaten in an orderly fashion. Generate a gif or svg image. Available as github action. It can automatically generate a new image each day. Which makes for great github profile readme Usage github action - uses: Platane/snk@v3 with: # github user name to read the contribution graph from (**required**) # using action context var `github.repository_owner` or specified user github_user_name: ${{ github.repository_owner }} # list of files to generate. # one file per line. Each output can be customized with options as query string. # # supported options: # - palette: A preset of color, one of [github, github-dark, github-light] # - color_snake: Color of the snake # - color_dots: Coma separated list of dots color. # The first one is 0 contribution, then it goes from the low contribution to the highest. # Exactly 5 colors are expected. outputs: | dist/github-snake.svg dist/github-snake-dark.svg?palette=github-dark dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 example with cron job If you are only interested in generating a svg, consider using this faster action: uses: Platane/snk/svg-only@v3 dark mode For dark mode support on github, use this special syntax in your readme. github-snake interactive demo [121798244-] platane.github.io/snk local npm install npm run dev:demo Implementation solver algorithm About Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif platane.github.io/snk Topics svg-animations gif snake-game github-contributions github-actions github-contribution-graph github-profile-readme Resources Readme Activity Stars 3.4k stars Watchers 14 watching Forks 680 forks Report repository Releases 39 v3.2.0 Latest Oct 17, 2023 + 38 releases Used by 67k * @mariaritacasagrande * @akhil-ge0rge * @vjoxgit7code * @renatachom * @wonkyungup * @danielvilaca * @aksalsf * @sherafat79 + 67,004 Contributors 8 * @Platane * @github-actions[bot] * @threeal * @fky2015 * @fz6m * @kiwt * @Awayume * @tempewda Languages * TypeScript 99.4% * Dockerfile 0.6% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.