Callbag Basics is an open-source JavaScript library that provides reusable utilities for reactive and iterable programming using the Callbag specification. It unifies push-based event streams and pull-based iterables through a simple communication protocol. Developers can create data sources from arrays, promises, browser events, and intervals. Common operators perform transformations such as mapping, filtering, scanning, merging, and flattening sequences. The same operators can work with synchronous iterables and asynchronous event sources. A pipe utility combines multiple operations into readable functional pipelines. The library emphasizes small bundle sizes, high performance, and extensibility through independent functions. Its modular architecture allows developers to import only the functionality they need.
Features
- Unified Push and Pull Data Processing
- Reactive Stream and Iterable Compatibility
- Event, Promise, and Iterable Source Factories
- Mapping, Filtering, and Scanning Operators
- Stream Merging, Combining, and Flattening
- Lightweight Functional Pipeline Composition