{"id":13412943,"url":"https://github.com/topfreegames/pitaya","last_synced_at":"2026-01-17T10:53:24.204Z","repository":{"id":37711745,"uuid":"125911051","full_name":"topfreegames/pitaya","owner":"topfreegames","description":"Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.","archived":false,"fork":false,"pushed_at":"2026-01-16T14:07:16.000Z","size":6927,"stargazers_count":2720,"open_issues_count":49,"forks_count":523,"subscribers_count":91,"default_branch":"main","last_synced_at":"2026-01-17T04:29:58.605Z","etag":null,"topics":["android","game","game-framework","game-server","golang-application","ios"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topfreegames.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-19T19:40:36.000Z","updated_at":"2026-01-16T16:26:41.000Z","dependencies_parsed_at":"2026-01-16T18:08:03.567Z","dependency_job_id":null,"html_url":"https://github.com/topfreegames/pitaya","commit_stats":{"total_commits":616,"total_committers":54,"mean_commits":"11.407407407407407","dds":0.698051948051948,"last_synced_commit":"5230ff3dc79b461f55b6193bb9d0ae5c3d13869f"},"previous_names":[],"tags_count":149,"template":false,"template_full_name":null,"purl":"pkg:github/topfreegames/pitaya","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfreegames%2Fpitaya","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfreegames%2Fpitaya/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfreegames%2Fpitaya/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfreegames%2Fpitaya/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topfreegames","download_url":"https://codeload.github.com/topfreegames/pitaya/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfreegames%2Fpitaya/sbom","scorecard":{"id":894573,"data":{"date":"2025-08-11","repo":{"name":"github.com/topfreegames/pitaya","commit":"08d34a00bfc535b4e280cf74fd1092562375402d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 6/27 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/topfreegames/pitaya/tests.yaml/main?enable=pin","Warn: containerImage not pinned by hash: examples/testing/docker/Dockerfile:1: pin your Docker image by updating alpine:3.7 to alpine:3.7@sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10","Warn: containerImage not pinned by hash: xk6-pitaya/Dockerfile:2","Warn: containerImage not pinned by hash: xk6-pitaya/Dockerfile:15: pin your Docker image by updating grafana/k6:latest to grafana/k6:latest@sha256:072db027099dc3b34b90334d5ac0fdc3de99fd6969da8f686f6916cb78900544","Warn: goCommand not pinned by hash: xk6-pitaya/Dockerfile:6","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3250 / GHSA-29wx-vh33-7x7r","Warn: Project is vulnerable to: GO-2025-3553 / GHSA-mh63-6h87-95cp","Warn: Project is vulnerable to: GO-2025-3600 / GHSA-fhg8-qxh5-7q3w","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2024-2978 / GHSA-xr7q-jx4m-x55m"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T13:12:27.817Z","repository_id":37711745,"created_at":"2025-08-24T13:12:27.817Z","updated_at":"2025-08-24T13:12:27.817Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","game","game-framework","game-server","golang-application","ios"],"created_at":"2024-07-30T20:01:31.423Z","updated_at":"2026-01-17T10:53:24.186Z","avatar_url":"https://github.com/topfreegames.png","language":"Go","funding_links":[],"categories":["游戏开发","Game Development","Uncategorized","Relational Databases","Go"],"sub_categories":["检索及分析资料库","Advanced Console UIs","Uncategorized","Search and Analytic Databases","SQL 查询语句构建库","Unity Engine: Resources"],"readme":"# pitaya [![Build Status][7]][8] [![Coverage Status][9]][10] [![GoDoc][1]][2] [![Docs][11]][12] [![Go Report Card][3]][4] [![MIT licensed][5]][6]\n\n---\n\n[1]: https://godoc.org/github.com/topfreegames/pitaya?status.svg\n[2]: https://godoc.org/github.com/topfreegames/pitaya\n[3]: https://goreportcard.com/badge/github.com/topfreegames/pitaya\n[4]: https://goreportcard.com/report/github.com/topfreegames/pitaya\n[5]: https://img.shields.io/badge/license-MIT-blue.svg\n[6]: LICENSE\n[7]: https://github.com/topfreegames/pitaya/actions/workflows/tests.yaml/badge.svg\n[8]: https://github.com/topfreegames/pitaya/actions/workflows/tests.yaml\n[9]: https://coveralls.io/repos/github/topfreegames/pitaya/badge.svg?branch=master\n[10]: https://coveralls.io/github/topfreegames/pitaya?branch=master\n[11]: https://readthedocs.org/projects/pitaya/badge/?version=latest\n[12]: https://pitaya.readthedocs.io/en/latest/?badge=latest\n\nPitaya 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](https://github.com/topfreegames/libpitaya).\nIt provides a basic development framework for distributed multiplayer games and server-side applications.\n\n## Getting Started\n\n### Prerequisites\n\n* [Go](https://golang.org/) \u003e= 1.16\n* [etcd](https://github.com/coreos/etcd) (optional, used for service discovery)\n* [nats](https://github.com/nats-io/nats.go) (optional, used for sending and receiving rpc)\n* [docker](https://www.docker.com) (optional, used for running etcd and nats dependencies on containers)\n\n### Installing\nclone the repo\n```\ngit clone https://github.com/topfreegames/pitaya.git\n```\nsetup pitaya dependencies\n```\nmake setup\n```\n\n### Hacking pitaya\n\nHere's one example of running Pitaya:\n\nStart etcd (This command requires docker-compose and will run an etcd container locally. An etcd may be run without docker if preferred.)\n```\ncd ./examples/testing \u0026\u0026 docker compose up -d etcd\n```\nrun the connector frontend server from cluster_grpc example\n```\nmake run-cluster-grpc-example-connector\n```\nrun the room backend server from the cluster_grpc example\n```\nmake run-cluster-grpc-example-room\n```\n\nNow 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](https://github.com/topfreegames/pitaya/tree/main/pitaya-cli).\n\n```\n$ pitaya-cli\nPitaya REPL Client\n\u003e\u003e\u003e connect localhost:3250\nconnected!\n\u003e\u003e\u003e request room.room.entry\n\u003e\u003e\u003e sv-\u003e {\"code\":0,\"result\":\"ok\"}\n```\n\n## Running the tests\n```\nmake test\n```\nThis command will run both unit and e2e tests.\n\n## Contributing\n#TODO\n\n## Authors\n* **TFG Co** - Initial work\n\n## License\n[MIT License](./LICENSE)\n\n## Acknowledgements\n* [nano](https://github.com/lonnng/nano) authors for building the framework pitaya is based on.\n* [pomelo](https://github.com/NetEase/pomelo) authors for the inspiration on the distributed design and protocol\n\n## Security\nIf you have found a security vulnerability, please email security@tfgco.com\n\n## Resources\n- Other pitaya-related projects\n  + [libpitaya-cluster](https://github.com/topfreegames/libpitaya-cluster)\n  + [libpitaya](https://github.com/topfreegames/libpitaya)\n  + [pitaya-admin](https://github.com/topfreegames/pitaya-admin)\n  + [pitaya-bot](https://github.com/topfreegames/pitaya-bot)\n  + [pitaya-cli](https://github.com/topfreegames/pitaya/tree/main/pitaya-cli)\n  + [pitaya-protos](https://github.com/topfreegames/pitaya-protos)\n\n- Documents\n  + [API Reference](https://godoc.org/github.com/topfreegames/pitaya)\n  + [In-depth documentation](https://pitaya.readthedocs.io/en/latest/)\n\n- Demo\n  + [Implement a chat room in ~100 lines with pitaya and WebSocket](./examples/demo/chat) (adapted from [nano](https://github.com/lonnng/nano)'s example)\n  + [Pitaya cluster mode example](./examples/demo/cluster)\n  + [Pitaya cluster mode with protobuf protocol example](./examples/demo/cluster_protobuf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopfreegames%2Fpitaya","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopfreegames%2Fpitaya","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopfreegames%2Fpitaya/lists"}