{"id":13795656,"url":"https://github.com/baslr/arangochair","last_synced_at":"2025-07-13T19:31:09.447Z","repository":{"id":53019520,"uuid":"70532848","full_name":"baslr/arangochair","owner":"baslr","description":"🥑 arangochair is a Node.js module that adds changefeed capability to ArangoDB and make it realtime push ready","archived":false,"fork":false,"pushed_at":"2019-04-28T14:11:06.000Z","size":10,"stargazers_count":91,"open_issues_count":11,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-18T10:34:19.205Z","etag":null,"topics":["arangochair","arangodb","changefeed","push","realtime","subscribe"],"latest_commit_sha":null,"homepage":"","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/baslr.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":"2016-10-10T22:09:15.000Z","updated_at":"2023-05-04T00:04:05.000Z","dependencies_parsed_at":"2022-09-14T06:11:05.538Z","dependency_job_id":null,"html_url":"https://github.com/baslr/arangochair","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baslr%2Farangochair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baslr%2Farangochair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baslr%2Farangochair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baslr%2Farangochair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baslr","download_url":"https://codeload.github.com/baslr/arangochair/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225911383,"owners_count":17543958,"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":["arangochair","arangodb","changefeed","push","realtime","subscribe"],"created_at":"2024-08-03T23:01:00.072Z","updated_at":"2024-11-22T14:26:56.715Z","avatar_url":"https://github.com/baslr.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# arangochair\n\n`arangochair` pushs ArangoDB changes in realtime to you.\n\n## install\n\n```bash\nnpm install --save arangochair\n```\n\n## quick example\n\n```es6\nconst arangochair = require('arangochair');\n\nconst no4 = new arangochair('http://127.0.0.1:8529/'); // ArangoDB node to monitor\n\nconst no4 = new arangochair('http://127.0.0.1:8529/myDb'); // ArangoDB node to monitor, with database name\n\nno4.subscribe({collection:'users'});\nno4.start();\nno4.on('users', (doc, type) =\u003e {\n    // do something awesome\n\n    // doc:Buffer\n    // type:'insert/update'|'delete'\n});\n\nno4.on('error', (err, httpStatus, headers, body) =\u003e {\n    // arangochair stops on errors\n    // check last http request\n    no4.start();\n});\n```\n\n## subscribe\n\n```es6\n// subscribe to all events in the users collection\nno4.subscribe('users');\n\n// explicit\nno4.subscribe({collection:'users', events:['insert/update', 'delete']});\n\n\n// subscribe the users collection with only the delete event\nno4.subscribe({collection:'users', events:['delete']});\n\n// subscribe the users collection with only the delete event on key myKey\nno4.subscribe({collection:'users', events:['delete'], keys:['myKey']});\n```\n\n## unsubscribe\n```es6\n// unsubscribe the users collection\nno4.unsubscribe('users');\n\n// unsubscribe the delete event in the users collection\nno4.unsubscribe({collection:'users',events:['delete']});\n\n// unsubscribe the key myKey in the users collection\nno4.unsubscribe({collection:'users',keys:['myKey']});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaslr%2Farangochair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaslr%2Farangochair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaslr%2Farangochair/lists"}