{"id":16611147,"url":"https://github.com/pkief/svelte-snake","last_synced_at":"2026-05-17T19:37:07.048Z","repository":{"id":57951278,"uuid":"529363157","full_name":"PKief/svelte-snake","owner":"PKief","description":"A snake game written in Svelte and TypeScript","archived":false,"fork":false,"pushed_at":"2022-08-27T08:42:57.000Z","size":1806,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T03:51:15.367Z","etag":null,"topics":["canvas","game","snake","svelte","typescript"],"latest_commit_sha":null,"homepage":"https://pkief.github.io/svelte-snake/","language":"TypeScript","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/PKief.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-26T18:17:51.000Z","updated_at":"2024-07-04T20:18:28.000Z","dependencies_parsed_at":"2023-01-16T19:00:44.761Z","dependency_job_id":null,"html_url":"https://github.com/PKief/svelte-snake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKief%2Fsvelte-snake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKief%2Fsvelte-snake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKief%2Fsvelte-snake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKief%2Fsvelte-snake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PKief","download_url":"https://codeload.github.com/PKief/svelte-snake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238864123,"owners_count":19543475,"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","game","snake","svelte","typescript"],"created_at":"2024-10-12T01:35:21.471Z","updated_at":"2025-10-29T18:30:17.495Z","avatar_url":"https://github.com/PKief.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n    \u003cimg src=\"./src/img/logo.png\" alt=\"Game logo\" width=\"200\"\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  Snake\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eFirst class Snake game. Powered by Svelte.\u003c/h4\u003e\n\n## Game instructions\n\nBy either pressing one of the arrow keys on the keyboard or by using swipe gestures on a mobile device the Snake is starting to move. In the same way, the direction of the snake can be changed while it is moving. Since the snake is hungry, it would like to eat as many items as possible. Each item eaten makes the snake a little bigger, which also restricts the freedom of movement. The goal is to swallow as many items as possible.\n\n## Technological background\n\nThis game was implemented with the frontend framework [Svelte](https://svelte.dev/). The code base is written with TypeScript and Webpack is used for bundling into executable JavaScript code in the browser. For the rendering of the game logic a Canvas element is used.\n\n### Installation instructions\n\nTo get the game up and running on a local machine it's necessary to install the runtime [Node.js](https://nodejs.org/en/).\n\n#### Install dependencies\n\n```\nnpm install\n```\n\n#### Start local development server\n\n```\nnpm start\n```\n\n#### Generate production bundle\n\n```\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkief%2Fsvelte-snake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkief%2Fsvelte-snake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkief%2Fsvelte-snake/lists"}