cesarferreira/SwiftEventBus
A publish/subscribe EventBus optimized for iOS observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4226
- days_rel: 34
- days_push: 34
- n_releases_24m: 2
Adoption not part of the score
1121 stars · 109 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SwiftEventBus is a small, thread-safe publish/subscribe event bus library for Apple platforms, built on NotificationCenter with a cleaner API. It lets iOS, macOS, tvOS, and watchOS components communicate via named events without direct references or delegate wiring.
Use cases
- decouple ios view controllers with a pub/sub event bus
- post events to the main thread from background work
- replace messy NotificationCenter stringly-typed observers
- broadcast events across app components without delegates
- auto-unregister subscribers when a target is deallocated
- deliver notifications on background threads or custom queues
When to choose
- you want simple named-event pub/sub across Swift components
- you need thread-aware delivery (main thread, background, custom queues)
- you want lifecycle-friendly observer cleanup with one unregister call
- you need a Foundation-only library usable on all Apple platforms via SPM
When to avoid
- you need strongly-typed events rather than name-based notifications
- you prefer reactive frameworks like Combine or RxSwift
- your app architecture already uses delegates or Combine pipelines
- you need event delivery guarantees or persistence
Facets
library · maturity active
middleware concurrency mobile-development developer-tools event-bus pub-sub notificationcenter thread-safe decoupling swift-package-manager ios macos swift mobile
1 source
- readme: https://github.com/cesarferreira/SwiftEventBus · fetched 2026-08-28 · 6079c748b790
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cesarferreira/SwiftEventBus | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="cesarferreira/SwiftEventBus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem