{"id":20742437,"url":"https://github.com/nmyvision/lowdb-middleware","last_synced_at":"2026-04-29T21:35:05.122Z","repository":{"id":44850706,"uuid":"123074561","full_name":"NMyVision/lowdb-middleware","owner":"NMyVision","description":"Forked version of JSON Server. This package is intended to used as middleware from within an ExpressJS application.","archived":false,"fork":false,"pushed_at":"2022-12-07T14:26:54.000Z","size":302,"stargazers_count":1,"open_issues_count":26,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T09:46:36.259Z","etag":null,"topics":[],"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/NMyVision.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-02-27T04:51:34.000Z","updated_at":"2020-06-03T16:54:18.000Z","dependencies_parsed_at":"2023-01-23T18:30:44.437Z","dependency_job_id":null,"html_url":"https://github.com/NMyVision/lowdb-middleware","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/NMyVision%2Flowdb-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NMyVision%2Flowdb-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NMyVision%2Flowdb-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NMyVision%2Flowdb-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NMyVision","download_url":"https://codeload.github.com/NMyVision/lowdb-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243033392,"owners_count":20225160,"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-11-17T07:05:43.637Z","updated_at":"2026-04-29T21:35:05.074Z","avatar_url":"https://github.com/NMyVision.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LowDB Middleware\n\nForked version of [JSON Server](https://github.com/typicode/json-server). This package is intended to used as middleware from within an ExpressJS application.\n\n## Roadmap\n\n- [x] Update packages to latest versions\n- [x] Drop CLI support\n- [x] Rewrite code base to use ES6 style code ie: import fs from 'fs\n- [x] Add API hooks\n- [ ] Basic Auth plugin\n- [x] Database management endpoints\n- [x] Add dynamic databases routes\n- [ ] Use FileAsync via async/await \n- [ ] Configurable setup\n- [ ] Snapshots / Restore\n\n## Fixes / Enhancements \n\nThe following PRs were implemented from json-server repository\n\n- [x] Fix bug with null expand reference. [PR640](https://github.com/typicode/json-server/pull/640/commits)\n- [x] Add `_contains` operation [PR691](https://github.com/typicode/json-server/pull/691/commits)\n- [x] Add `_attr` option to reduce query context [PR558](https://github.com/typicode/json-server/pull/558/commits)\n- [x] Add `_flatten` option to flatten nested objects\n- [x] Add `_keys` option to reduce returned results\n\n## Example usage\n\nLegacy database setup\n`app.use('/test', middleware.staticRouter(\"./databases/test.json\"))`\n\nNew dynamic database setup\n`app.use('/api', middleware.dynamicRouter())`\n\nstructure is\n`/api/{databasename}/{collection} =\u003e /api/application/users`\n\n## Database management\n\nList dynamic databases\n`GET /api/db`\n\nCreate new databases\n`POST /api/db`\n\nModify existing database\n`PATCH /api/db`\n\nDocumenation coming....\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmyvision%2Flowdb-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmyvision%2Flowdb-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmyvision%2Flowdb-middleware/lists"}