Repolode
HasangerGames

HasangerGames/suroi

An open-source 2D battle royale browser game inspired by surviv.io, built with TypeScript, PixiJS and Bun.

Open-source alternative to:surviv.io

Stars
517
Forks
243
Open issues
26
Last commit
6 days ago

What is it?

Suroi is a 2D battle royale game in the style of surviv.io, playable in the browser. The project is still a work in progress, and the author invites players to join its Discord and support development through donations.

The codebase is written in TypeScript. The client renders with PixiJS and is bundled with Vite, while the server runs on Node.js with uWebSockets.js for real-time networking. The project uses Bun as its package manager and task runner, and the client styles are written in SCSS.

To run it locally, install Git and Bun, clone the repository, run bun install, and then start the game with bun dev. Production builds of the client are served through NGINX, and self-hosting instructions are available in the project wiki.

Key features

  • 01Browser-based 2D battle royale gameplay inspired by surviv.io
  • 02Client built with PixiJS and Vite
  • 03Real-time game server built on uWebSockets.js and Node.js
  • 04Separate dev commands for running server and client
  • 05Production client build and self-hosting support via NGINX

Use cases

  • Studying how a real-time multiplayer browser game is structured in TypeScript
  • Hosting a private battle royale server for friends
  • Experimenting with game mechanics on a PixiJS and uWebSockets codebase

Quick start

  1. 1

    Install Git and Bun

  2. 2

    Clone the repository

    git clone https://github.com/HasangerGames/suroi.git
  3. 3

    Enter the project directory

    cd suroi
  4. 4

    Install dependencies

    bun install
  5. 5

    Start the game locally and open http://127.0.0.1:3000

    bun dev

Things to know

  • The README says the project is a work in progress.
  • Self-hosting production builds requires NGINX and setup described in the wiki.

Topics

FAQ

What is suroi?
An open-source 2D battle royale browser game inspired by surviv.io, built with TypeScript, PixiJS and Bun. Suroi is a 2D battle royale game in the style of surviv.io, playable in the browser. The project is still a work in progress, and the author invites players to join its Discord and support development through donations.
Is suroi free to use? What license does it have?
suroi is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
Is suroi still maintained?
Actively maintained. The last commit to suroi was on Nov 1, 2026.
What can I use suroi for?
Studying how a real-time multiplayer browser game is structured in TypeScript Hosting a private battle royale server for friends Experimenting with game mechanics on a PixiJS and uWebSockets codebase
How do I install suroi?
Install Git and Bun Clone the repository: git clone https://github.com/HasangerGames/suroi.git Enter the project directory: cd suroi Install dependencies: bun install Start the game locally and open http://127.0.0.1:3000: bun dev
Where can I get suroi?
The source code and installation instructions are on GitHub: https://github.com/HasangerGames/suroi

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects

A free, open source real-time strategy game inspired by Settlers II, with singleplayer campaigns and multiplayer.

Other#game#strategy#real-time-strategy
3.1K+2 this week224C++GPL-2.0Well maintainedUpdated yesterday

Open-source turn-based strategy and board game engine in the style of Axis & Allies and Risk, with community-made maps and multiplayer.

Other#game#strategy-game#turn-based-strategy
1.6K+2 this week498JavaGPL-3.0Well maintainedUpdated yesterday