MCPcopy
hub / github.com/share/sharedb

github.com/share/sharedb @v6.0.0 sqlite

repository ↗ · DeepWiki ↗ · release v6.0.0 ↗
185 symbols 364 edges 99 files 3 documented · 2%
README

ShareDB

NPM Version Test Coverage Status

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:

gem install jekyll bundler

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

npm run docs:install
npm run docs:start

Core symbols most depended-on inside this repo

next
called by 256
lib/backend.js
callback
called by 135
lib/agent.js
callback
called by 80
lib/backend.js
submit
called by 31
test/db.js
callback
called by 28
test/client/subscribe.js
callback
called by 17
test/middleware.js
cb
called by 17
test/client/submit.js
commitConcurrent
called by 9
test/db.js

Shape

Function 167
Method 14
Class 4

Languages

TypeScript100%

Modules by API surface

lib/agent.js14 symbols
examples/leaderboard/client/Leaderboard.jsx10 symbols
test/middleware.js8 symbols
test/db.js8 symbols
test/client/deserialized-type.js8 symbols
lib/projections.js8 symbols
lib/backend.js8 symbols
examples/leaderboard/client/Player.jsx8 symbols
test/client/doc.js6 symbols
lib/client/connection.js5 symbols
test/client/projections.js4 symbols
lib/query-emitter.js4 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/preset-react7.18.6 · 1×
@eslint/js10.0.1 · 1×
@teamwork/websocket-json-stream2.0.0 · 1×
arraydiff0.1.3 · 1×
async3.2.4 · 1×
babelify10.0.0 · 1×
browserify17.0.0 · 1×
bson-objectid2.0.4 · 1×
chai6.2.2 · 1×
classnames2.3.2 · 1×
eslint10.1.0 · 1×
eslint-config-google0.14.0 · 1×

For agents

$ claude mcp add sharedb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact