{"id":35843297,"url":"https://github.com/gugahoi/blackhole","last_synced_at":"2026-05-18T03:25:49.308Z","repository":{"id":332414635,"uuid":"1130095157","full_name":"gugahoi/blackhole","owner":"gugahoi","description":"Echo webserver to debug webhooks","archived":false,"fork":false,"pushed_at":"2026-01-08T02:56:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T20:27:43.233Z","etag":null,"topics":["cli","server","webhooks"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gugahoi.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T02:54:57.000Z","updated_at":"2026-01-08T02:56:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gugahoi/blackhole","commit_stats":null,"previous_names":["gugahoi/blackhole"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gugahoi/blackhole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugahoi%2Fblackhole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugahoi%2Fblackhole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugahoi%2Fblackhole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugahoi%2Fblackhole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gugahoi","download_url":"https://codeload.github.com/gugahoi/blackhole/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugahoi%2Fblackhole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["cli","server","webhooks"],"created_at":"2026-01-08T04:25:06.665Z","updated_at":"2026-05-18T03:25:49.302Z","avatar_url":"https://github.com/gugahoi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blackhole\n\nBlackhole is a CLI tool for debugging webhooks. It creates a local server that accepts all incoming HTTP/HTTPS requests, prints their details (headers, body, etc.) to the console with syntax highlighting, and always responds with a `200 OK`.\n\n## Features\n\n- **Catch-all**: Accepts any method (GET, POST, PUT, DELETE, etc.) and any path.\n- **Visuals**: ANSI-colored logs for easy reading in the terminal.\n- **JSON Support**: Automatically detects and pretty-prints JSON bodies.\n- **HTTPS**:\n    - Automatic self-signed certificate generation (zero config).\n    - Support for custom certificates (e.g., via `mkcert`).\n\n## Installation\n\n### Prerequisites\n- [Go](https://go.dev/) 1.16+ installed.\n\n### Build\n```bash\ncd blackhole\ngo build -o blackhole\n```\n\n## Usage\n\n### Basic HTTP\nListen on the default port (8080):\n```bash\n./blackhole\n```\n\nListen on a custom port:\n```bash\n./blackhole -port 9000\n```\n\n### HTTPS\n\n**Option 1: Automatic Self-Signed Certificate**\nQuickest way to test HTTPS. Browsers and tools like `curl` will warn about the certificate being untrusted (use `curl -k` to ignore).\n```bash\n./blackhole -https\n```\n\n**Option 2: Trusted Certificate (e.g., with mkcert)**\nIf you need a \"green lock\" locally, use [mkcert](https://github.com/FiloSottile/mkcert) to generate valid certificates:\n```bash\n# Generate certs\nmkcert localhost\n\n# Run blackhole with them\n./blackhole -cert localhost.pem -key localhost-key.pem\n```\n\n## Example Output\n\n```text\n--------------------------------------------------\n[15:04:05] POST /webhook/v1 HTTP/1.1\nQuery Params:\n  id: 123\nHeaders:\n  Content-Type: application/json\n  User-Agent: Go-http-client/1.1\nBody:\n{\n  \"event\": \"charge.succeeded\",\n  \"amount\": 1000\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgugahoi%2Fblackhole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgugahoi%2Fblackhole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgugahoi%2Fblackhole/lists"}