{"id":23773426,"url":"https://github.com/beenotung/live-data-server","last_synced_at":"2026-04-03T02:30:22.969Z","repository":{"id":57290390,"uuid":"453721426","full_name":"beenotung/live-data-server","owner":"beenotung","description":"Restful CRUD API development server for frontend projects to demo.  Similar to json-server but backed by sqlite3.","archived":false,"fork":false,"pushed_at":"2023-08-07T14:39:22.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:16:52.266Z","etag":null,"topics":["crud","development-server","file-upload","json-server","key-value-store","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beenotung.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":"2022-01-30T15:39:47.000Z","updated_at":"2023-03-05T05:09:59.000Z","dependencies_parsed_at":"2022-09-02T05:41:21.962Z","dependency_job_id":null,"html_url":"https://github.com/beenotung/live-data-server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Flive-data-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Flive-data-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Flive-data-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Flive-data-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beenotung","download_url":"https://codeload.github.com/beenotung/live-data-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239960783,"owners_count":19725391,"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":["crud","development-server","file-upload","json-server","key-value-store","sqlite3"],"created_at":"2025-01-01T05:39:59.446Z","updated_at":"2026-04-03T02:30:22.928Z","avatar_url":"https://github.com/beenotung.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# live-data-server\n\nRestful CRUD API development server for frontend projects to demo.\n\nSimilar to [json-server](https://github.com/typicode/json-server) but backed by sqlite3.\n\n[![npm Package Version](https://img.shields.io/npm/v/live-data-server)](https://www.npmjs.com/package/live-data-server)\n\n## Features\n\n- No need to install (npx executable)\n- RESTful API\n- Persisted by sqlite3\n- CRUD table objects\n- CRUD key-value pairs\n- File Upload\n- Search by any field\n- Search with range / logics (TODO)\n\n## Usage\n\n```bash\nnpx live-data-server [port]\n```\n\nThe port number can be set with `PORT` environment variable as well, otherwise it will use any available port.\n\nUsage Example:\n\n```bash\n\u003e npx live-data-server 8600\nlistening on http://localhost:8600\nlistening on http://127.0.0.1:8600 (lo)\nlistening on http://192.168.80.105:8600 (wlp3s0)\n```\n\n## APIs\n\n### Files API\n\n| Method | Path   | Field |\n| ------ | ------ | ----- |\n| POST   | /files | file  |\n\n### Collection API\n\n| Method | Path                   | Description        |\n| ------ | ---------------------- | ------------------ |\n| GET    | /collection/:table     | get all / search\\* |\n| GET    | /collection/:table/:id | get by id          |\n| POST   | /collection/:table     | create             |\n| PATCH  | /collection/:table/:id | update by id       |\n| DELETE | /collection/:table/:id | delete by id       |\n\nSupported Search Example:\n\n```\nGET /collection/user?role=admin\u0026status=active\n```\n\nTo-be Supported Search Example:\n\n```\nGET /collection/house?rent=below(5000)\u0026area=at_least(200)\nGET /collection/product?price=between(10,20)\nGET /collection/user?role=not(admin)\nGET /collection/user?role=any(shop,client)\n```\n\n### Dictionary (key-value) API\n\n| Method | Path        | Description    |\n| ------ | ----------- | -------------- |\n| POST   | /dict/:name | init by name   |\n| GET    | /dict/:name | get by name    |\n| PATCH  | /dict/:name | update by name |\n| DELETE | /dict/:name | delete by name |\n\n## Todo\n\n- support realtime update notices\n- support pub/sub channel\n\n## License\n\nThis project is licensed with [BSD-2-Clause](./LICENSE)\n\nThis is free, libre, and open-source software. It comes down to four essential freedoms [[ref]](https://seirdy.one/2021/01/27/whatsapp-and-the-domestication-of-users.html#fnref:2):\n\n- The freedom to run the program as you wish, for any purpose\n- The freedom to study how the program works, and change it so it does your computing as you wish\n- The freedom to redistribute copies so you can help others\n- The freedom to distribute copies of your modified versions to others\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeenotung%2Flive-data-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeenotung%2Flive-data-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeenotung%2Flive-data-server/lists"}