{"id":17668640,"url":"https://github.com/evanshortiss/httpsink","last_synced_at":"2026-02-17T08:33:30.055Z","repository":{"id":48273001,"uuid":"336060950","full_name":"evanshortiss/httpsink","owner":"evanshortiss","description":"A trivial HTTP sinkhole.","archived":false,"fork":false,"pushed_at":"2024-09-27T04:46:34.000Z","size":215,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T12:02:12.656Z","etag":null,"topics":[],"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/evanshortiss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-04T19:29:30.000Z","updated_at":"2024-09-27T04:46:38.000Z","dependencies_parsed_at":"2025-04-15T12:01:27.929Z","dependency_job_id":"f3c08167-3898-48d6-b295-e1f0d72cadbb","html_url":"https://github.com/evanshortiss/httpsink","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/evanshortiss/httpsink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fhttpsink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fhttpsink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fhttpsink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fhttpsink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanshortiss","download_url":"https://codeload.github.com/evanshortiss/httpsink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fhttpsink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274967683,"owners_count":25383106,"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-13T02:00:10.085Z","response_time":70,"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":[],"created_at":"2024-10-23T23:23:19.036Z","updated_at":"2025-10-15T22:55:51.981Z","avatar_url":"https://github.com/evanshortiss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Sink\n\nA trivial HTTP Sinkhole. Always returns a 200 OK and JSON response body with\nrequest details.\n\n## Usage\n\n### CLI\n\nStart a sinkhole on port 8080 using npx:\n\n```bash\n# Listen on the default localhost:8080\nnpx httpsink\n```\n\nAlternatively install the module globally, then start a sinkhole:\n\n```bash\nnpm install -g httpsink\n\n# Listen on port 3000 on a public interface\nhttpsink --port 3000 --host '0.0.0.0'\n```\n\n### Docker via Pre-built Image\n\nExposes the sinkhole on port 8080:\n\n```bash\ndocker run --rm -p 8080:8080 quay.io/evanshortiss/httpsink\n```\n\nYou can specify a version tag if desired.\n\n### Docker via npx\n\nUses npx to download the latest version of `httpsink`, and exposes the sinkhole on port 8080:\n\n```bash\ndocker run -p 8080:8080 --rm --entrypoint /bin/sh node:14-alpine -c 'npx httpsink --host \"0.0.0.0\" --port 8080'\n```\n\n\n### Module\n\n```js\nconst sinkhole = require('httpsink')\n\nasync function main () {\n  // Create a sinkhole that listens on port 8080\n  const server = await sinkhole({\n    port: 8080\n  })\n\n  // ...sometime later call server.close() when you're done\n  server.close()\n}\n\nmain()\n```\n\n### Response Format\n\nEach request receives the same response format:\n\n```js\n{\n  // IP the server determines to be the origin of your request\n  \"ip\": \"127.0.0.1\",\n\n  // Unique ID generated for this request\n  \"uuid\": \"pDo-u-eOpxiVH_15aSV05\",\n\n  // When the server started processing the request\n  \"recv\": \"2021-02-04T19:25:03.740Z\",\n\n  // When the server sent the response\n  \"resp\": \"2021-02-04T19:25:03.744Z\",\n\n  // Bytes read for a request that sends a body\n  \"bodyBytesSize\": 0\n\n  // Bytes read for the entire HTTP transmission\n  \"totalBytesSize\": 124\n\n  // Method and URL that was requested\n  \"method\":\"POST\",\n  \"url\":\"/json-test\",\n\n  // Hostname of the host (e.g a Pod hostname in Kubernetes)\n  \"hostname\": \"httpsink-85d65bfdd8-429kb\",\n\n  // Version of the httpsink module being run\n  \"version\": \"1.4.0\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fhttpsink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanshortiss%2Fhttpsink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fhttpsink/lists"}