Skip to main content
Hocuspocus is TipTap’s open-source Yjs WebSocket server. It’s a mature, battle-tested option for self-hosted collaboration.

Setup

Server

Client

Use the provider-agnostic API to connect SuperDoc:
SuperDoc JS always uses the same collaboration contract, regardless of provider: modules.collaboration = { ydoc, provider }.

React example

Server configuration

Basic options

Hooks

Persistence example

Provider options

Events

Provider events

Production deployment

Docker

With Redis (scaling)

Resources

Hocuspocus Docs

Official documentation

Working Example

Complete source code

Next steps

SuperDoc Yjs

Try the official collaboration package

Client Configuration

All SuperDoc collaboration options