GitHunt
QU

quant-daddy/graphql-eventbus

GraphQL layer to publish and consume events from any message broker


GraphQL Eventbus

Build a GraphQL powered Event architecture

Overview

GraphQL eventbus is an abstraction layer on top of GraphQL SDL to publish and consume messages in a type-safe way. It is message broker agnotic: you can use Kafka, RabbitMQ, Google Pubsub or any other message broker. With features like code generation, API evolution without breaking changes, plugin system for logging and monitoring, and more, you can build a production quality event hub for your service architecture.

Features

  • โœ‚๏ธ Schema Driven: Define your events and payloads in GraphQL schema. Consume your events using GraphQL documents.
  • ๐Ÿค Message Broker agnostic: Works with any message broker. We provide packages for Google Pubsub and RabbitMQ. You can easily use the library to build a bus for your message broker.
  • ๐Ÿš€ Code Generation: GraphQL Codegen
    plugin to generate code for typescript (npm i graphql-eventbus-codegen).
  • ๐ŸŽฏ Plugins: We provide plugins for logging and monitoring. You can also build your custom plugins.
  • โœด๏ธ Best Practices:: Publish time, event ID, and other metadata propagation are built-in for observability.
  • ๐Ÿค– Testing Utilities:: The library comes with utilities to easily sample payload for your events and test your event handlers.

Documentation

You can find extensive documentation at https://graphql-eventbus.vercel.app

Contributing

We are always looking for people to help us grow graphql-eventbus! If you have an issue, feature request, or pull request, let us know!

Follow us on Twitter!

License

MIT @ [Suraj Keshri]

Languages

TypeScript92.1%JavaScript4.5%MDX2.2%CSS1.2%

Contributors

MIT License
Created January 6, 2022
Updated February 27, 2026
quant-daddy/graphql-eventbus | GitHunt