Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sharedb

> 编程语言
Open source

Realtime database backend based on Operational Transformation (OT)

6.5K stars0 likes4 views
WebsiteGitHub

About

Realtime database backend based on Operational Transformation (OT)

ShareDB

ShareDB is a realtime database backend based on Operational Transformation (OT) of JSON documents. It is the realtime backend for the DerbyJS web application framework.

For help, questions, discussion and announcements, join the ShareJS mailing list or read the documentation.

Please report any bugs you find to the issue tracker.

Features

  • Realtime synchronization of any JSON document
  • Concurrent multi-user collaboration
  • Synchronous editing API with asynchronous eventual consistency
  • Realtime query subscriptions
  • Simple integration with any database
  • Horizontally scalable with pub/sub integration
  • Projections to select desired fields from documents and operations
  • Middleware for implementing access control and custom extensions
  • Ideal for use in browsers or on the server
  • Offline change syncing upon reconnection
  • In-memory implementations of database and pub/sub for unit testing
  • Access to historic document versions
  • Realtime user presence syncing

Documentation

https://share.github.io/sharedb/

Examples

Counter

Leaderboard

Development

Documentation

The documentation is stored as Markdown files, but sometimes it can be useful to run these locally. The docs are served using Jekyll, and require Ruby >2.4.0 and Bundler:

bash
gem install jekyll bundler

The docs can be built locally and served with live reload:

bash
npm run docs:install
npm run docs:start

Issues· 154 open

View all issuesOpen on GitHub
  • #523

    Add Promise-based versions of methods in public ShareDB API

    enhancementdiscussionUpdated Apr 9, 2026
  • #700

    Doc never resends operations if they fail to acknowledge

    Updated Feb 26, 2026
  • #694

    Is there any way to pass the source from server to clients?

    Updated May 13, 2025
  • #650

    how to reload/refresh ShareDB document?

    Updated Jan 21, 2025
  • #612

    Q: How multiple `Doc`s guarantee transactions?

    Updated Jan 21, 2025
  • #677

    How to optimize the performance of large documents?

    Updated Oct 8, 2024
  • #643

    Example Proposal: Comments

    Updated Feb 25, 2024
  • #642

    Access Control / Permissions

    Updated Feb 18, 2024
  • #639

    Consider Partysocket for Examples

    Updated Dec 27, 2023
  • #633

    How do I implement custom messages, just like websockets

    Updated Nov 15, 2023

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言