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

原始链接: https://github.com/ueberdosis/hocuspocus

相关文章

原文

A plug & play collaboration backend based on Y.js.

Build Status Version Downloads License Chat Sponsor

The full documentation is a available on hocuspocus.dev/introduction.

You want to use Hocuspocus, but don't want to care about hosting? Check our Cloud Offering: Tiptap Collab

Send all your questions, feedback and bug reports to [email protected] or create an issue here.

The following example is a example setup you need to start a WebSocket server. By default, it’s listening on http://127.0.0.1 (or prefixed with the WebSocket protocol on ws://127.0.0.1):

import { Server } from '@hocuspocus/server'
import { SQLite } from '@hocuspocus/extension-sqlite'

const server = new Server({
  port: 1234,

  async onConnect() {
    console.log('🔮')
  },

  extensions: [
    new SQLite({
      database: 'db.sqlite',
    }),
  ],
});

server.listen();

For help, discussion about best practices, or any other conversation:

Join the Tiptap Discord Server

… and hundreds of awesome inviduals.

Using Hocuspocus in production? Invest in the future of Hocuspocus and become a sponsor!

Please see CONTRIBUTING for details.

kris (who wrote the initial version), Tom Moor, YousefED (@TypeCellOS) and many more.

The MIT License (MIT). Please see License File for more information.

联系我们 contact @ memedata.com