better-sse
⬆ Dead simple, dependency-less, spec-compliant server-side events implementation for Node, written in TypeScript. (by MatthewWid)
fetch-event-source
A better API for making Event Source requests, with all the features of fetch() (by Azure)
Our great sponsors
better-sse | fetch-event-source | |
---|---|---|
5 | 3 | |
163 | 1,300 | |
- | 12.6% | |
6.8 | 0.0 | |
3 months ago | 11 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
better-sse
Posts with mentions or reviews of better-sse.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-14.
-
How is barely anyone talking about the Server-Sent Events API?
I wrote a library for using SSE with Node and have read the spec front-to-back dozens of times when I was working on it, so I have a fairly good understanding if you have any more unanswered questions!
-
I made a library to make it a breeze to work with server-sent events, server push without websockets
It actually originally started out as an Express middleware, but I then rewrote it to use the underlying Node HTTP native module so it could work with most/all frameworks, and then relied on creating a Recipes section in the docs to demonstrate how to create your own abstractions.
-
A beginner friendly intro to server sent events with node.js
I've been working on a library that makes working with server-sent events easier on the server-side that can hopefully be relevant here.
fetch-event-source
Posts with mentions or reviews of fetch-event-source.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-19.
-
Datastar v0.12.0 (Htmx+Alpine Alternative)
* `text/event-stream` relies on a modified version of [Azure's fetch-event-source](https://github.com/Azure/fetch-event-source). They handle errors and chunking better than I was. New version has been tested out to 4 billion fragments rendered on a single page with no errors.
-
How I put ChatGPT into a WYSIWYG editor
The EventSource Web API for handling SSEs (built into most modern browsers) unfortunately supports only GET requests, which was quite limiting when a POST request with larger body JSON data was required. As an alternative, you can use the Fetch API or a ready library like Microsoft’s Fetch Event Source.
-
GraphQL over SSE (Server-Sent Events)
Aforementioned limitations are taken care with a specialised SSE client (inspired by the awesome @microsoft/fetch-event-source) and two separate connection modes: the HTTP/1 safe "single connection mode" that uses a single SSE connection for receiving events with separate HTTP requests dictating the behaviour, and the HTTP/2+ "distinct connections mode" that uses distinct SSE connections for each GraphQL operation, accommodating the parameters in the request itself.
What are some alternatives?
When comparing better-sse and fetch-event-source you can also consider the following projects:
firebase-js-sdk - Firebase Javascript SDK
fastify - Fast and low overhead web framework, for Node.js
EventSource - a polyfill for http://www.w3.org/TR/eventsource/
Express - Fast, unopinionated, minimalist web framework for node.
feathers - The API and real-time application framework
graphql-sse - Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client.
gungi.io - Online real-time website to play Gungi from Hunter × Hunter ⚡
WHATWG HTML Standard - HTML Standard
openai-node - The official Node.js / Typescript library for the OpenAI API
fastify-sse-v2 - Provide Server-Sent Events to Fastify
vrite - Open-source developer content platform
better-sse vs firebase-js-sdk
fetch-event-source vs fastify
better-sse vs EventSource
fetch-event-source vs Express
better-sse vs feathers
fetch-event-source vs graphql-sse
better-sse vs gungi.io
fetch-event-source vs WHATWG HTML Standard
better-sse vs WHATWG HTML Standard
fetch-event-source vs openai-node
better-sse vs fastify-sse-v2
fetch-event-source vs vrite