{"id":18772152,"url":"https://github.com/alibahaari/json-spot","last_synced_at":"2025-09-16T18:28:12.612Z","repository":{"id":154251923,"uuid":"416772576","full_name":"AliBahaari/json-spot","owner":"AliBahaari","description":"Create your projects JSON sample APIs!","archived":false,"fork":false,"pushed_at":"2021-10-23T08:45:39.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T06:04:04.124Z","etag":null,"topics":["node-js","nodejs","npm","npm-module","npm-package","npm-script"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/json-spot","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/AliBahaari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-13T14:16:06.000Z","updated_at":"2024-12-25T15:23:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"a152dc0b-4c34-4d77-a4b4-5cb25fb7fb62","html_url":"https://github.com/AliBahaari/json-spot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AliBahaari/json-spot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2Fjson-spot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2Fjson-spot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2Fjson-spot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2Fjson-spot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliBahaari","download_url":"https://codeload.github.com/AliBahaari/json-spot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2Fjson-spot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275464649,"owners_count":25469881,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"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":["node-js","nodejs","npm","npm-module","npm-package","npm-script"],"created_at":"2024-11-07T19:27:59.698Z","updated_at":"2025-09-16T18:28:12.579Z","avatar_url":"https://github.com/AliBahaari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# json-spot\n\nCreate a sample API for your projects due to your need easily.\n\n## Usage/Examples\n\nFirst install the package globally:\n```bash\nnpm i -g json-spot\n```\n\nNext, create `db.json` in the root of your project containing API sample data:\n```json\n{\n    \"posts\": [\n        {\n            \"id\": 1,\n            \"title\": \"Title 1\"\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Title 2\"\n        },\n\n        ...\n        \n    ]\n}\n```\n*A sample file is witihin `samples/` folder.*\n\n\nThen, use `json-spot` command for running the API:\n```bash\njson-spot --db \u003cFILENAME\u003e --port \u003cPORT_NUMBER\u003e\n```\nThe default of `\u003cFILENAME\u003e` and `\u003cPORT_NUMBER\u003e` options are `db.json` and `4000`. So if these values satisfy you, you can leave them blank.\n\nNow, open your browser and enter the address below:\n```bash\nlocalhost:4000\n```\n\nCongratulation! Your API is ready!\n\n## Methods\n\n`json-spot` supports `GET`, `POST`, `DELETE` and `PUT` HTTP request methods for manipulating APIs you would create and run.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibahaari%2Fjson-spot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falibahaari%2Fjson-spot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibahaari%2Fjson-spot/lists"}