JannKleen / channels-yroom

Django Channels WebSocket consumer and worker for synchronizing Yjs clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Channels-Yroom

PyPI

channels-yroom is a Django Channels WebSocket consumer and worker for synchronizing Yjs clients. It implements the network protocol for Yjs doc synchronization and awareness updates and makes them available as Django Channels WebSocket consumer and worker.

Documentation

Read the documentation

Showcase: text collaboration example

The example folder contains a simple project that uses y-prosemirror to allow for realtime collaboration on rich text.

Run the included Docker compose file to check it out:

docker compose up
# Then visit localhost:8000

Development

Project uses hatch for the development workflow:

pip install hatch

hatch run +py=3.10 test:test

License

MIT

About

Django Channels WebSocket consumer and worker for synchronizing Yjs clients

License:MIT License


Languages

Language:Python 81.5%Language:JavaScript 14.4%Language:HTML 2.7%Language:Dockerfile 0.7%Language:CSS 0.4%Language:Shell 0.2%