Nano Events is a minimalistic, high-performance event emitter library for JavaScript. Its goal is to provide the simplest possible API to add pub/sub capabilities (emitters and listeners) to any JS object or application, while keeping overhead and bundle size extremely small. Rather than offering many complex features, nanoevents focuses on the core primitives: creating an emitter, subscribing to named events, emitting events with arbitrary data, and unsubscribing. Because of its minimal API surface and implementation, it’s very easy to integrate into frontend or backend JS/TypeScript projects without introducing significant dependencies or weight. The simplicity reduces cognitive load: developers don’t need to read long docs or worry about advanced event semantics.

Features

  • Very small footprint — minimal code and tiny bundle size compared to big event libraries
  • Simple API: createNanoEvents() returns emitter with .on() and .emit() methods
  • Lightweight subscription and clean unsubscription handling for memory-safe event use
  • Framework-agnostic — works in Node.js or browser JS environments, plain JavaScript or TypeScript
  • Instant integration into existing projects without heavy dependencies or configuration
  • Good for simple pub/sub, reactive patterns, or bridging loose-coupled modules

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Nano Events

Nano Events Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Nano Events!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Libraries

Registered

2 days ago