OPEN SOURCE · ALL TYPESCRIPT

Three.js Game Engine for Single & Multiplayer

MavonEngine is a Three.js game engine built for real-time browser games — the only one with server-authoritative physics built in. Build single-player or multiplayer 3D games with a unified server-client architecture, integrated physics, and real-time networking.

$npx @mavonengine/cli create my-game
TypeScriptThree.jsRapier PhysicsWebRTCWebXRGLTF / Draco
server.ts● AUTHORITATIVE
import Server from '@mavonengine/core/Networking/Server/Server'
import Player from './Base/Player'

export default class GameServer extends Server<Player> {
  // A client connected: return its player,
  // the server adds and syncs it
  protected onConnection(channel) {
    return new Player(channel.id)
  }

  // Inputs arrive in order and run on the authoritative tick
  protected onCommand(command) {
    const player = this.game.world.entities.items.get(command.playerId)
    player?.applyInput(command)
  }

  // Only sync entities within 200 units of each player
  getStateSyncDistance() {
    return 200
  }
}
PHYSICS
Rapier3D
TRANSPORT
WebRTC · UDP
SYNC RADIUS
200 units
● LIVE DEMO
Play it in your browser — no install.
[01] // ENGINE

Everything in one cohesive package

No more piecing together libraries. MavonEngine ships rendering, physics, networking, animation, particles, and debugging as a unified whole.

Full-Stack Multiplayer Architecture

Shared Entity System — write once, run on server and client. Automatic state synchronization with bandwidth optimization, distance-based culling for entity visibility, and hash-based change detection to minimize network traffic.

Integrated 3D Physics with Rapier

Kinematic character controller with slope climbing and sliding. Configurable parameters — 45° climb, 30° auto-slide. Full body & collider management and physics debug visualization in real-time.

Advanced 3D Rendering with Three.js

The full power of Three.js on its WebGPU renderer (WebGL 2 by default), with TSL node materials, material graphs made in the editor, post-processing effects, the three.js inspector and debug modes including wireframe, armature and physics overlays.

Real-Time Multiplayer Networking

WebRTC-based communication for real-time data channels. Bandwidth tracking & monitoring, command buffering & processing across network latency, and server health monitoring with built-in HTTP endpoints.

Skeletal Animation System

Animation state management with logical organization. Smooth fade transitions with configurable duration, GLTF model support with Draco compression, and efficient skeleton cloning for instanced models.

Particle Effects Framework

Built-in effects — rain and smoke ready to use. Custom shader support for unique particle visuals.

Scenes Shared by Client & Server

One JSON scene file for both sides — the client builds what is rendered, the server builds colliders and game logic. Save in the editor and the server reloads the map for every connected player. Logic graphs add game logic without code, on the client or the server.

Engine Plugins

Official plugins for chat, accounts, a database, mail, notifications and monitoring, installed with mavonengine install or from the dashboard and the editor. mavonengine build ships only the assets your game uses. Plugins can add editor tooling and tools for AI assistants.

VR & Gamepad Support

Play in a VR headset through WebXR with game.enableXR() — controllers, thumbstick movement, a camera rig for third person and labels and menus in VR. Xbox, PlayStation and generic gamepads out of the box, with deadzones, button labels and rumble.

Live Server Monitoring

Tick time against the tick budget, CPU, bandwidth, the job queue, players and their accounts, logs, HTTP requests and the database — in the terminal or in the browser behind a login.

AI Assistant Support (MCP)

mavonengine mcp lets any AI coding assistant inspect your running game: server metrics, scenes and entities, renderer stats, console, screenshots and frame traces — and read these docs. Plugins add their own tools, like the dev inbox, so an assistant can follow a sign-up to its confirmation mail.

Latency Simulation

Test your netcode against artificial latency, jitter and packet loss before your players do.

Player Accounts

Logins, sessions and guests who keep their progress when they register. Every connection gets a stable account id. Email confirmation and password resets by mail.

Database & Job Queue

A SQLite database on Node's built-in node:sqlite, with migrations per plugin. Background jobs with retries, backoff and delays that survive a restart.

Mail & Notifications

player.notify(new LevelUp()) reaches the player in the game, by mail, or kept to read later. Queued mail in a layout you can change, over SMTP or any nodemailer transport.

[02] // LEVEL EDITOR · EARLY WIP

Edit the world while it runs.

A level editor that boots inside the running game and stays connected to the server. Edit the scene, press save, and the server reloads the map for every player. Dock your own tools as custom panels.

Ctrl+S→ map reloads for all players
[03] // PLUGINS & SCREENSHOTS

Plug it in. Watch it run.

Official plugins for chat, accounts, a database, mail, notifications and monitoring — one command each, and the engine wires them together. Plugins can use each other and share the same database.

npx @mavonengine/cli create my-game
New project with physics and multiplayer, ready in under a minute.
MavonEngine server monitoring dashboard: CPU, network and tick charts, world stats, players and logs
Live server monitoring@mavonengine/http-monitoring
[04] // LIVE OPS

Everything a Live Game Needs

Accounts, a database, background jobs, mail and notifications — the server side of a game that players keep coming back to. Install the plugins you need, and the engine wires them together.

