# r3labs/sse

Server Sent Events server and client for Golang

Repository: https://github.com/r3labs/sse
Canonical: https://ross.abutalabs.com/products/sse
Language: Go
License: MPL-2.0
License Family: copyleft
Topics: golang, sse, eventstream
Last push: 2024-06-26T04:19:05+00:00

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

## Adoption (not part of the score)
Stars 1045, forks 193 (observed 2026-08-28T04:03:21.486848+00:00)

## What it is
A Go library providing both server and client implementations for Server-Sent Events (SSE). It includes a message scheduler with named streams for publishing events and client subscription helpers.

## Use cases
- stream real-time events from a Go server to browsers
- subscribe to an SSE endpoint and process events in Go
- publish messages to named event streams
- detect disconnected SSE clients
- build live notification or update feeds over HTTP

## When to choose
- you need one-way server-to-client event streaming in Go
- you want a lightweight alternative to WebSockets for push updates
- you need both SSE server and client support in the same language

## When to avoid
- you need bidirectional communication (use WebSockets instead)
- your project is not written in Go
- you need a full-featured message broker rather than an HTTP event stream

## Facets
- artifact type: library
- maturity: stable
- function: websocket, http-server, http-client, middleware
- domain: web-development, backend, apis
- platform: go, windows, cross-platform
- tags: server-sent-events, sse, event-stream, pubsub, golang, real-time, linux, macos

## Member repositories
- r3labs/sse (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.486848+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-30T07:02:07.557973+00:00, confidence not recorded.
  - readme: https://github.com/r3labs/sse (fetched 2026-08-28T04:03:21.486848+00:00, sha c9060de552c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
