mroderick/PubSubJS
Dependency free publish/subscribe for JavaScript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: n/a
- age_days: 5817
- days_rel: n/a
- days_push: 674
- n_releases_24m: 0
Adoption not part of the score
4857 stars · 459 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PubSubJS is a dependency-free, topic-based publish/subscribe library for JavaScript. It decouples publishers from subscribers via asynchronous message delivery, with optional synchronous publication, and runs anywhere JavaScript executes.
Use cases
- decouple components in a JavaScript app with an event bus
- publish and subscribe to named topics in the browser
- implement event-driven communication in a single-process Node.js app
- replace jQuery custom events with a lightweight pub/sub library
- broadcast messages between modules without direct dependencies
When to choose
- you need a tiny (<1kb) dependency-free event bus
- you want asynchronous, loosely coupled communication within a single process
- you need compatibility with very old JavaScript environments (ES3)
When to avoid
- you need multi-process or distributed messaging (use Redis Pub/Sub or a message queue)
- you need guaranteed message delivery, persistence, or ordering
- you already use a framework with a built-in event system
Facets
library · maturity stable
middleware developer-tools web-development frontend developer-tools browser cross-platform pubsub event-bus publish-subscribe dependency-free event-driven javascript nodejs
1 source
- readme: https://github.com/mroderick/PubSubJS · fetched 2026-08-28 · 22a9296d7e35
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mroderick/PubSubJS | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="mroderick/PubSubJS")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem