JavaScriptReact (@cachepuppy/react)
React SDK (@cachepuppy/react)
Provider plus hooks that wrap @cachepuppy/core with React-friendly ergonomics.
The React package is intentionally thin: it does not fork protocol logic. Instead it:
- memoizes a
CachePuppyClientinstance fromClientOptions, - mirrors connection state and last transport error into context, and
- exposes composable hooks for topics, presence, and topic state.