share/sharedb

Realtime database backend based on Operational Transformation (OT)

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 53 minutes ago
Added to GitGenius on September 10th, 2026
Created on April 1st, 2013
Open Issues & Pull Requests: 154 (+0)
GitHub issues: Enabled
Number of forks: 457
Total Stargazers: 6,534 (+0)
Total Subscribers: 102 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

ShareDB is a realtime database backend based on Operational Transformation of JSON documents.

ShareDB solves the problem of synchronizing shared state across multiple concurrent users in realtime. It uses Operational Transformation to merge conflicting edits from different clients into a consistent document state. The system maintains a log of all operations and applies them in a way that ensures eventual consistency even when edits arrive out of order. Clients can work offline and have their changes synced when they reconnect.

ShareDB suits applications requiring live collaboration on JSON documents, such as shared editors, whiteboards, or any multi-user editing scenario. It provides both synchronous APIs for immediate local feedback and asynchronous consistency guarantees across all connected clients. The tool includes realtime query subscriptions, middleware for access control, and projections to filter document fields. It can be deployed horizontally by integrating a pub/sub system and works equally well in browsers or on servers. The project includes in-memory implementations of its database and pub/sub layers for testing purposes, and provides access to historic document versions and realtime user presence syncing.

Development activity shows consistent engagement with the issue tracker for bug reports. The documentation is actively maintained as Markdown files and can be built and served locally using Jekyll. The project includes working examples demonstrating core functionality such as a counter and leaderboard application.