# asaskevich/EventBus

[Go] Lightweight eventbus with async compatibility for Go

Repository: https://github.com/asaskevich/EventBus
Canonical: https://ross.abutalabs.com/products/asaskevich-eventbus
Homepage: https://asaskevich.dev/projects/eventbus/
Language: Go
License: MIT
License Family: permissive
Topics: event-driven, golang
Last push: 2024-06-19T06:33:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4275, "days_push": 805, "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 1984, forks 242 (observed 2026-08-28T04:06:02.537727+00:00)

## What it is
A lightweight event bus library for Go supporting synchronous and asynchronous subscribe/publish patterns with topic-based handlers. It also offers optional cross-process events via RPC and is widely adopted in open-source Go projects.

## Use cases
- decouple components in a Go application with pub/sub events
- run event handlers asynchronously in goroutines
- subscribe once to a topic and auto-remove the handler
- coordinate event-driven workflows in Go services
- publish events across processes via RPC

## When to choose
- you need a tiny, dependency-free event bus in Go
- you want both sync and async handler support
- you need simple topic-based subscribe/publish semantics

## When to avoid
- you need durable message queues or delivery guarantees
- you need distributed messaging at scale like Kafka or NATS
- you need typed, compile-time-checked event contracts

## Facets
- artifact type: library
- maturity: stable
- function: message-queue, concurrency, middleware
- domain: developer-tools, backend, microservices
- platform: go, cross-platform
- tags: event-bus, pub-sub, event-driven, async-handlers, lightweight

## Member repositories
- asaskevich/EventBus (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:02.537727+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-30T03:03:18.730531+00:00, confidence not recorded.
  - readme: https://github.com/asaskevich/EventBus (fetched 2026-08-28T04:06:02.537727+00:00, sha 55dba8913a5e)
  - homepage: https://asaskevich.dev/projects/eventbus/ (fetched 2026-08-29T10:43:04.494697+00:00, sha b9eeb0195924)
  - site_page: https://asaskevich.dev/ (fetched 2026-08-29T10:43:04.497253+00:00, sha 2e86f2151228)
- Data as of 2026-08-30T08:39:29.467469+00:00.
