{"id":49508927,"url":"https://github.com/abdullah-bl/electron-nedb","last_synced_at":"2026-05-01T18:04:05.789Z","repository":{"id":37194401,"uuid":"245950597","full_name":"abdullah-bl/electron-nedb","owner":"abdullah-bl","description":"Simple way to use nedb in your electron app","archived":false,"fork":false,"pushed_at":"2022-11-10T17:31:35.000Z","size":66,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-28T15:53:58.296Z","etag":null,"topics":["electron","electron-app","nedb","nedb-promises","storage","store"],"latest_commit_sha":null,"homepage":"","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/abdullah-bl.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":"2020-03-09T05:22:23.000Z","updated_at":"2024-05-28T15:53:58.297Z","dependencies_parsed_at":"2023-01-21T05:05:09.123Z","dependency_job_id":null,"html_url":"https://github.com/abdullah-bl/electron-nedb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdullah-bl/electron-nedb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Felectron-nedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Felectron-nedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Felectron-nedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Felectron-nedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullah-bl","download_url":"https://codeload.github.com/abdullah-bl/electron-nedb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-bl%2Felectron-nedb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["electron","electron-app","nedb","nedb-promises","storage","store"],"created_at":"2026-05-01T18:03:53.692Z","updated_at":"2026-05-01T18:04:05.778Z","avatar_url":"https://github.com/abdullah-bl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"using [nedb](https://github.com/louischatriot/nedb#readme) in your electron app.\n\nCheck out the [docs](https://github.com/bajankristof/nedb-promises/blob/master/docs.md).\n\n### Installation\n```sh\nyarn add https://github.com/abdullah-bl/electron-nedb\n```\n\n\n```js\nconst Collection = require('electron-nedb')\n\nlet options = {} // nedb options https://github.com/louischatriot/nedb#creatingloading-a-database\nlet data = Collection('users', options)\n\n// #1\ndata.find({ field: true })\n  .then(...)\n  .catch(...)\n  \n// #2\ndata.find({ field: true })\n  .exec(...)\n  .then(...)\n  .catch(...)\n\n// #1 and #2 are equivalent\n\ndata.findOne({ field: true })\n  .then(...)\n  .catch(...)\n  \ndata.insert({ doc: 'yourdoc' })\n  .then(...)\n  .catch(...)\n  \n// or in an async function\nasync function findSorted(page, perPage = 10) {\n\treturn await data.find(...)\n    \t.sort(...)\n        .limit(perPage)\n        .skip(page * perPage)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Felectron-nedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullah-bl%2Felectron-nedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-bl%2Felectron-nedb/lists"}