跳到正文

y-durableobjects

维护中
napolab/y-durableobjects

借助 Yjs 和 Durable Objects 在 Cloudflare Workers 上实现实时协同编辑,通过 Hono 集成。

在 GitHub 查看
星标
262
Fork
12
关注
262
未关闭 Issue
4

该介绍目前仅提供英文版本。

Overview

y-durableobjects brings real-time collaboration to Cloudflare Workers using Yjs and Durable Objects. It gives you a straightforward way to add scalable, CRDT-based real-time editing to an app.

Requirements

  • Hono 4.3 or higher (a peer dependency)

Installation

npm install y-durableobjects hono

Setup

Configure a Durable Object binding and class in your wrangler.toml, then mount the provided Hono route. Each document is backed by its own Durable Object, which holds the shared Yjs state and relays updates between connected clients over WebSockets.

按共同分类和标签排序的同类开源项目。

全部 Web 框架项目 →