← Back to Product Feed

Hacker News Show HN: Hocuspocus 4 – self-hosted Yjs collaboration backend

A robust, flexible, and platform-agnostic real-time collaboration backend for web editors and structured data, leveraging Yjs for conflict-free concurrent edits, now optimized for edge deployment.

35
Traction Score
4
Discussions
May 21, 2026
Launch Date
View Origin Link

Product Positioning & Context

AI Executive Synthesis
A robust, flexible, and platform-agnostic real-time collaboration backend for web editors and structured data, leveraging Yjs for conflict-free concurrent edits, now optimized for edge deployment.
Hocuspocus v4 addresses a critical infrastructure need for real-time collaborative applications. By building on Yjs, it provides a robust solution for conflict-free concurrent editing, a complex problem for many SaaS platforms. The significant architectural shift to platform-agnostic deployment (Node, Bun, Deno, Cloudflare Workers) via `crossws` is a strategic move, enabling "collaboration at the edge." This directly reduces latency and improves user experience, a key differentiator in competitive markets. The focus on production-grade features like type safety, sequential update processing, and backward-compatible protocols demonstrates maturity. Hocuspocus positions itself as a foundational component for any application requiring real-time data synchronization, extending beyond text editors to any structured data, opening up substantial market opportunities for developers building collaborative SaaS products.
Hi HN! I'm Philip, one of the founders of Tiptap. Next to our open-source rich text editor framework, we started developing Hocuspocus about five years ago and open-sourced it too, to solve one of our biggest challenges back then: real-time collaboration in web editors. We found Yjs by Kevin Jahns, a CRDT library that handles concurrent edits without conflicts. Basically, Yjs merges changes from users without conflicts and in real-time. Hocuspocus is the WebSocket server built on top of Yjs. It handles real-time sync, presence/awareness, persistence, and Redis-based scaling.While we use Hocuspocus at Tiptap as the collaboration backend for our cloud services, it also works with any Yjs client (Slate, Quill, Monaco, ProseMirror, or your own setup), and Yjs documents aren't limited to text at all. You can sync any structured data through them, and in the meantime we see projects that rely on Hocuspocus without using the Tiptap editor.We released Hocuspocus v4 under the MIT license a few weeks ago, and the biggest change is that it's no longer tied to Node. The previous versions depended on the ws package, which meant you couldn't run Hocuspocus on Bun, Deno, or Cloudflare Workers. We moved to crossws, a universal websocket adapter, so the same server now runs on Node, Bun, Deno, Cloudflare Workers, and Node with uWebSockets. That also lets you run collaboration at the edge.The other changes are smaller but are important if you're using Hocuspocus in production:1. Every core class and hook payload takes a generic Context type now, so the auth/session shape you build in onAuthenticate flows through every other hook with full type safety (defaults to any so existing code doesn't break).2. Document updates are now processed sequentially per connection through an internal queue, which fixes a correctness bug where async hooks could cause CRDT updates to apply out of order under load.3. Transaction origins are structured objects now with a source field instead of raw values and there's an isTransactionOrigin() helper for narrowing.4. Hook payloads use web-standard Request and Headers instead of Node's IncomingMessage.5. The wire protocol is backward compatible in both directions, so you can roll out servers and providers independently.If you want to test Hocuspocus: npm install @hocuspocus/server @hocuspocus/providerDocs at: https://tiptap.dev/docs/hocuspocusSource at: https://github.com/ueberdosis/hocuspocusBecause running real-time collaboration on Workers or Durable Objects is new in v4, that's the use case we'd most like to hear your questions and feedback on.
Hocuspocus v4 self-hosted Yjs collaboration backend open-source rich text editor framework real-time collaboration web editors

Related Ecosystem & Alternatives

Discover adjacent products, open-source repositories, and developer tools sharing similar technical architecture.

Deep-Dive FAQs

