# apollographql/graphql-subscriptions

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

Repository: https://github.com/apollographql/graphql-subscriptions
Canonical: https://ross.abutalabs.com/products/graphql-subscriptions
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql-subscriptions, graphql, real-time
Last push: 2024-11-11T21:51:02+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3666, "days_push": 660, "days_rel": 660, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1617, forks 130 (observed 2026-08-28T04:05:11.996495+00:00)

## What it is
A small TypeScript library that implements GraphQL subscriptions by wiring a PubSub system (e.g., EventEmitter or Redis) into GraphQL resolvers. It works with any GraphQL server and client, and requires a network transport like subscriptions-transport-ws.

## Use cases
- implement real-time GraphQL subscriptions in Node.js
- publish events to GraphQL subscription resolvers via a pubsub system
- back GraphQL subscriptions with Redis or another EventEmitter-based pubsub
- add live data updates to a GraphQL API
- create typed pubsub events for GraphQL subscriptions

## When to choose
- you need real-time push updates over GraphQL subscriptions
- you want a transport-agnostic pubsub layer that works with any GraphQL server
- you want a lightweight, well-maintained library from the Apollo ecosystem

## When to avoid
- you need a full subscription server or WebSocket transport (use subscriptions-transport-ws or graphql-ws alongside it)
- your project does not use GraphQL
- you need client-side subscription handling rather than server-side publishing

## Facets
- artifact type: library
- maturity: stable
- function: graphql, websocket, middleware
- domain: web-development, backend, apis
- platform: -
- tags: pubsub, graphql-subscriptions, event-emitter, async-iterators, real-time, nodejs, typescript

## Member repositories
- apollographql/graphql-subscriptions (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:11.996495+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:49:44.889129+00:00, confidence not recorded.
  - readme: https://github.com/apollographql/graphql-subscriptions (fetched 2026-08-28T04:05:11.996495+00:00, sha 114b74490cce)
  - registry_npm: https://registry.npmjs.org/graphql-subscriptions (fetched 2026-08-29T11:22:33.054550+00:00, sha 9e6bf35bcbf2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
