{"id":13716776,"url":"https://github.com/martinstarman/instantapi","last_synced_at":"2025-04-14T09:30:18.173Z","repository":{"id":162288423,"uuid":"87585666","full_name":"martinstarman/instantapi","owner":"martinstarman","description":"Instant API for development","archived":false,"fork":false,"pushed_at":"2020-11-26T11:39:36.000Z","size":9,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T22:43:18.571Z","etag":null,"topics":["api","data","micro","mock","random"],"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/martinstarman.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-07T20:46:29.000Z","updated_at":"2024-03-04T10:02:21.000Z","dependencies_parsed_at":"2024-01-06T00:04:55.265Z","dependency_job_id":null,"html_url":"https://github.com/martinstarman/instantapi","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/martinstarman%2Finstantapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinstarman%2Finstantapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinstarman%2Finstantapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinstarman%2Finstantapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinstarman","download_url":"https://codeload.github.com/martinstarman/instantapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248854037,"owners_count":21172282,"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":["api","data","micro","mock","random"],"created_at":"2024-08-03T00:01:14.212Z","updated_at":"2025-04-14T09:30:18.097Z","avatar_url":"https://github.com/martinstarman.png","language":"JavaScript","funding_links":[],"categories":["Development Tools"],"sub_categories":["Utilities"],"readme":"# instantapi.js\n\n## Usage\nStart server with\n\n```\nnpm start\n```\n\nRequest\n\n```\n$.get(\"http://localhost:3210/\" + encodeURIComponent(JSON.stringify(\n    {\n      users: {\n        firstName: \"@str(10, 20)\",\n        lastName: \"@str(10, 20)\",\n        age: \"@num(0, 100)\",\n        \"@repeat\": 5\n      }\n    }\n  )))\n```\n\nand response\n\n```\n{\n  \"users\": [\n    {\n      \"firstName\": \"XsrKtIRHJd\",\n      \"lastName\": \"ScKmfVDGTxIeooZHF\",\n      \"age\": 28\n    },\n    {\n      \"firstName\": \"RcpwGUxKtn\",\n      \"lastName\": \"SbcEfIvvrpMBeULMU\",\n      \"age\": 89\n    },\n    {\n      \"firstName\": \"zoabOugVGAg\",\n      \"lastName\": \"HRPbiNEgEt\",\n      \"age\": 90\n    },\n    {\n      \"firstName\": \"CCpBLPsZhSqOKtVe\",\n      \"lastName\": \"hNWfZABkHpo\",\n      \"age\": 37\n    },\n    {\n      \"firstName\": \"TseRpbCjhaAgmxBgsP\",\n      \"lastName\": \"ZuwqLKNPFyIYSqNl\",\n      \"age\": 13\n    }\n  ]\n}\n```\n\n### @num(min, max)\nReturns integer between ```min``` (inclusive) and ```max```\n\n### @str(min, max)\nReturns string between ```min``` (inclusive) and ```max```\n\n### @word(count, maxWordLength = 8)\nReturns string in sentence-like form with ```count``` words where each word can't be longer than ```maxWordLength```\n\n### @repeat\nReturn array with repeated object\n\n## Run server\n\n```npm start```\n\n## Run tests\n\n```npm test```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinstarman%2Finstantapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinstarman%2Finstantapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinstarman%2Finstantapi/lists"}