{"id":17188247,"url":"https://github.com/jclem/http-sponge","last_synced_at":"2025-08-31T17:34:06.424Z","repository":{"id":15350545,"uuid":"18081334","full_name":"jclem/http-sponge","owner":"jclem","description":"an http sponge that logs request data to stdout","archived":false,"fork":false,"pushed_at":"2014-03-25T20:14:30.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T10:52:52.074Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jclem.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}},"created_at":"2014-03-24T22:35:59.000Z","updated_at":"2014-03-25T20:14:30.000Z","dependencies_parsed_at":"2022-09-01T01:41:04.606Z","dependency_job_id":null,"html_url":"https://github.com/jclem/http-sponge","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/jclem%2Fhttp-sponge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fhttp-sponge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fhttp-sponge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fhttp-sponge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jclem","download_url":"https://codeload.github.com/jclem/http-sponge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245401374,"owners_count":20609163,"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":[],"created_at":"2024-10-15T01:08:30.106Z","updated_at":"2025-03-25T04:39:52.415Z","avatar_url":"https://github.com/jclem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-sponge\n\nListen for requests of any type and log request body and metadata to standard\nout.\n\n## Install\n\n```sh\n$ git clone git@github.com:jclem/http-sponge.git\n$ cd http-sponge\n$ npm install\n$ npm start\n```\n\n## Deploy to Heroku\n\n```sh\n$ hk create\n$ git push heroku master\n```\n\n## Usage\n\nhttp-sponge is useful when you need to deal with callbacks that happen on an\nexternal server that obviously can't send requests to your local apps in\ndevelopment.\n\nTell your app to direct callback requests at your instance of `http-sponge` on\nheroku. http-sponge will log your requests in a key-value format which can be\nparsed by the `bin/mop` script. `bin/mop` accepts a string to match URLs against\n(you might want to add UUIDs to your callback URL in some way to identify the\nrequests you want forwarded via grep), and a port to forward requests to on your\nlocalhost:\n\n```sh\n$ hk log | grep --line-buffered my-route-to-forward | bin/mop 5000\n```\n\nNow, requests that your non-local app make to your instance of http-sponge will\nbe forwarded along to your local app.\n\n## Limits\n\n`bin/mop` forwards the following:\n\n- Request URL\n- Headers (the `host` header is removed)\n- Method\n- Body (only JSON is supported)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fhttp-sponge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjclem%2Fhttp-sponge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fhttp-sponge/lists"}