Description
Nano is a lightweight game server networking library for Go, built to be easy to use and fast. It provides a core network architecture and a set of tools and libraries that remove repetitive networking work from common server logic. Nano is designed for server-side applications such as real-time games, social games and mobile games of any size. Its structure is built from components, where each component is a bundle of handlers. Once a component is registered, Nano registers each method that can be converted to a handler in its service container, and clients reach those handlers by component and method name. A handler receives the client session and the request payload, and it replies with session.Response or pushes an event with session.Push, or returns an error when unexpected data arrives. For larger systems, Nano includes a built-in distributed solution, where a group of Nano agents dispatches messages to backend servers, and the README links a distributed chat demo. The project also shows how to run asynchronous tasks. Documentation covers building a first application, route compression, the communication protocol, design patterns and an API reference. Nano is MIT licensed, and the project has a Discord community. The source is on GitHub under lonng/nano.…
Highlights
- Game server networking library for Go
- Component and handler model for game logic
- Built-in distributed solution with agents
- Asynchronous task support
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Nano.
People also visit
GameFrameX
An open-source toolbox that takes a game all the way "from idea → built → live"
Nano FAQ
What is Nano?
A lightweight game server networking library for Go, for real-time, social and mobile games.
Is it free?
Yes. It is MIT licensed and hosted on GitHub.
How are server features organized?
As components that bundle handlers. Each handler receives the client session and the request payload.
Can it run across several servers?
Yes. The README describes a built-in distributed solution, where agents dispatch messages to backend servers.
How do handlers respond to clients?
They reply with session.Response, push events with session.Push, or return an error.
Where can I learn it?
The documentation covers building a first application, route compression, the communication protocol, design patterns and the API reference.
Where can I ask questions?
In the Nano Community Discord linked from the README.
What are the best Nano alternatives?
Popular alternatives to Nano include Due, Goworld and Zinx. See all Nano alternatives

