{"id":13413386,"url":"https://github.com/centrifugal/centrifugo","last_synced_at":"2026-03-12T22:10:10.982Z","repository":{"id":29665927,"uuid":"33208063","full_name":"centrifugal/centrifugo","owner":"centrifugal","description":"Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably, socket.io, Phoenix.PubSub, SignalR. Set up once and forever.","archived":false,"fork":false,"pushed_at":"2026-03-07T17:05:59.000Z","size":139358,"stargazers_count":10031,"open_issues_count":23,"forks_count":681,"subscribers_count":191,"default_branch":"master","last_synced_at":"2026-03-07T22:31:17.436Z","etag":null,"topics":["ably","alternative","eventsource","grpc","http-streaming","http3","messaging","pubnub","pubsub","pusher","real-time","redis","scalability","server-sent-events","socket-io","sse","streaming","websocket","websockets","webtransport"],"latest_commit_sha":null,"homepage":"https://centrifugal.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/centrifugal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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},"funding":{"github":"centrifugal"}},"created_at":"2015-03-31T20:26:49.000Z","updated_at":"2026-03-07T17:06:03.000Z","dependencies_parsed_at":"2025-12-27T17:06:51.411Z","dependency_job_id":null,"html_url":"https://github.com/centrifugal/centrifugo","commit_stats":{"total_commits":1546,"total_committers":46,"mean_commits":"33.608695652173914","dds":"0.10996119016817596","last_synced_commit":"ee608cb1a19bc87359000c9a300a442a5bbbc9fc"},"previous_names":[],"tags_count":146,"template":false,"template_full_name":null,"purl":"pkg:github/centrifugal/centrifugo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centrifugal%2Fcentrifugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centrifugal%2Fcentrifugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centrifugal%2Fcentrifugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centrifugal%2Fcentrifugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centrifugal","download_url":"https://codeload.github.com/centrifugal/centrifugo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centrifugal%2Fcentrifugo/sbom","scorecard":{"id":251516,"data":{"date":"2025-08-11","repo":{"name":"github.com/centrifugal/centrifugo","commit":"6e43cd84b8ab1c6b19d512ecb0b4ee911b4d0b44"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"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":"Maintained","score":10,"reason":"29 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","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/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml: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: Apache License 2.0: 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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v6.2.5 not signed: https://api.github.com/repos/centrifugal/centrifugo/releases/238858921","Warn: release artifact v6.2.4 not signed: https://api.github.com/repos/centrifugal/centrifugo/releases/235069718","Warn: release artifact v6.2.3 not signed: https://api.github.com/repos/centrifugal/centrifugo/releases/231761678","Warn: release artifact v6.2.2 not signed: https://api.github.com/repos/centrifugal/centrifugo/releases/228582782","Warn: release artifact v6.2.1 not signed: https://api.github.com/repos/centrifugal/centrifugo/releases/220429269","Warn: release artifact v6.2.5 does not have provenance: https://api.github.com/repos/centrifugal/centrifugo/releases/238858921","Warn: release artifact v6.2.4 does not have provenance: https://api.github.com/repos/centrifugal/centrifugo/releases/235069718","Warn: release artifact v6.2.3 does not have provenance: https://api.github.com/repos/centrifugal/centrifugo/releases/231761678","Warn: release artifact v6.2.2 does not have provenance: https://api.github.com/repos/centrifugal/centrifugo/releases/228582782","Warn: release artifact v6.2.1 does not have provenance: https://api.github.com/repos/centrifugal/centrifugo/releases/220429269"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:7"],"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":"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/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/centrifugal/centrifugo/test.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating alpine:3.21 to alpine:3.21@sha256:b6a6be0ff92ab6db8acd94f5d1b7a6c2f0f5d10ce3c24af348d333ac6da80685","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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"}}]},"last_synced_at":"2025-08-17T08:34:44.321Z","repository_id":29665927,"created_at":"2025-08-17T08:34:44.321Z","updated_at":"2025-08-17T08:34:44.321Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30446431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ably","alternative","eventsource","grpc","http-streaming","http3","messaging","pubnub","pubsub","pusher","real-time","redis","scalability","server-sent-events","socket-io","sse","streaming","websocket","websockets","webtransport"],"created_at":"2024-07-30T20:01:39.156Z","updated_at":"2026-03-12T22:10:10.956Z","avatar_url":"https://github.com/centrifugal.png","language":"Go","funding_links":["https://github.com/sponsors/centrifugal"],"categories":["Messaging","Misc","开源类库","Tools per Language","Programming","Go","消息传递","\u003cspan id=\"消息-messaging\"\u003e消息 Messaging\u003c/span\u003e","Open source library","\u003e 3k ★","网络服务","Software","Apps","Notification","Recently Updated","消息","消息系统","Projects","Communication systems","机器学习","Relational Databases","Инфраструктура и DevOps","Backend \u0026 Infrastructure","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo"],"sub_categories":["Advanced Console UIs","即时通信","Agnostic","Golang","交流","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Instant Messages","网络服务_其他","Communication - Custom Communication Systems","Tools","[Mar 19, 2025](/content/2025/03/19/README.md)","检索及分析资料库","Search and Analytic Databases","SQL 查询语句构建库","Message Broker","Custom communication systems"],"readme":"Centrifugo is an open-source scalable real-time messaging server. Centrifugo can instantly deliver messages to application online users connected over supported transports (WebSocket, HTTP-streaming, Server-Sent Events (aka EventSource), GRPC, WebTransport). Centrifugo has the concept of channel subscriptions – so it's a user-facing PUB/SUB server.\n\nCentrifugo is language-agnostic and can be used to build chat apps, live comments, multiplayer games, real-time data visualizations, collaborative tools, etc. in combination with any backend. It is well suited for modern architectures and allows decoupling the business logic from the real-time transport layer.\n\nSeveral official client SDKs for browser and mobile development wrap the bidirectional protocol. In addition, Centrifugo supports a unidirectional approach for simple use cases with no SDK dependency.\n\n## Documentation\n\n* [Centrifugo official documentation site](https://centrifugal.dev)\n* [Installation instructions](https://centrifugal.dev/docs/getting-started/installation)\n* [Getting started tutorial](https://centrifugal.dev/docs/getting-started/quickstart)\n* [Design overview and idiomatic usage](https://centrifugal.dev/docs/getting-started/design)\n* [Build a WebSocket chat/messenger app with Centrifugo](https://centrifugal.dev/docs/tutorial/intro) tutorial\n* [Centrifugal blog](https://centrifugal.dev/blog)\n* [FAQ](https://centrifugal.dev/docs/faq)\n\n## Join community\n\n* [Telegram](https://t.me/joinchat/ABFVWBE0AhkyyhREoaboXQ)\n* [Discord](https://discord.gg/tYgADKx)\n* [Twitter](https://twitter.com/centrifugalabs)\n\n## Why Centrifugo\n\nThe core idea of Centrifugo is simple – it's a PUB/SUB server on top of modern real-time transports:\n\n\u003cimg src=\"https://centrifugal.dev/img/protocol_pub_sub.png?v=2\" /\u003e\n\nThe hard part is to make this concept production-ready, efficient, flexible and available from different application environments. Centrifugo is a mature solution that already helped many projects with adding real-time features and scale towards many concurrent connections. Centrifugo provides a set of features not available in other open-source solutions in the area:\n\n* Efficient real-time transports: WebSocket, HTTP-streaming, Server-Sent Events, GRPC, WebTransport\n* Built-in scalability with Redis (or Redis Cluster, or Redis-compatible storage – ex. AWS Elasticache, Valkey, KeyDB, DragonflyDB, etc), or Nats.\n* Simple HTTP and GRPC server API to communicate with Centrifugo from the app backend\n* Asynchronous PostgreSQL and Kafka consumers to support transactional outbox and CDC patterns\n* Flexible connection authentication mechanisms: JWT and proxy-like (via request from Centrifugo to the backend)\n* Channel subscription multiplexing over a single connection\n* Different types of subscriptions: client-side and server-side\n* Various channel permission strategies, channel namespace concept\n* Hot message history in channels, with automatic message recovery upon reconnect, cache recovery mode (deliver latest publication immediately upon subscription)\n* Delta compression in channels based on Fossil algorithm\n* Online channel presence information, with join/leave notifications\n* A way to send RPC calls to the backend over the real-time connection\n* Strict and effective client protocol wrapped by several official SDKs\n* JSON and binary Protobuf message transfer, with optimized serialization and built-in batching\n* Beautiful embedded admin web UI\n* Great observability with lots of Prometheus metrics exposed and official Grafana dashboard\n* And much more, visit [Centrifugo documentation site](https://centrifugal.dev)\n\n## Backing\n\nThis repository is hosted by [packagecloud.io](https://packagecloud.io/).\n\n\u003ca href=\"https://packagecloud.io/\"\u003e\u003cimg height=\"46\" width=\"158\" alt=\"Private NPM registry and Maven, RPM, DEB, PyPi and RubyGem Repository · packagecloud\" src=\"https://packagecloud.io/images/packagecloud-badge.png\" /\u003e\u003c/a\u003e\n\nAlso thanks to [JetBrains](https://www.jetbrains.com/) for supporting OSS (most of the code here written in Goland):\n\n\u003ca href=\"https://www.jetbrains.com/\"\u003e\u003cimg height=\"140\" src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png\" alt=\"JetBrains logo\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentrifugal%2Fcentrifugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentrifugal%2Fcentrifugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentrifugal%2Fcentrifugo/lists"}