{"id":19281033,"url":"https://github.com/ivan1993spb/snake-server","last_synced_at":"2025-12-15T10:02:28.108Z","repository":{"id":44326443,"uuid":"50870947","full_name":"ivan1993spb/snake-server","owner":"ivan1993spb","description":"Snake-Server is a pure Go implementation of the famous arcade game 🐍","archived":false,"fork":false,"pushed_at":"2023-11-26T16:04:20.000Z","size":8521,"stargazers_count":33,"open_issues_count":14,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T17:52:41.657Z","etag":null,"topics":["arcade","multiplayer","server","snake","websocket"],"latest_commit_sha":null,"homepage":"https://snakeonline.xyz","language":"Go","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/ivan1993spb.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":"2016-02-01T21:04:40.000Z","updated_at":"2024-02-10T15:12:50.000Z","dependencies_parsed_at":"2024-06-19T01:36:22.830Z","dependency_job_id":"43107c71-bd52-41da-b50c-2fbbb65c24a0","html_url":"https://github.com/ivan1993spb/snake-server","commit_stats":null,"previous_names":["ivan1993spb/clever-snake"],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan1993spb%2Fsnake-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan1993spb%2Fsnake-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan1993spb%2Fsnake-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan1993spb%2Fsnake-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan1993spb","download_url":"https://codeload.github.com/ivan1993spb/snake-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250161925,"owners_count":21385010,"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":["arcade","multiplayer","server","snake","websocket"],"created_at":"2024-11-09T21:21:29.910Z","updated_at":"2025-12-15T10:02:28.101Z","avatar_url":"https://github.com/ivan1993spb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Snake-Server\n\n![Build Status](https://github.com/ivan1993spb/snake-server/actions/workflows/go.yml/badge.svg?branch=master)\n[![GitHub release](https://img.shields.io/github/release/ivan1993spb/snake-server.svg)](https://github.com/ivan1993spb/snake-server/releases/latest)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ivan1993spb/snake-server)](https://goreportcard.com/report/github.com/ivan1993spb/snake-server)\n[![Docker Pulls](https://img.shields.io/docker/pulls/ivan1993spb/snake-server)](https://hub.docker.com/r/ivan1993spb/snake-server)\n\nSnake-Server is a multiplayer Snake game server where you and your friends can\ncompete in real time. Its unique twist: snakes can hunt each other!\n\n[![Game demo](demo.gif)](https://snakeonline.xyz)\n\n## Usage\n\n1. `docker run --rm -p 8080:8080 ivan1993spb/snake-server --enable-web`\n2. Open your browser: http://localhost:8080/.\n\n## How to play?\n\n* Create a game\n* You have a snake\n* You have to eat and grow\n* You can eat apples, mice, watermelons, smaller and dead snakes\n* If your snake dies, you start over\n\n## Installation\n\n* **Go get**\n\n  ```\n  go get github.com/ivan1993spb/snake-server@latest\n  snake-server -h\n  ```\n\n* [**Via docker**](https://hub.docker.com/r/ivan1993spb/snake-server)\n\n  ```bash\n  docker run --rm ivan1993spb/snake-server -h\n\n  docker run --rm -p 8080:8080 ivan1993spb/snake-server --enable-web\n  ```\n\n## CLI arguments\n\nUse `snake-server -h` for more information.\n\nOptions:\n\n* `--address` - **string** - sets an address to listen and serve (default:\n*:8080*). For example: *:8080*, *localhost:7070*\n* `--conns-limit` - **integer** - to limit the number of opened web-socket\nconnections (default: *1000*)\n* `--groups-limit` - **integer** - to limit the number of games for a server\ninstance (default: *100*)\n* `--enable-web` - **bool** - to enable the embedded web client (default:\n*false*)\n* `--forbid-cors` - **bool** - to forbid cross-origin resource sharing\n(default: *false*)\n* `--log-json` - **bool** - to enable JSON log output format (default: *false*)\n* `--log-level` - **string** - to set the log level: *panic*, *fatal*, *error*,\n*warning* (*warn*), *info* or *debug* (default: *info*)\n* `--sentry-enable` - **bool** - to enable sending logs to sentry (default:\n*false*)\n* `--sentry-dsn` - **string** - sentry's DSN (default: \"\"). For example:\n`https://public@sentry.example.com/44`\n* `--tls-cert` - **string** - to specify a path to a certificate file\n* `--tls-enable` - **bool** - to enable TLS\n* `--tls-key` - **string** - to specify a path to a key file\n* `--debug` - **bool** - to enable profiling routes\n\n## Clients\n\nThere is an embedded JavaScript web client compiled into the server. You can\nenable it with the CLI flag `--enable-web`.\n\nEveryone is welcome to create a client! It's a great programming exercise if\nyou want to practice and can't think of your own project.\n\nYou can find examples here:\n\n* VueJS client repo: https://github.com/ivan1993spb/snake-lightweight-client\n* Python backend repo: https://github.com/ivan1993spb/snake-backend\n\n## Docs\n\n* REST API specification: [docs/api.md](docs/api.md) and\n[openapi.yaml](openapi.yaml) and [swagger-ui](https://snakeonline.xyz/openapi/)\n* Web-Socket documentation [docs/websocket.md](docs/websocket.md)\n\n## License\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan1993spb%2Fsnake-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan1993spb%2Fsnake-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan1993spb%2Fsnake-server/lists"}