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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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

2025-11-27