{"id":20477970,"url":"https://github.com/trapvincenzo/deno-http-simple-mock","last_synced_at":"2026-04-27T18:32:39.989Z","repository":{"id":87131804,"uuid":"265351011","full_name":"trapvincenzo/deno-http-simple-mock","owner":"trapvincenzo","description":"Simple HTTP Server mocker written in Deno","archived":false,"fork":false,"pushed_at":"2020-05-19T19:59:32.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T11:03:23.116Z","etag":null,"topics":["deno","fake-data","http-server","mock"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/trapvincenzo.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":"2020-05-19T19:56:34.000Z","updated_at":"2020-05-19T20:00:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"39773d3a-82f5-4975-bf55-3280345a04e0","html_url":"https://github.com/trapvincenzo/deno-http-simple-mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trapvincenzo/deno-http-simple-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapvincenzo%2Fdeno-http-simple-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapvincenzo%2Fdeno-http-simple-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapvincenzo%2Fdeno-http-simple-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapvincenzo%2Fdeno-http-simple-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trapvincenzo","download_url":"https://codeload.github.com/trapvincenzo/deno-http-simple-mock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapvincenzo%2Fdeno-http-simple-mock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32349534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","fake-data","http-server","mock"],"created_at":"2024-11-15T15:34:37.923Z","updated_at":"2026-04-27T18:32:39.976Z","avatar_url":"https://github.com/trapvincenzo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DENO Http simple mock\nCreates a server that returns mock data using a config file.\n\n## Run it\n`deno run --allow-net --allow-read  server.ts`\n\n## Config file\nThese are the specs (`models.ts`)\n\n```\nexport interface HSMRoute {\n  path: string;\n  method: string;\n  responseText?: string;\n  responseFile?: string;\n}\n\nexport interface HSMConfig {\n  routes: HSMRoute[];\n  port: 8000;\n}\n\nexport enum HSMMethod {\n  GET = \"get\",\n  POST = \"post\",\n}\n\n```\n\n## Config example\n```\n{\n    \"routes\": [\n        {\n            \"path\": \"/test\",\n            \"method\": \"GET\",\n            \"responseText\": \"{\\\"hello\\\":\\\"world\\\"}\"\n        },\n        {\n            \"path\": \"/test2\",\n            \"method\": \"GET\",\n            \"responseFile\": \"./test2.json\"\n        }\n    ],\n    \"port\": 8000\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrapvincenzo%2Fdeno-http-simple-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrapvincenzo%2Fdeno-http-simple-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrapvincenzo%2Fdeno-http-simple-mock/lists"}