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 β€