Subscriptions and Live Queries - Real Time with GraphQL

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • graphql-spec

    GraphQL is a query language and execution engine tied to any backend service.

  • However, discussion about GraphQL Live Queries started way back when GraphQL Subscriptions were designed.

  • graphql-ws

    Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.

  • The interesting thing is that we can use any transport for delivering the results to client. The most popular implementation (as mentioned before) is subscriptions-transport-ws. Unfortunately, since it is poorly maintained, the GraphQL Working Group came up with a new implementation over WebSockets, graphql-ws.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • graphql-subscriptions

    :newspaper: A small module that implements GraphQL subscriptions for Node.js

  • The most common used (but not best maintained) library for such a PubSub engine in the GraphQL context is graphql-subscriptions. There are also adapters available for more distributed systems (where all GraphQL API replicas must be notified about the event) e.g. over Redis.

  • graphql-helix

    A highly evolved GraphQL HTTP Server 🧬

  • Fortunately, we now have libraries like Graphql Helix, which, in my humble opinion, should replace express-graphql as the reference HTTP implementation since GraphQL Helix is also not tied to any web server framework.

  • graphql-live-queries

    Discontinued Realtime GraphQL Live Queries with JavaScript [Moved to: https://github.com/n1ru4l/graphql-live-query]

  • I also built my own transport over Socket.io, which uses WebSockets by default and HTTP polling as a fallback.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts