{"id":28304074,"url":"https://github.com/csimi/hooksponge","last_synced_at":"2025-10-10T01:04:17.864Z","repository":{"id":54395225,"uuid":"179086185","full_name":"csimi/hooksponge","owner":"csimi","description":"HookSponge is the easiest way to inspect your webhook triggers in Docker.","archived":false,"fork":false,"pushed_at":"2023-11-12T01:48:05.000Z","size":367,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T03:57:35.536Z","etag":null,"topics":["testing","webhook"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/csimi/hooksponge","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csimi.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}},"created_at":"2019-04-02T13:40:00.000Z","updated_at":"2025-08-07T07:50:46.000Z","dependencies_parsed_at":"2022-08-13T14:20:44.672Z","dependency_job_id":null,"html_url":"https://github.com/csimi/hooksponge","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/csimi/hooksponge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fhooksponge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fhooksponge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fhooksponge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fhooksponge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csimi","download_url":"https://codeload.github.com/csimi/hooksponge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fhooksponge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002411,"owners_count":26083373,"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-10-09T02:00:07.460Z","response_time":59,"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":["testing","webhook"],"created_at":"2025-05-24T00:12:01.642Z","updated_at":"2025-10-10T01:04:17.859Z","avatar_url":"https://github.com/csimi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![image version](https://img.shields.io/docker/v/csimi/hooksponge?sort=semver)](https://hub.docker.com/r/csimi/hooksponge)\n\n# About\n\nHookSponge was created for inspecting webhook triggers.\nThere are countless ways to inspect incoming webhooks as development for this is more common than sending/triggering webhooks.\nWhen triggering webhooks you are not in control of the URI, so tools designed for multi-tenant environments like Webhook.site or RequestBin just don't work.\n\nHookSponge soaks up every HTTP or HTTPS (with a self-signed cert) request except for \"/\" and its own assets.\n\n# Requirements\n\n- docker-compose file version 2+\n- redis 5+ for storage\n\n# Usage\n\nAdd a hooksponge container into your docker-compose file while aliasing the hosts of external servers in your network configuration.\n```\n  hooksponge:\n    image: csimi/hooksponge\n    depends_on:\n      - redis\n    ports:\n      - \"3000:3000\"\n    networks:\n      my-network:\n        aliases:\n          - api.example.com\n          - webhook.example.com\n    environment:\n      - BIND_HOST=0.0.0.0\n      - BIND_PORT=3000\n      - REDIS_KEY=hooksponge\n      - REDIS_HOST=redis\n      - REDIS_PORT=6379\n```\n\n# Responder customization\n\nYou can use your own responder function so instead of receiving an empty object on calls, you receive a response expected by your application.\n\nChange your docker-compose to mount your responder file as:\n```\n    volumes:\n      - ./myResponder.js:/usr/src/app/src/responder.js\n```\n\nHookSponge expects a function as default export which receives the http request object:\n```\nexport default function (req) {\n\t// decide response based on req\n\treturn {};\n}\n```\n\n# Configuration\n\nYou can change the settings using environment variables.\n\n## BIND_HOST\n\nType: `String`\n\nDefault: `0.0.0.0`\n\nThe ip or hostname to bind to.\n\n## BIND_PORT\n\nType: `Integer`\n\nDefault: `3000`\n\nThe port to bind to.\nThere is an additional requirement to bind to 80 and 443 in order to intercept requests.\n\n## REDIS_KEY\n\nType: `String`\n\nDefault: `hooksponge`\n\nThe redis stream's key.\n\n## REDIS_HOST\n\nType: `String`\n\nDefault: none\n\nThe redis server's ip or hostname.\n\n## REDIS_PORT\n\nType: `Integer`\n\nDefault: `6379`\n\nThe redis server's port.\n\n# TODO:\n\n- [x] Automatic updater\n- [x] Desktop notifications\n- [ ] Delete/purge events\n- [ ] Inline documentation\n- [ ] Tests\n\n# Attribution\n\nThe sponge favicon and logo was created by [Twitter for Twemoji](https://github.com/twitter/twemoji) and is licensed under the CC-BY 4.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Fhooksponge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsimi%2Fhooksponge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Fhooksponge/lists"}