{"id":18037575,"url":"https://github.com/jeremija/snake","last_synced_at":"2025-07-09T14:04:04.821Z","repository":{"id":14142427,"uuid":"16848053","full_name":"jeremija/snake","owner":"jeremija","description":"Classic snake game written in javascript","archived":false,"fork":false,"pushed_at":"2016-03-14T17:38:23.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T00:26:45.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://steinerize.com/snake","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremija.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-14T20:06:39.000Z","updated_at":"2017-10-04T13:25:05.000Z","dependencies_parsed_at":"2022-07-08T03:57:43.103Z","dependency_job_id":null,"html_url":"https://github.com/jeremija/snake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeremija/snake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremija","download_url":"https://codeload.github.com/jeremija/snake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fsnake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260945335,"owners_count":23086993,"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":[],"created_at":"2024-10-30T13:12:46.783Z","updated_at":"2025-06-20T12:34:26.261Z","avatar_url":"https://github.com/jeremija.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Snake\n=====\n\nClassic snake game written in JavaScript. Uses [knockout.js](http://knockoutjs.com) and [require.js](http://requirejs.org). Also uses [Hammer.js](http://eightmedia.github.io/hammer.js/) for gestures on devices with touchscreens.\n\n![snake screencast](http://i.imgur.com/89WuGNq.gif)\n\nClick [here to try it](http://steiner.website/snake). Use arrow keys to move if you are on a desktop computer, or swipe gestures if you are on a mobile device.\n\nFeatures\n--------\n* Retro look\n* Control the snake with arrow keys, mouse, or swipe gestures\n* Hotkeys for every command:\n    * `F1` for displaying about and help information\n    * `F2` for restarting the game\n    * `F3` for configuring and starting a custom game and\n    * `P` for pause\n\nTested on\n---------\n\n* Chrome 32, Firefox 27 on Ubuntu 13.10\n* IE9 on Windows 7\n* Chrome 32, Browser (Chrome 30) on Android 4.4 (Nexus 4)\n* Chrome 32 on iOS 6 (iPhone 4)\n\nCloning and setting up\n----------------------\n\nPrerequisites: [npm](https://www.npmjs.org/) and [bower](http://bower.io/) installed globally or their location must be added to the `$PATH` environment variable.\n\n```bash\n# clone the repository\ngit clone https://github.com/jeremija/snake.git\ncd snake\n# install bower and npm dependencies\nbower install\nnpm install\n# start the server\nmake server\n```\n\nNow you should be able to navigate to [http://localhost:8080/src/index.html](http://localhost:8080/src/index.html) in your browser.\n\nTesting\n-------\n\nFollow the setting up guide, open your browser and navigate to [http://localhost:8080/test/test.html](http://localhost:8080/test/test.html).\n\nYou can also run the tests by typing `make test`. This will use [mocha-phantomjs](https://www.npmjs.org/package/mocha-phantomjs) as the test runner.\n\nBuilding\n--------\n\n```bash\n# install dependencies if not already\nnpm install\nbower install\n# initiate build\nmake\n```\n\nand a `./dist` folder should be created.\n\nIf you wish to build the documentation, run:\n\n```bash\nmake docs\n```\n\nThis should create a new folder: `./docs`.\n\nLicense\n-------\nMIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremija%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremija%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremija%2Fsnake/lists"}