Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.
Go
2,834
616 commits
updated Oct 7, 2026
Pitaya is an simple, fast and lightweight game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK. It provides a basic development framework for distributed multiplayer games and server-side applications.
clone the repo
git clone https://github.com/topfreegames/pitaya.git
setup pitaya dependencies
make setup
Here's one example of running Pitaya:
Start etcd (This command requires docker-compose and will run an etcd container locally. An etcd may be run without docker if preferred.)
cd ./examples/testing && docker compose up -d etcd
run the connector frontend server from cluster_grpc example
make run-cluster-grpc-example-connector
run the room backend server from the cluster_grpc example
make run-cluster-grpc-example-room
Now there should be 2 pitaya servers running, a frontend connector and a backend room. To send requests, use a REPL client for pitaya pitaya-cli.
$ pitaya-cli
Pitaya REPL Client
>>> connect localhost:3250
connected!
>>> request room.room.entry
>>> sv-> {"code":0,"result":"ok"}
make test
This command will run both unit and e2e tests.
#TODO
If you have found a security vulnerability, please email security@tfgco.com
Other pitaya-related projects
Documents
Demo
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,842 followers · starred Nov 2023
370 followers · starred Oct 2023
161 followers · starred Feb 2025
116 followers · starred Nov 2020
Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.
Go
2,834
616 commits
updated Oct 7, 2026
Pitaya is an simple, fast and lightweight game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK. It provides a basic development framework for distributed multiplayer games and server-side applications.
clone the repo
git clone https://github.com/topfreegames/pitaya.git
setup pitaya dependencies
make setup
Here's one example of running Pitaya:
Start etcd (This command requires docker-compose and will run an etcd container locally. An etcd may be run without docker if preferred.)
cd ./examples/testing && docker compose up -d etcd
run the connector frontend server from cluster_grpc example
make run-cluster-grpc-example-connector
run the room backend server from the cluster_grpc example
make run-cluster-grpc-example-room
Now there should be 2 pitaya servers running, a frontend connector and a backend room. To send requests, use a REPL client for pitaya pitaya-cli.
$ pitaya-cli
Pitaya REPL Client
>>> connect localhost:3250
connected!
>>> request room.room.entry
>>> sv-> {"code":0,"result":"ok"}
make test
This command will run both unit and e2e tests.
#TODO
If you have found a security vulnerability, please email security@tfgco.com
Other pitaya-related projects
Documents
Demo
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,842 followers · starred Nov 2023
370 followers · starred Oct 2023
161 followers · starred Feb 2025
116 followers · starred Nov 2020