CrossWS websocket adapter #270
Copy link
Copy link
Open
Description
Activity
Thanks for making this issue. I will say, for my personal use, I am using TinyBase but opted to use the Yjs adapter with the Hocus Pocus server, which turns out to be a very nice combo. Of course a first-party integration with cross-ws is neat in theory, but don't want to distract from other very interesting priorities 😅 I guess it's a testament to how flexible this library is!
Metadata
Metadata
Assignees
Labels
No labels
Discussed in #269
Originally posted by jcs224 October 7, 2025
I'm building a Nuxt application that uses Tinybase on the client. However, there is no sync component as of yet, since I'm trying to keep the architecture as simple but portable as possible and try to keep everything in one codebase.
In the Nuxt ecosystem, Nitro is used as the underlying server, which uses CrossWS to enable cross-runtime websockets. CrossWS is, however, JS runtime and framework agnostic, so creating this abstraction for Tinybase would open up a lot of compatibility across the whole JS ecosystem!