# ueberdosis/hocuspocus

The Yjs CRDT WebSocket backend for conflict-free real-time collaboration in your app.

Repository: https://github.com/ueberdosis/hocuspocus
Canonical: https://ross.abutalabs.com/products/hocuspocus
Homepage: https://tiptap.dev/docs/hocuspocus/introduction
Language: TypeScript
License: MIT
License Family: permissive
Topics: tiptap, prosemirror, collaborative-editing, yjs, slatejs, crdt, self-hosted, real-time
Last push: 2026-08-26T13:34:34+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 2119, "days_push": 7, "days_rel": 23, "gap_med": 7, "n_releases_24m": 42}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2559, forks 207 (observed 2026-08-28T04:07:00.885468+00:00)

## What it is
Hocuspocus is a Yjs CRDT-based WebSocket backend for conflict-free real-time collaboration, written in TypeScript. It provides a server, client provider, and extensions (e.g., SQLite persistence, Redis scaling, webhooks) to add collaborative editing and offline-first sync to apps.

## Use cases
- add real-time collaborative editing to my app
- self-host a yjs websocket backend
- sync application state across clients without conflicts
- build an offline-first app that syncs later
- persist yjs documents to a database
- scale collaborative editing across multiple servers with redis
- share cursor and awareness state between users

## When to choose
- you use Yjs with editors like Tiptap, ProseMirror, Slate, Quill, or Monaco
- you want a batteries-included, extensible collaboration server with auth hooks and persistence extensions
- you need multiplexing of multiple documents over one WebSocket connection
- you want cross-runtime support (Node.js, Bun, Deno, Cloudflare Workers)

## When to avoid
- you need a non-Yjs CRDT or a different sync protocol
- you only need simple polling or REST-based sync without real-time merge
- you rely on other y-providers as your server, since Hocuspocus requires its own provider since v2

## Facets
- artifact type: framework
- maturity: active
- function: websocket, middleware, auth, webhook, sdk
- domain: web-development, backend, developer-tools
- platform: bun, cloud, self-hosted
- tags: yjs, crdt, collaborative-editing, tiptap, prosemirror, offline-first, websocket-server, awareness, real-time, nodejs, deno, typescript

## Member repositories
- ueberdosis/hocuspocus (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:00.885468+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:23:37.138177+00:00, confidence not recorded.
  - readme: https://github.com/ueberdosis/hocuspocus (fetched 2026-08-28T04:07:00.885468+00:00, sha 6aedc02196b2)
  - homepage: https://tiptap.dev/docs/hocuspocus/introduction (fetched 2026-08-29T10:06:41.433492+00:00, sha f5a69df7492a)
  - site_page: https://tiptap.dev/docs (fetched 2026-08-29T10:06:41.443157+00:00, sha 7e16bedacc9f)
  - site_page: https://tiptap.dev/docs/guides (fetched 2026-08-29T10:06:41.445514+00:00, sha e63e8f53fb51)
  - site_page: https://tiptap.dev/docs/examples (fetched 2026-08-29T10:06:41.447440+00:00, sha b4f9cd54fbda)
  - site_page: https://tiptap.dev/docs/ui-components/getting-started/overview (fetched 2026-08-29T10:06:41.449223+00:00, sha 7b0a828d1810)
  - site_page: https://tiptap.dev/docs/hocuspocus/getting-started/sponsor (fetched 2026-08-29T10:06:41.451372+00:00, sha e034732a7432)
  - site_page: https://tiptap.dev/docs/hocuspocus/getting-started/contributing (fetched 2026-08-29T10:06:41.453250+00:00, sha b9d61b11d8d9)
  - site_page: https://tiptap.dev/docs/hocuspocus/getting-started/upgrade (fetched 2026-08-29T10:06:41.455090+00:00, sha 138c95ffcfcf)
  - site_page: https://tiptap.dev/docs/hocuspocus/provider/overview (fetched 2026-08-29T10:06:41.457056+00:00, sha e4c09ed40f96)
- Data as of 2026-08-30T08:39:29.467469+00:00.
