Description
Moon is a lightweight game server framework built on the actor model. Each worker thread runs one or more actors, called services, which communicate through message queues. The source is kept simple so it stays easy to read. It runs on Windows, Linux and macOS, uses ASIO for scheduling, and uses Lua for game logic scripting. Networking covers TCP, UDP with KCP, WebSockets and HTTP, and Lua coroutines give asynchronous code with coroutine-based sockets. It also includes timers, inter-service and inter-process communication, and async client drivers for Redis, PostgreSQL, MongoDB and MySQL. Other libraries cover JSON, protobuf, the filesystem, navigation meshes through Recast Navigation, and sorted sets for ranking lists. To build it you need a C++23 compiler, such as Visual Studio 2022 17.5 or later, GCC 13 or later, or Clang 16 or later, and premake5. Pre-built binaries are also offered. The project lists a community QQ group and a demo project.…
Highlights
- Actor model with Lua services
- TCP, UDP/KCP, WebSocket and HTTP networking
- Redis, PostgreSQL, MongoDB and MySQL drivers
- Lua coroutine sockets and timers
- Recast Navigation for navigation meshes
- Windows, Linux and macOS
Ratings & Reviews
No ratings yet
Be the first to rate Moon.
People also visit
Open Builder
Open "Minecraft-like" game with multiplayer support and Lua scripting support…
Moon FAQ
What is Moon?
A lightweight game server framework based on the actor model, with game logic scripted in Lua.
Which platforms does it support?
Windows, Linux and macOS.
How do I build it?
Use a C++23 compiler, install premake5, then clone, build and run the source. The quick start also offers pre-built binaries.
Which databases can it connect to?
Redis, PostgreSQL, MongoDB and MySQL through async client drivers.
Where can I get help?
The project lists a community QQ group and a demo project called MoonDemo.
What are the best Moon alternatives?
Popular alternatives to Moon include Open Builder, Moonlight and Moonlight Web Stream. See all Moon alternatives



