{"id":20336629,"url":"https://github.com/behrad/mqtt-nedb-store","last_synced_at":"2025-04-11T22:40:54.214Z","repository":{"id":57303714,"uuid":"92805502","full_name":"behrad/mqtt-nedb-store","owner":"behrad","description":"NeDB store for in-flight MQTT.js packets.","archived":false,"fork":false,"pushed_at":"2020-03-23T08:22:06.000Z","size":9,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T21:03:18.755Z","etag":null,"topics":["inflight","mqtt","nedb","persistence"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/behrad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-30T06:45:03.000Z","updated_at":"2024-07-23T20:10:46.000Z","dependencies_parsed_at":"2022-08-24T17:11:40.032Z","dependency_job_id":null,"html_url":"https://github.com/behrad/mqtt-nedb-store","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad%2Fmqtt-nedb-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad%2Fmqtt-nedb-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad%2Fmqtt-nedb-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad%2Fmqtt-nedb-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behrad","download_url":"https://codeload.github.com/behrad/mqtt-nedb-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493022,"owners_count":21113159,"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":["inflight","mqtt","nedb","persistence"],"created_at":"2024-11-14T21:06:12.467Z","updated_at":"2025-04-11T22:40:54.190Z","avatar_url":"https://github.com/behrad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT.js NeDB Store\n\nNeDB Store for in-flight MQTT.js packets. Thanks to [nedb](https://github.com/louischatriot/nedb).\n\n## Usage\n\n```js\n'use strict';\n\nvar mqtt = require('mqtt'),\n  NeDBStore = require('mqtt-nedb-store'),\n  manager = NeDBStore('path/to/db');\n\nvar client = mqtt.connect({\n  port: 8883,\n  incomingStore: manager.incoming,\n  outgoingStore: manager.outgoing\n});\n\n//// or\n// var client = mqtt.connect('mqtt://test.mosca.io', {\n//  port: 8883,\n//  incomingStore: manager.incoming,\n//  outgoingStore: manager.outgoing\n//});\n\nclient.on('connect', function() {\n  console.log('connected');\n  client.publish('hello', 'world', {qos: 1}, function() {\n    console.log('published');\n    client.end();\n  });\n});\n```\n\n## Automatic compaction\n\nNeDB datastores are compacted by default only when opened. NeDB's automatic\nperiodic compaction can be activated with NeDB constructor options:\n\n```\n  manager = NeDBStore('path/to/db', { outgoing: { autocompactionInterval: 60 } });\n```\n\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehrad%2Fmqtt-nedb-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehrad%2Fmqtt-nedb-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehrad%2Fmqtt-nedb-store/lists"}