logo
icon

Phira MP TS

Phira multiplayer server implemented in Node.js (TypeScript), providing online multiplayer and spectator services for Phira game.

template cover
Deployed1 times
Publisherpimeng7143
Created2026-01-20
Services
service icon
Tags
GameMultiplayerNode.js

Phira MP Typescript

This project is a Node.js (TypeScript) port of the Phira multiplayer server from https://github.com/TeamFlos/phira-mp, maintaining the same protocol and core behavior (handshake, encoding/decoding, room state machine, spectator forwarding, authentication process, etc.).

Features

  • Multiplayer online gaming
  • Spectator mode
  • Configurable via environment variables or YAML
  • Docker support
  • Low resource requirements (tested on 0.5 core, 128MB RAM)

Configuration

  • HOST: TCP service listen address (default "::")
  • PORT: TCP service listen port (default 12346)
  • HTTP_SERVICE: Enable HTTP service (default true)
  • HTTP_PORT: HTTP service listen port (default 12347)
  • ROOM_MAX_USERS: Max users per room (default 8, max 64)
  • MONITORS: Spectator user ID list (default "2")

Ports

  • TCP: 12346
  • HTTP: 12347 (if enabled)