SDK v0.1.1: Pluggable storage, WebSocket fixes, and unified error handling.
Custom Storage
Swap the default localStorage with IndexedDB, SQLite, a REST API, or any backend. Implement 4 async methods and pass it to BridgesProvider.
WebSocket Fixes
- Subscriptions no longer override each other when multiple hooks are active
- No more duplicate connections on rapid mounts
- Manual disconnect is now respected - no reconnect loops
Unified Error Handling
Single `onError` callback with a discriminated union. Use `error.source` to distinguish bridge errors from storage errors.
New in useBridges()
- persistenceStatus — track initial load state
- persistenceError — surface load failures
- isCustomStorage — detect active storage layer
Docs: https://cntrl.pw/docs/sdk/getting-started
Changelog: https://cntrl.pw/docs/sdk/changelog


p/dots-7
p/runevr
p/meridian-16
p/citable
p/pushary
p/producthunt
p/faraday-4
p/reso
p/kodlo
p/many-displays
p/clipjack
p/temp-mail-370
p/leantake
p/iphotron
p/comcent
p/htmldrag
p/neoagent
p/relai-agent-eval-loop
p/gatrends
p/kanasensei
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.