{"id":26552677,"url":"https://github.com/mirokrastanov/snakejs","last_synced_at":"2026-04-09T17:40:26.420Z","repository":{"id":241803086,"uuid":"657107340","full_name":"mirokrastanov/snakeJS","owner":"mirokrastanov","description":"🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.","archived":false,"fork":false,"pushed_at":"2024-05-29T15:30:44.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T05:33:10.311Z","etag":null,"topics":["canvas","css","game","html","javascript","react","web"],"latest_commit_sha":null,"homepage":"https://app-library-13e36.web.app/apps/snake","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirokrastanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-22T10:33:54.000Z","updated_at":"2024-05-30T05:33:15.620Z","dependencies_parsed_at":"2024-05-30T05:33:15.308Z","dependency_job_id":"9cadb05e-ad53-4200-9124-01a7ee8ffec6","html_url":"https://github.com/mirokrastanov/snakeJS","commit_stats":null,"previous_names":["mirokrastanov/snakejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FsnakeJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FsnakeJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FsnakeJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FsnakeJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirokrastanov","download_url":"https://codeload.github.com/mirokrastanov/snakeJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931585,"owners_count":20534009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","css","game","html","javascript","react","web"],"created_at":"2025-03-22T08:39:02.832Z","updated_at":"2025-12-30T21:24:14.040Z","avatar_url":"https://github.com/mirokrastanov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake JS\n🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.\n\u003cp align=\"center\"\u003e\u003ca href=\"https://app-library-13e36.web.app/apps/snake\"\u003e\u003cimg src=\"https://github.com/mirokrastanov/snakeJS/blob/main/src/previews/snake-4.png?raw=true\" alt=\"game-image\" height=\"600px\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Live Demo\n[\u003cimg src=\"https://freepngimg.com/download/play_now_button/25403-5-play-now-button-transparent.png\" alt=\"run-button\" height=\"40px\" /\u003e](https://app-library-13e36.web.app/apps/snake)\n### The Demo is now part of my app library \n- Check out the [App Library](https://app-library-13e36.web.app/)\n\n## Description\n- The game [Snake](https://en.wikipedia.org/wiki/Snake_(video_game_genre)) involves a player controlling a constantly moving snake in an attempt to help the snake eat as many apples as possible, without biting its tail or hitting the wall.\n- The game is played on a 20x20 board (15x15 for the React implementation in my App Library).\n- The snake's length increases each time it eats an apple.\n- Once an apple has been eaten a new one spawns at a random location.\n\u003cbr /\u003e\n\n## How to play\n- To control the snake use the arrow keys to change its direction. Enjoy the game! \u003cbr /\u003e\n- ` ` ⬆️ ` ` \u003cbr /\u003e\n- ⬅️⬇️➡️ \n\u003cbr /\u003e\n\n## How to win\n- Do not hit the wall\n- Do not bite your tail\n\u003cbr /\u003e\n\n## Game Screenshots\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/mirokrastanov/snakeJS/blob/main/src/previews/snake-1.png?raw=true\" alt=\"image\" /\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/mirokrastanov/snakeJS/blob/main/src/previews/snake-2.png?raw=true\" alt=\"image\" /\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/mirokrastanov/snakeJS/blob/main/src/previews/snake-5.png?raw=true\" alt=\"image\" /\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/mirokrastanov/snakeJS/blob/main/src/previews/snake-3.png?raw=true\" alt=\"image\" /\u003e\u003c/p\u003e\n\n## Live Demo\n[\u003cimg src=\"https://freepngimg.com/download/play_now_button/25403-5-play-now-button-transparent.png\" alt=\"run-button\" height=\"40px\" /\u003e](https://app-library-13e36.web.app/apps/snake)\n- [Original Source Code](https://github.com/mirokrastanov/snakeJS)\n- [React Implementation Code for the App Library](https://github.com/mirokrastanov/app-library/tree/main/client/src/apps/snake)\n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirokrastanov%2Fsnakejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirokrastanov%2Fsnakejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirokrastanov%2Fsnakejs/lists"}