Skip to content
/ EPubSub Public

A lightweight, framework-agnostic JavaScript/TypeScript publish-subscribe library that enables efficient event-driven communication between different parts of your application.

License

Notifications You must be signed in to change notification settings

eylmz/EPubSub

Repository files navigation

EPubSub

Problem

In modern web applications, managing state and communication between components can become complex and lead to tightly coupled code. Traditional solutions often result in:

  • Components that are tightly coupled and hard to maintain
  • Complex prop drilling through multiple levels
  • Difficulty in implementing real-time features
  • State management overhead
  • Cross-component communication challenges

✨ Features

  • 🌐 Framework Agnostic: Core package works with any JavaScript/TypeScript application
  • 🔍 Type Safety: Full TypeScript support with complete type definitions
  • 🎯 Isolated Events: Namespace-based event isolation to prevent event conflicts
  • Lightweight: Zero dependencies and small bundle size
  • 🔄 Event History: Support for event history and replay functionality
  • 📦 Easy Integration: Simple API with React hooks support
  • 🧹 Automatic Cleanup: Handles cleanup in React components to prevent memory leaks
  • 💪 Real-time Ready: Perfect for real-time features and live updates

Packages

A lightweight, framework-agnostic publish-subscribe library for JavaScript/TypeScript applications.

React hooks for EPubSub that enable seamless integration with React applications.

Contributing

We welcome contributions from the community! Whether it's bug fixes, features, or documentation improvements, please feel free to submit a pull request.

Bug Reports

Found a bug? Please create an issue with a clear description of the problem and steps to reproduce it.

About

A lightweight, framework-agnostic JavaScript/TypeScript publish-subscribe library that enables efficient event-driven communication between different parts of your application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published