server.ts
export default class GameServer extends Server<Player> {
  // Every connection has an account, the same on every reconnect
  protected onConnection(channel) {
    const player = new Player(channel.id)
    this.logger.info(`${player.identity?.name} joined`)
    return player
  }

  // In the game, by mail and kept in the player's inbox
  async levelUp(player: Player, level: number) {
    await player.notify(new LevelUp(level))
    // Slow work goes on the queue, tried again when it fails
    await this.queue.dispatch(new GrantReward({
      player: player.identity!.id, coins: 100
    }))
  }

  // Plugins share one database, each with its own tables
  topScores() {
    return this.db?.selectFrom('game_scores')
      .selectAll().limit(10).execute()
  }
}
[05] // PREFABS

Drop in. Tweak. Ship.

Ready-to-use prefabs built by the community — from environment assets to gameplay elements. Pull any prefab directly into the editor, and anyone can publish to the community registry.

Browse the prefab docs

Grass

WIND · LOD

Lush, performant grass fields with wind simulation and LOD support. Configure density, sway, and color in seconds.

Water

3 LOD · SHADER

Basic water shader with 3 LOD levels and basic customizations — ready to use out of the box.

[06] // ARCHITECTURE

Built different

Most multiplayer browser games are held together with duct tape. MavonEngine is designed from the ground up as a unified system — so everything works together out of the box.

01

Complete Solution

Rendering, physics, networking, entity management, asset loading, animation, particles, and debugging tools in one cohesive package.

02

Server + Client Unity

Write game logic once and it works on both server and client. The shared entity system eliminates duplication and drift. The server runs a simplified hitbox scene alongside the client's full Three.js world — enabling authoritative hit detection, raycasting, and spatial queries without trusting the client.

03

Networking Built In

Distance-based culling, hash-based change detection, bandwidth monitoring, and automatic state synchronization — all built in, none bolted on.

04

Developer Experience

One command to create and run a project, a live server dashboard, Tweakpane debug panels, physics overlays, MCP support for AI assistants, and comprehensive TypeScript types.

05

Extensible Architecture

Abstract base classes let you customize servers, entities, and game logic without fighting the framework. Engine plugins add client, server and editor features as npm packages.

[07] // USE CASES

What can you build?

Anything that needs players, physics, and a world in the browser.

Action RPGs
PvP Combat Games
Open World Multiplayer
Physics-Based Games
Single-Player 3D Games
[08] // FAQ

Frequently Asked Questions

What is a Three.js game engine?

A Three.js game engine builds on top of Three.js's rendering to add the systems every game needs — physics, networking, entity management, animations, and tooling. MavonEngine is a Three.js game engine built specifically for browser games, with server-authoritative physics and multiplayer networking built in from the start.

How is a Three.js game engine different from vanilla Three.js?

Three.js is a rendering library — it draws 3D scenes in the browser. MavonEngine adds everything else: an entity system, state machines, physics simulation, real-time multiplayer networking, asset loading, animations, particles, and a level editor.

Can you build multiplayer games with Three.js?

Yes, but Three.js alone has no networking or physics. MavonEngine runs Rapier3D physics on the server alongside the client's Three.js scene, with WebRTC-based state synchronization built in.

What is the best Three.js game engine for multiplayer?

MavonEngine is purpose-built for multiplayer browser games. It runs a server-authoritative physics simulation in parallel with the client's Three.js world, giving you accurate hit detection, anti-cheat, and real-time state sync without building it from scratch.

Does a Three.js game engine handle physics?

MavonEngine includes Rapier3D physics on both the server and client. The server runs the authoritative simulation — collision, hit detection, spatial queries — while the client uses physics for visual feedback.

Is there a free Three.js game engine?

Yes. MavonEngine is free and open source — rendering, physics, multiplayer networking, entity management, animations, particles, and a level editor, all at no cost.

Does MavonEngine handle player accounts and logins?

Yes. The @mavonengine/auth plugin adds accounts, sessions, guest play and login rate limiting; with @mavonengine/mail it confirms emails and resets passwords. Player accounts docs.

Can a Three.js game send emails and notifications to players?

With MavonEngine, yes. player.notify(new LevelUp()) reaches the player in the game, by mail and in an inbox. Mail goes on the server's job queue and is retried when the mail server is down.

Can I build VR games with Three.js?

Yes. MavonEngine plays your game in a VR headset through WebXR, in a Quest's browser or desktop Chrome with a PC headset. The same game runs on desktop and in VR, and the multiplayer template turns it on wherever the browser can. VR docs.

How do I start building a 3D browser game with Three.js?

Scaffold a project with npx @mavonengine/cli create my-game — a working project with physics and multiplayer in under a minute. Then follow the Getting Started guide.

[09] // COMMUNITY

Latest from the forum

Questions, showcases and announcements from people building with MavonEngine.

Visit the forum
// READY PLAYER ONE

Build Multiplayer 3D Games Faster

Server + Client + Physics + Networking + Rendering + VR + Scenes + Animation + Particles + Accounts + Database + Queue + Mail + Plugins + Tooling. All in one package. All working together. All TypeScript.