What is Hocuspocus 4 – self-hosted Yjs collaboration backend?
Hocuspocus 4 – self-hosted Yjs collaboration backend is analyzed by our AI as: A robust, flexible, and platform-agnostic real-time collaboration backend for web editors and structured data, leveraging Yjs for conflict-free concurrent edits, now optimized for edge deployment.. It focuses on Hocuspocus v4 addresses a critical infrastructure need for real-time collaborative applications. By building on Yjs, it provides a robust solution ...
Where did Hocuspocus 4 – self-hosted Yjs collaboration backend originate?
Data for Hocuspocus 4 – self-hosted Yjs collaboration backend was aggregated directly from the Hacker News community ecosystem, representing raw developer and early-adopter sentiment.
When was Hocuspocus 4 – self-hosted Yjs collaboration backend publicly launched?
The initial public indexing or launch date for Hocuspocus 4 – self-hosted Yjs collaboration backend within our tracked developer communities was recorded on May 21, 2026.
How popular is Hocuspocus 4 – self-hosted Yjs collaboration backend?
Hocuspocus 4 – self-hosted Yjs collaboration backend has achieved measurable traction, logging over 35 traction score and facilitating 4 recorded discussions or engagements.
Which technical categories define Hocuspocus 4 – self-hosted Yjs collaboration backend?
Based on metadata extraction, Hocuspocus 4 – self-hosted Yjs collaboration backend is categorized under topics such as: Hocuspocus v4, self-hosted, Yjs, collaboration backend.
What are some commercial alternatives to Hocuspocus 4 – self-hosted Yjs collaboration backend?
Our semantic intelligence engine identifies potential commercial alternatives in the SaaS space, such as Bluedot 2.1, which offers overlapping value propositions.
How does the creator describe Hocuspocus 4 – self-hosted Yjs collaboration backend?
The original author or development team describes the product as follows: "Hi HN! I'm Philip, one of the founders of Tiptap. Next to our open-source rich text editor framework, we started developing Hocuspocus about five years ago and open-sourced it too, to solve one of ..."

Community Voice & Feedback

youngbum • May 21, 2026
Huge fan of Hocuspocus. Congrats on the new release and grateful for your efforts.We have been using Hocuspocus to sync multiple users in our form builder editor (https://walla.my), and they were very reliable and sturdy. We not only write descriptions with TipTap but also sync the fields and logic itself.Actually, the previous version was eligible to build and deploy with Bun though. We did also try to deploy them on Cloudflare infrastructure but… as you know, Cloudflare workers were not built for Hocuspocus. We also tried Cloudflare Containers, but they weren’t as reliable as just spinning up a small VM.1vCPU and 1GB RAM were enough to synchronize about 3,000 users.One small claim is the yjs ecosystem itself. The docs are fragmented, and the nature of y”JS”, locks the whole code into Javascript infrastructure. Hocuspocus might have well ported into more secure and memory-safe, faster infra, modern stacks like Go or Rust if yjs compatible were in other languages.Anyways, great work and we will definitely take a look at the new release. Again, thanks for sharing.
haseebws94 • May 20, 2026
[flagged]
curtisblaine • May 20, 2026
When I try to do this kind of thing with y.js in a non-trivial way I always battle against two issues and ultimately quit because they're really hard to do efficiently:1) Materializing documents. Assuming you don't have "live" yjs documents and you only merge diffs with diffUpdate, when one or more user are connected, it's always worth to have the blob in RAM to quickly merge diffs in it and save it periodically; when the usages of a document go away, you save it for the last time and you "ice" it in long term storage, offloading from RAM. I typically use a LRU cache for that. The problem is when too many users are working on too many docs and they all have to fit in RAM. How do you solve that?2) GC. Again, assuming you don't have live documents but you only merge diffs, those blobs need to be garbage collected to compact them after a while iirc (if the doc is live it's done automatically). This normally is a periodic process that eventually GCs all documents in turn, one after the other. If you handle that, how do you manage to not make your server essentially unpredictable when it comes to compacting big blobs? GC'ing takes a toll on your CPU, and not GC-ing takes a toll on your RAM and secondary storage.
Terretta • May 20, 2026
Making this plug and play is fantastic, and the live "editor types" demo on tiptap.dev is spectacularly convincing.So, say a data-privacy conscious prospect is interested a click up from the editor, considers the service, and pokes around. Can't find anywhere clarifying how you cannot even if you are ordered to by warrant see a customer's documents content. You have a sample app for legal; that type of client is going to care about this.Also not readily seeing how security or auth actually works. Requests over TLS are sufficient for the "end to end military grade encryption" type marketing claims; every site with HTTPS or an S3-type storage can make the same claims about encryption in motion and encryption at rest. That relies on transport and provider. It's more interesting if the content is encrypted against you as the provider, like Apple's Advanced Data Protection for iCloud-stored content (e.g. Messages, Reminders, Bookmarks, iCloud Drive, Notes, Voice Memos…).Any time a SaaS is asking a firm to keep all their documents on or run them through the SaaS, the data protection story should be stronger than this present security page.Even Cybersecurity & Infrastructure Security Agency (CISA) might randomly write passwords into a notes document…Alternatively, say HIPAA and etc. shouldn't be on it yet, and talk about when that is on the roadmap. But security story is generally best when baked into design from start.

Discovery Source

Hacker News Hacker News

Aggregated via automated community intelligence tracking.

Tech Stack Dependencies

No direct open-source NPM package mentions detected in the product documentation.

Media Tractions & Mentions

No mainstream media stories specifically mentioning this product name have been intercepted yet.

Deep Research & Science

No direct peer-reviewed scientific literature matched with this product's architecture.