{"id":15063432,"url":"https://github.com/ovhemert/aedes-persistence-nedb","last_synced_at":"2025-10-05T00:30:27.214Z","repository":{"id":14879077,"uuid":"76569980","full_name":"ovhemert/aedes-persistence-nedb","owner":"ovhemert","description":"NeDB persistence for Aedes","archived":true,"fork":false,"pushed_at":"2022-05-25T19:14:46.000Z","size":305,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-29T08:41:03.705Z","etag":null,"topics":["aedes","aedes-persistence-nedb","iot","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/ovhemert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-15T15:07:54.000Z","updated_at":"2023-01-27T22:09:06.000Z","dependencies_parsed_at":"2022-09-03T13:53:30.852Z","dependency_job_id":null,"html_url":"https://github.com/ovhemert/aedes-persistence-nedb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Faedes-persistence-nedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Faedes-persistence-nedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Faedes-persistence-nedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Faedes-persistence-nedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovhemert","download_url":"https://codeload.github.com/ovhemert/aedes-persistence-nedb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235330426,"owners_count":18972829,"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":["aedes","aedes-persistence-nedb","iot","mqtt","nedb","persistence"],"created_at":"2024-09-24T23:56:40.427Z","updated_at":"2025-10-05T00:30:21.825Z","avatar_url":"https://github.com/ovhemert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Travis](https://img.shields.io/travis/com/ovhemert/aedes-persistence-nedb.svg?branch=master\u0026logo=travis)](https://travis-ci.com/ovhemert/aedes-persistence-nedb)\n[![Azure Pipelines](https://ovhemert.visualstudio.com/aedes-persistence-nedb/_apis/build/status/ovhemert.aedes-persistence-nedb)](https://ovhemert.visualstudio.com/aedes-persistence-nedb/_build/latest?definitionId=2)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/36fb257bd6d241f9b95fe63d74c69a24)](https://www.codacy.com/app/ovhemert/aedes-persistence-nedb?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ovhemert/aedes-persistence-nedb\u0026amp;utm_campaign=Badge_Grade)\n[![Dependencies](https://img.shields.io/david/ovhemert/aedes-persistence-nedb.svg)]()\n[![Known Vulnerabilities](https://snyk.io/test/npm/aedes-persistence-nedb/badge.svg)](https://snyk.io/test/npm/aedes-persistence-nedb)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)\n\n# aedes-persistence-nedb\n\n[Aedes][aedes] persistence, backed by [NeDB][nedb].\n\nSee [aedes-persistence][persistence] for the full API, and [Aedes][aedes] for usage.\n\n## Install\n\n```sh\nnpm i aedes aedes-persistence-nedb --save\n```\n\n## API\n\n### Persistence (options)\n\nCreates a new instance of aedes-persistence-nedb.\nAccepts an options object to override defaults.\n\n```js\nvar NedbPersistence = require('aedes-persistence-nedb');\nvar persistence = new NedbPersistence({\n  path: './db'      // defaults to './data',\n  prefix: 'mqtt'    // defaults to ''\n});\n```\n\n## Example\n\nCreates a new Aedes instance that persists to NeDB. Connect to this instance with a MQTT client to see it working.\n\n```js\nvar NedbPersistence = require('aedes-persistence-nedb');\nvar Aedes = require('aedes');\nvar net = require('net');\n\nvar db = new NedbPersistence();\nvar aedes = Aedes({ persistence: db });\nvar server = net.createServer(aedes.handle);\nvar port = 1883;\n\nserver.listen(port, function () {\n  console.log('server listening on port', port);\n});\n```\n\n## Maintainers\n\nOsmond van Hemert\n[![Github](https://img.shields.io/badge/-website.svg?style=social\u0026logoColor=333\u0026logo=github)](https://github.com/ovhemert/about)\n[![Web](https://img.shields.io/badge/-website.svg?style=social\u0026logoColor=333\u0026logo=nextdoor)](https://www.osmondvanhemert.nl)\n\n## Contributing\n\nSee the [CONTRIBUTING](./docs/CONTRIBUTING.md) file for details.\n\n## License\n\nMIT\n\n[aedes]: https://github.com/mcollina/aedes\n[persistence]: https://github.com/mcollina/aedes-persistence\n[nedb]: https://github.com/louischatriot/nedb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovhemert%2Faedes-persistence-nedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovhemert%2Faedes-persistence-nedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovhemert%2Faedes-persistence-nedb/lists"}