# colyseus **Repository Path**: ProZGZ/colyseus ## Basic Information - **Project Name**: colyseus - **Description**: No description available - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-21 - **Last Updated**: 2021-09-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README


Patreon donate button Discussion forum

Multiplayer Game Server for Node.js.
View documentation

Colyseus is an Authoritative Multiplayer Game Server for Node.js, with clients available for the Web, Unity3d, Defold, Haxe, and Cocos2d-X. ([See official clients](#%EF%B8%8F-official-client-integration)) The project focuses on providing synchronizable data structures for realtime and turn-based games, matchmaking, and ease of usage both on the server-side and client-side. The mission of the framework is to be a standard netcode & matchmaking solution for any kind of project you can think of! You're encouraged to take a look on [some games being developed with it](https://discuss.colyseus.io/category/5/showcase) and make your own! ## What Colyseus provides to you: - WebSocket-based communication - Simple API in the server-side and client-side. - Automatic state synchronization between server and client. - Matchmaking clients into game sessions - Scale vertically or horizontally ## What Colyseus won't provide: - Game Engine: Colyseus is agnostic of the engine you're using. Need Physics? Add your own logic / package. - Database: It's up to you to configure and select which database you'd like to use. See [roadmap](https://github.com/colyseus/colyseus/wiki/Roadmap) for our future plans. # 🚀 Quickstart Create a bare-bones Colyseus server by using `npm init colyseus-app`. ``` npm init colyseus-app my-colyseus-server cd my-colyseus-server npm start ``` # 🕹️ Official Client Integration - [JavaScript/TypeScript](https://github.com/colyseus/colyseus.js) - [Defold Engine](https://github.com/colyseus/colyseus-defold) ([defold.com](https://www.defold.com/)) - [Unity](https://github.com/colyseus/colyseus-unity3d) ([unity3d.com](https://unity3d.com/)) - [Haxe](https://github.com/colyseus/colyseus-hx) ([haxe.org](https://haxe.org/)) - [Cocos2d-x](https://github.com/colyseus/colyseus-cocos2d-x) ([cocos2d-x.org](https://cocos2d-x.org/)) - [Construct 3](https://github.com/colyseus/colyseus-construct3) ([construct3.net](https://www.construct.net/)) # 🛠️ Tools - [@colyseus/social](https://github.com/colyseus/colyseus-social) - Authentication and Social features for Colyseus - [@colyseus/proxy](https://github.com/colyseus/proxy) - Proxy & Service Discovery for scaling Colyseus - [@colyseus/monitor](https://github.com/colyseus/colyseus-monitor) - A Web Monitoring Panel for Colyseus - [@colyseus/loadtest](https://github.com/colyseus/colyseus-loadtest) - Utility tool for load testing Colyseus ## Tools made by the community ❤️ - [colyseus-hxjs](https://github.com/serjek/colyseus-hxjs): Haxe externs for colyseus server (by [@serjek](https://github.com/serjek)) - [colyseus-java](https://github.com/doorbash/colyseus-java): Client for Java (by [@doorbash](https://github.com/doorbash)) - [Colyseus-ObjC](https://github.com/swittk/Colyseus-ObjC): Client for Objective C (by [@swittk](https://github.com/swittk)) - [Colyseus-for-C2](https://github.com/Keevle/Colyseus-for-C2): Client for Construct 2 (by [@Keevle](https://github.com/Keevle)) # Usage examples See the [official examples](https://github.com/colyseus/colyseus-examples) for usage reference with the latest version of Colyseus. - [Colyseus + PixiJS Boilerplate](https://colyseus-pixijs-boilerplate.herokuapp.com/) ([source-code](https://github.com/endel/colyseus-pixijs-boilerplate)) - Simplistic agar.io implementation using [PixiJS](https://github.com/pixijs/pixi.js) - [Colyseus + BabylonJS Boilerplate](https://babylonjs-multiplayer.herokuapp.com/) ([source-code](https://github.com/endel/babylonjs-multiplayer-boilerplate)) - Bare-bones [BabylonJS](https://github.com/BabylonJS/Babylon.js) example - [Tic Tac Toe](https://tictactoe-colyseus.herokuapp.com) ([source-code](https://github.com/endel/tic-tac-toe)) - Tic Tac Toe using [PixiJS](https://github.com/pixijs/pixi.js) and [Defold Engine](https://defold.com) - [Collaborative Drawing Prototype](https://colyseus-drawing-prototype.herokuapp.com/) ([source-code](https://github.com/endel/colyseus-collaborative-drawing)) - Collaborative drawing using HTML5 canvas. - (outdated: < v0.8.x): [tanx](https://playcanvas.com/project/367035/overview/tanxcolyseus), [react-example](https://github.com/endel/colyseus-react-example), [LD35 entry: dotower](http://ludumdare.com/compo/ludum-dare-35/?action=preview&uid=50958) # Contributors Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | [Endel Dreyer
Endel Dreyer](https://twitter.com/endel)
[💻](https://github.com/gamestdio/colyseus/commits?author=endel "Code") [📖](https://github.com/gamestdio/colyseus/commits?author=endel "Documentation") [💡](#example-endel "Examples") | [Kyle J. Kemp
Kyle J. Kemp](http://seiyria.com)
[💬](#question-seiyria "Answering Questions") [🐛](https://github.com/gamestdio/colyseus/issues?q=author%3Aseiyria "Bug reports") [💻](https://github.com/gamestdio/colyseus/commits?author=seiyria "Code") [💵](#financial-seiyria "Financial") [🤔](#ideas-seiyria "Ideas, Planning, & Feedback") | [Jonas Voland
Jonas Voland](http://wenish.github.io/portfolio/)
[💬](#question-Wenish "Answering Questions") [🐛](https://github.com/gamestdio/colyseus/issues?q=author%3AWenish "Bug reports") [💻](https://github.com/gamestdio/colyseus/commits?author=Wenish "Code") [💵](#financial-Wenish "Financial") [🤔](#ideas-Wenish "Ideas, Planning, & Feedback") | [Milad Doorbash
Milad Doorbash](https://github.com/doorbash)
[🐛](https://github.com/gamestdio/colyseus/issues?q=author%3Adoorbash "Bug reports") [💻](https://github.com/gamestdio/colyseus/commits?author=doorbash "Code") | [Tom
Tom](https://oyed.io)
[💬](#question-oyed "Answering Questions") [🐛](https://github.com/gamestdio/colyseus/issues?q=author%3Aoyed "Bug reports") [🤔](#ideas-oyed "Ideas, Planning, & Feedback") | [James Jacoby
James Jacoby](https://github.com/mobyjames/)
[💡](#example-mobyjames "Examples") [💵](#financial-mobyjames "Financial") [🖋](#content-mobyjames "Content") | [Nikita Borisov
Nikita Borisov](https://github.com/TinyDobbins)
[🐛](https://github.com/gamestdio/colyseus/issues?q=author%3ATinyDobbins "Bug reports") [💻](https://github.com/gamestdio/colyseus/commits?author=TinyDobbins "Code") [💵](#financial-TinyDobbins "Financial") [🤔](#ideas-TinyDobbins "Ideas, Planning, & Feedback") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | [Phil Harvey
Phil Harvey](https://acemobe.com/)
[💵](#financial-filharvey "Financial") [📖](https://github.com/gamestdio/colyseus/commits?author=filharvey "Documentation") | [Brian Hay
Brian Hay](https://github.com/brian-hay)
[💵](#financial-brian-hay "Financial") | [Enriqueto
Enriqueto](https://github.com/enriqueto)
[💵](#financial-enriqueto "Financial") | [digimbyte
digimbyte](https://github.com/digimbyte)
[📖](https://github.com/gamestdio/colyseus/commits?author=digimbyte "Documentation") | [Federico
Federico](https://twitter.com/Federkun)
[🐛](https://github.com/gamestdio/colyseus/issues?q=author%3AFederkun "Bug reports") [💻](https://github.com/gamestdio/colyseus/commits?author=Federkun "Code") | [Derwish
Derwish](https://github.com/derwish-pro)
[🐛](https://github.com/gamestdio/colyseus/issues?q=author%3Aderwish-pro "Bug reports") [🔧](#tool-derwish-pro "Tools") | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome! # Contributing We encourage you to contribute to Colyseus! Please check out the [Contributing guide](.github/CONTRIBUTING.md) for guidelines about how to proceed. Join us! Everyone interacting in Colyseus and its sub-projects' codebases, issue trackers and chat rooms is expected to follow the [code of conduct](CODE_OF_CONDUCT.md). # Backers / Supporters via Patreon **Sponsors** - BubbleboxGames **Generous backers:** - Mobile Brain - Wenish **Backers:** - Brian Hay - Damian Alberto Pastorini - enriqueto - Eric Hasnoname - Eric McDaniel - Hooman Niktafar - James Jacoby - Joshua Jebadurai - João Mosmann - LeeSeHeon - Matt Greene - Mikal Dev - Patryk Tyszko - Plaid World - Thomas Summerall - tobi4s1337 - Worph # License MIT