Top 6 TypeScript server-sent-event Projects
-
centrifuge-js
JavaScript client SDK to communicate with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native. Supports WebSocket, HTTP-streaming over Fetch and Readable Stream API, EventSource, WebTransport and SockJS.
-
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.
-
graphql-sse
Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client.
-
better-sse
⬆ Dead simple, dependency-less, spec-compliant server-side events implementation for Node, written in TypeScript.
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.
Project mention: How is barely anyone talking about the Server-Sent Events API? | /r/webdev | 2023-06-14I 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!
TypeScript server-sent-events related posts
Index
What are some of the best open-source server-sent-event projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | fetch-event-source | 1,300 |
2 | centrifuge-js | 375 |
3 | graphql-sse | 368 |
4 | better-sse | 162 |
5 | peko | 153 |
6 | fastify-sse-v2 | 89 |