graphql-sse
graphql-zeus
Our great sponsors
graphql-sse | graphql-zeus | |
---|---|---|
4 | 17 | |
369 | 1,891 | |
- | 0.8% | |
8.1 | 4.3 | |
3 days ago | 10 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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.
graphql-sse
-
Graph-ql subscriptions without Apollo
The GraphQL over SSE in its simplest form IMHO does not require an additional client library. Setting up a subscription in the browser is as simple as doing the following:
-
GraphQL Subscriptions: Why we use SSE/Fetch over Websockets
There is already a JavaScript implementation for server + client with support for multiplexing from the same maintainer of graphql-ws: graphql-sse
-
how it subscription work on the apollo server?
Actually WebSocket is not the only protocol for executing GraphQL subscriptions. There is also a graphql-over-sse protocol, which is much more lightweight, and uses Server Sent Events. A popular implementation of it is the graphql-sse library, which is maintained by the same person as graphql-ws. The setup and API of both libraries is pretty similar.
-
GraphQL over SSE (Server-Sent Events)
graphql-sse is a reference implementation of the GraphQL over Server-Sent Events Protocol aiming to become a part of the GraphQL over HTTP standard.
graphql-zeus
-
How to define schema once and have server code and client code typed? [Typescript]
When I asked this in StackOverflow over a year ago I reached the solution of using graphql + graphql-zeus.
-
Achieving end-to-end type safety in a modern JS GraphQL stack
You can think of GraphQL Zeus as Prisma for the frontend: it writes GraphQL queries out of JavaScript objects and produces the proper return types.
-
Recommendations for GraphQL and TypeScript?
graphql-zeus: You write your graphql queries using a JavaScript object like syntax. Looks cool, but I think it's too big of a burden on the team to have to give up writing queries using graphql-tag/gql.
- Schema-first development: which languages and libraries support it?
-
Graph-ql subscriptions without Apollo
https://github.com/graphql-editor/graphql-zeus generates subscription code and in generated code you'll find simple apiSubscription function you can use/copy
-
TRPC: End-to-end typesafe APIs made easy
You can do this with GraphQL too:
https://genql.vercel.app/
https://github.com/graphql-editor/graphql-zeus
I did a 5 min talk about these newer breeds of codegen tools (where it's a single client SDK that does automatic return type inference based on the input args), it's really neat:
https://www.youtube.com/watch?v=7n3MeMFHiMk
- GraphQL Zeus 4.0.0 – Autocomplete client for huuuuuge schemas like Hasura
- GraphQL Zeus 4.0.0 – Autocomplete client for huuuuuge schemas
What are some alternatives?
graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
aws-lambda-graphql - Use AWS Lambda + AWS API Gateway v2 for GraphQL subscriptions over WebSocket and AWS API Gateway v1 for HTTP
graphql-let - A webpack loader / babel-plugin / babel-plugin-macros / CLI / generated file manager of GraphQL code generator.
graphql-over-http - Working draft of "GraphQL over HTTP" specification
gqless - a GraphQL client without queries
fetch-event-source - A better API for making Event Source requests, with all the features of fetch()
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
Express - Fast, unopinionated, minimalist web framework for node.
vscode-apollo-relay - Simple configuration of vscode-apollo for Relay projects.
fastify - Fast and low overhead web framework, for Node.js
wundergraph-demo - This Repository demonstrates how to combine 7 APIs (4 Apollo Federation SubGraphs, 1 REST, 1 standalone GraphQL, 1 Mock) into one unified GraphQL API which is then securely exposed as a JSON API to a NextJS Frontend.