{"id":17034583,"url":"https://github.com/caub/mongo-cli-nodejs","last_synced_at":"2026-05-08T01:32:33.446Z","repository":{"id":12882676,"uuid":"15559203","full_name":"caub/mongo-cli-nodejs","owner":"caub","description":"MongoDB web command line interface","archived":false,"fork":false,"pushed_at":"2016-08-18T13:58:58.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T09:03:10.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cyrilauburtin.github.io/mongo-cli-nodejs/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-01T01:38:32.000Z","updated_at":"2024-04-14T09:03:10.427Z","dependencies_parsed_at":"2022-08-26T05:50:10.641Z","dependency_job_id":null,"html_url":"https://github.com/caub/mongo-cli-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmongo-cli-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmongo-cli-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmongo-cli-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmongo-cli-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caub","download_url":"https://codeload.github.com/caub/mongo-cli-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026042,"owners_count":20549073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:44:02.078Z","updated_at":"2026-05-08T01:32:28.415Z","avatar_url":"https://github.com/caub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mongo-cli\n======================\n\nMongoDB from a websocket, with extra features:\n - **Access-rights** on documents\n - **Notifications**\n\nIt works by sending `{fn: someFunction, args: someArguments}` following the syntax of  [Mongo's nodejs driver](http://mongodb.github.io/node-mongodb-native/api-generated/collection.html)  \nExample in javascript:\n\n    send({fn:'find', args:[{a: 2}]}, function(d){console.log(d)})\n    send({fn:'insert', args:[{a:3}]}, function(d){console.log(d)})\n    send({fn:'find', args:[{a: {$gt:2}}]}, function(d){console.log(d)})\n    send({fn:'findAndModify', args:[{a:3},null,{$set:{a:5,b:12}},{new:true}]}, function(d){console.log(d)})\n    send({fn:'findAndModify', args:[{a:6},null,{a:5,b:12},{new:true,upsert:true}]}, function(d){console.log(d)})\n    send({fn:'remove', args:[{a: {$exists: true}}]}, function(d){console.log(d)})\n\n    // when you're authentified, access-rights are enabled\n    send({fn:'insert', args:[{a:4, _canRemove:['john@gmail.com']}]}, function(d){console.log(d)})\n    send({fn:'insert', args:[{a:5,_canRead:['john@gmail.com'],_canUpsert:['john@gmail.com'],_canRemove:['john@gmail.com']}]}, function(d){console.log(d)})\n\n\n    //notifications:\n    //  connected clients receive the update when their rights allow it\n    //  note: not all methods will trigger notifications, insert, save, findAndModify, findAndRemove do\n    //       update, remove won't since it just return the number of updates, only the sender receives the response.\n\nDemo server:\n - [heroku](http://mongo-cli-nodejs.herokuapp.com/)\n - or from [cloud9](https://c9.io/cytr/mongo-cli-nodejs) (and run the file server.js)\n\nSome demo apps using it:\n - [Chat](http://jsbin.com/facof/latest)\n - [Task list](http://jsbin.com/EduGeZE/latest)\n - [Calendar](http://jsbin.com/UmUbipa/latest)\n - [Collaborative painting](http://jsbin.com/afiMEWa/latest)\n\n\n![Mongo-cli schema](https://docs.google.com/drawings/d/1YEbvKHo1urJdJAvtwoEUc8vt3bBeEmspr7b_oJtahQU/pub?w=956\u0026h=555 \"Mongo-cli schema\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fmongo-cli-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaub%2Fmongo-cli-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fmongo-cli-nodejs/lists"}