{"library":"sharedb-mongo","type":"library","category":null,"description":"sharedb-mongo is a database adapter for ShareDB, a full-stack library for realtime JSON document collaboration. It serves as both a snapshot store and an oplog for ShareDB documents, integrating directly with MongoDB. Currently at v5.1.0, the package sees active development with regular updates to support the latest Node.js and MongoDB versions. A key differentiator is its ability to unwrap JSON document snapshots, allowing direct MongoDB queries against these documents (for read-only operations), while strictly requiring ShareDB for any modifications to ensure proper operational transformation and persistence. It also extends MongoDB's querying capabilities within the ShareDB context through special `$`-prefixed operators for methods like `mapReduce` and `sort`.","language":"javascript","status":"active","version":"5.1.0","tags":["javascript"],"install":[{"cmd":"npm install sharedb-mongo","imports":["import ShareDbMongo from 'sharedb-mongo';","const db = require('sharedb-mongo')('mongodb://localhost:27017/test');","import ShareDbMongo from 'sharedb-mongo'; new ShareDbMongo('mongodb://localhost:27017/test', { mongoOptions: { /* ... */ } });"]},{"cmd":"yarn add sharedb-mongo","imports":[]},{"cmd":"pnpm add sharedb-mongo","imports":[]}],"homepage":null,"github":"https://github.com/share/sharedb-mongo","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sharedb-mongo","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/sharedb-mongo/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}