Skip to content

Welcome to Colyseus

Important Notices

  • Documentation is currently being updated and improved.
  • Translation of the documentation is in progress.

Introduction

Colyseus is an Authoritative Multiplayer Framework for writing your own game servers using JavaScript/TypeScript and Node.js.

Colyseus is agnostic regarding the technology you choose for the client-side. You can use one of the official client-side SDK's available, such as Unity, JavaScript/TypeScript, Defold Engine, Haxe, Cocos Creator and Construct3.

What Colyseus provides to you:

  • WebSocket-based realtime 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

Getting started

Before we start, let's make sure we have the necessary system requirements installed in your local machine.

Requirements:

Creating your server

Open your system terminal, and use the command below to set up a barebones server locally.

npm init colyseus-app ./my-first-game-server

This server template is ready to be used locally, self-hosted, or on Colyseus Arena.

Next steps


Examples to explore

You are encouraged to check out existing projects to explore and understand how Colyseus works.

Official Unity Tech Demos


Presentation: JS GameDev Summit 2022

Slides | GitNation


Community videos: a selection of videos made by community members for you:

Back to top