Documentation

OpenFeature Logo

OpenSocket JavaScript SDKs

Known Vulnerabilities codecov CII Best Practices FOSSA Status FOSSA Status Build Status npm version NPM Downloads

The OpenSocket JS SDK is a monorepo that provides JavaScript-based SDKs for building real-time, socket-based applications across multiple JavaScript frameworks and environments. With vendor-agnostic APIs, you can switch between socket providers (like Ably, Socket.IO, and Pusher) effortlessly while maintaining a consistent API.

The js-sdk repository includes the following packages:

  • core: The foundational package for OpenSocket, providing a vendor-agnostic API.
  • react: The SDK for React applications, providing easy-to-use hooks and components.
  • next: The SDK for Next.js applications, designed for server-side and client-side usage.
  • vanilla: The SDK for plain JavaScript applications, allowing integration without any specific framework.
  • angular: The SDK for Angular applications, featuring services and dependency injection for real-time communication.
js-sdk/
├── packages/
│   ├── core/          # Provides the core API and Provider Interface
│   ├── react/         # SDK for React
│   ├── next/          # SDK for Next.js
│   ├── vanilla/       # SDK for Vanilla JavaScript
│   └── angular/       # SDK for Angular

npm install @opensocket/core-js

npm install @opensocket/react-sdk

Interested in contributing? Great, we'd love your help! To get started, take a look at the CONTRIBUTING guide.

Made with ❤

Apache License 2.0

FOSSA Status