Quickstart
The core wavedb object is a lightweight wrapper that manages the lifecycle of your event stream.
The TypeScript types are fully inferred; no manual type assertions needed even with complex nested schemas.
const batch = stream.pipe(filter((e) => e.type === 'payment'), batch(100), debounce(5000));
The SDK provides both callback-based and Promise-based APIs, so you can use it with callbacks, async/await, or Observables.
Quickstart
The core wavedb object is a lightweight wrapper that manages the lifecycle of your event stream.
stream.on('*.created', async (event) => await db.insert('events', event); , concurrency: 50 );
The SDK provides both callback-based and Promise-based APIs, so you can use it with callbacks, async/await, or Observables.