# centrifuge-js

JavaScript client SDK that connects a browser, Node.js or React Native app to a Centrifugo or Centrifuge server over WebSocket or HTTP-based transports.


Source: https://findsoftware.frbit.cloud/centrifuge-js/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://centrifugal.dev
- repository: https://github.com/centrifugal/centrifuge-js
- docs: https://centrifugal.dev/docs/transports/client_sdk
- x: https://twitter.com/centrifugalabs
- discord: https://discord.gg/tYgADKx
- youtube: https://www.youtube.com/channel/UCdQmdbYM5pzqrrRFmt6KA1Q

### Identity

- status: active
- maintainer: Centrifugal Labs LTD
- maintainerType: unknown
- parent: unknown
- firstRelease: 2015
- hqCountry: CY

### Kind

- category: backend
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: npm install

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 5
- latestReleaseDate: 2026-10-20

### Adoption

- githubStargazers: 512
- packagistDownloads: not applicable
- npmWeeklyDownloads: 2004075
- contributors: 30
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://centrifugal.dev (read 2026-11-04)
- urls: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- urls: https://centrifugal.dev/docs/transports/client_sdk (read 2026-11-04)
- maintainer: https://github.com/centrifugal/centrifuge-js/blob/master/LICENSE (read 2026-11-04)
- hqCountry: https://centrifugal.dev/company (read 2026-11-04)
- license: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- licenseModel: https://github.com/centrifugal/centrifuge-js/blob/master/LICENSE (read 2026-11-04)
- language: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- category: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- installMethod: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- installMethod: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-10-26:2026-11-01/centrifuge (read 2026-11-04)
- githubStargazers: https://github.com/centrifugal/centrifuge-js (read 2026-11-04)
- contributors: https://api.github.com/repos/centrifugal/centrifuge-js/contributors?per_page=1 (read 2026-11-04)
- currentMajor: https://github.com/centrifugal/centrifuge-js/releases/tag/5.8.0 (read 2026-11-04)
- latestReleaseDate: https://github.com/centrifugal/centrifuge-js/releases/tag/5.8.0 (read 2026-11-04)
- firstRelease: https://registry.npmjs.org/centrifuge (read 2026-11-04)

## Notes

centrifuge-js is a JavaScript client SDK that connects a browser, a Node.js process or a React Native app to a Centrifugo or Centrifuge server. WebSocket is the main transport. When a WebSocket connection cannot be established, for example behind a corporate firewall or proxy, the SDK can use HTTP-streaming or SSE instead, and it offers WebTransport as an experimental option. The library works with JSON by default, and a separate Protobuf build sends binary payloads.

The package is installed from npm, or loaded in a page from a CDN script. The [SDK documentation](https://centrifugal.dev/docs/transports/client_sdk) holds the feature matrix. Centrifugal Labs LTD maintains the SDK under the MIT license.

## Worth knowing

The SDK is a client only. A Centrifugo or Centrifuge server must accept the connection, and the HTTP fallbacks need bidirectional emulation enabled on the server first. SockJS usage is deprecated.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
