Fox Events Fox Events

Documentation

Pick a module to see complete, isolated examples (Core, Storage, RN Bridge, Middleware, Scopes, EventMap).

Getting started
Install, channels, emit, on, once, trail
Publishers and listeners
Mental model: who publishes, who listens, channel, on vs once, timeout, best practices
Trail (History)
Event trail, published/received/unsubscribed, toText, maxHistory, global trail
Storage
IndexedDB persistence, hydrate, keyPrefix
Bridge React Native
RN ↔ WebView messaging
Managing bridge and adapter
Ways to manage the bridge (web) and createFoxRNAdapter (RN): global, dispose, Provider, useFox
Middleware
useMiddleware, onEmit hooks
Scoped Channels
Fox.forScope, isolated registries
EventMap
Typed static emit/on/once
Centralizing events (foxes.ts)
Best practices for a single event map and channels
Use cases
Micro-frontends, wizards, dashboards, games, e-commerce, plugins, and more