A zero-dependency, protocol-compliant server and client for GraphQL over WebSocket connections.
graphql-ws is a library that implements the GraphQL over WebSocket Protocol, enabling real-time GraphQL subscriptions and operations over WebSocket connections. It provides a server and client solution for building applications that require live data updates, such as chat apps, dashboards, or collaborative tools. The library is designed to be simple, zero-dependency, and fully compliant with the official protocol.
Developers building real-time GraphQL applications, especially those transitioning from deprecated solutions like subscriptions-transport-ws or implementing GraphQL subscriptions for the first time.
It offers a modern, protocol-compliant alternative to older GraphQL over WebSocket libraries, with zero dependencies, lazy execution, and a coherent design that ensures reliability and ease of use.
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Has no external dependencies, minimizing bundle size and reducing potential conflicts, as highlighted in the key features.
Fully implements the official GraphQL over WebSocket Protocol, ensuring standardized and reliable communication for real-time operations.
Uses lazy execution to manage resources by only running operations when necessary, optimizing performance for dynamic applications.
Provides consistent server and client implementations, simplifying integration and reducing development overhead.
Not cross-compatible with older protocols like subscriptions-transport-ws, requiring a full rewrite and coherent implementation on both sides for migration.
Primary documentation is hosted externally on a website, which can be less accessible than in-repo docs and might lead to context switching.
Relies solely on WebSocket support, limiting use in infrastructures where WebSockets are unavailable or impractical, such as some constrained environments.
graphql-ws is an open-source alternative to the following products: