npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

evb

v0.7.2

Published

a simple event bus

Readme

evb

Build Coverage Status License: MIT Ask DeepWiki

A minimal, dependency-free JavaScript event bus for decoupled communication between modules.

Check the Atuin Demo to ~~see~~ experience it in action (is under the hood).

Overview

evb (Event Bus) provides a simple publish/subscribe mechanism for JavaScript applications. It is designed to be lightweight and easy to integrate, making it suitable for small projects, prototypes, or educational purposes. The API is intentionally minimal, focusing on core event bus functionality without extra features or complexity.

I had a handful of little browser-oriented apps which needed an event bus. It didn't really justify a 3rd party feature-rich lib, so I threw together the minimum necessary (as a 1st party lib). It does include basic state management and Redux-style util methods, but these haven't really been tried in the wild.

Features

  • Publish/subscribe pattern for decoupled communication
  • No external dependencies
  • Works in both browser and Node.js environments
  • Simple, readable codebase

Installation

You can install evb locally (for development or as a dependency):

npm install ../evb

Or, if published to npm:

npm install evb

Usage

import { on, off, emit } from 'evb';

// Subscribe to an event
on('my-event', (data) => {
  console.log('Received:', data);
});

// Emit an event
emit('my-event', { foo: 'bar' });

// Unsubscribe
off('my-event', handler);

API

  • on(eventName, handler): Register a handler for an event.
  • off(eventName, handler): Remove a handler for an event.
  • emit(eventName, data): Emit an event with optional data.

Limitations

  • No wildcard or namespaced events.
  • No event replay or history.
  • No built-in error handling for handlers.
  • Not intended for large-scale or production-critical systems.

Project Structure

evb/
├── src/
│   ├── event-bus.js
│   ├── event-constants.js
│   ├── state-utils.js
│   ├── store.js
│   └── index.js
├── test/
│   └── unit/
├── README.md
├── package.json
└── ...

Testing

Unit tests are provided using Vitest. To run the tests:

npm test

Coverage

Test coverage reports are generated using Vitest's built-in coverage tool. To generate a coverage report (including lcov and HTML formats):

npm run coverage

The HTML report can be viewed by opening coverage/index.html in your browser. The lcov report is available at coverage/lcov.info for integration with services like Coveralls.

License

Code : MIT License. Docs : public domain, attribution appreciated.

© 2025 Danny Ayers (@danja), Anthropic Claude, GitHub Copilot and Canine Claudio. A hyperdata.it thing.