{"id":31794463,"url":"https://github.com/0xrelogic/webhook-catcher-cli","last_synced_at":"2025-10-10T19:45:55.547Z","repository":{"id":309914788,"uuid":"1037862737","full_name":"0xReLogic/webhook-catcher-cli","owner":"0xReLogic","description":"A tiny Go CLI to instantly catch, inspect, and debug webhooks on your localhost, with built-in optional ngrok tunneling.","archived":false,"fork":false,"pushed_at":"2025-08-14T15:22:07.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-14T15:26:19.937Z","etag":null,"topics":["api","api-tes","cli","debugging","developer-tools","go","golang","http","localtunnel","ngrok","tui","webhook"],"latest_commit_sha":null,"homepage":"https://allenarch.dev/","language":"Go","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/0xReLogic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-14T08:33:28.000Z","updated_at":"2025-08-14T15:22:11.000Z","dependencies_parsed_at":"2025-08-14T15:26:29.252Z","dependency_job_id":"aa32082b-c211-47a8-a134-053fa87c1e43","html_url":"https://github.com/0xReLogic/webhook-catcher-cli","commit_stats":null,"previous_names":["0xrelogic/webhook-catcher-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xReLogic/webhook-catcher-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xReLogic%2Fwebhook-catcher-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xReLogic%2Fwebhook-catcher-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xReLogic%2Fwebhook-catcher-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xReLogic%2Fwebhook-catcher-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xReLogic","download_url":"https://codeload.github.com/0xReLogic/webhook-catcher-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xReLogic%2Fwebhook-catcher-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005025,"owners_count":26083827,"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-10T02:00:06.843Z","response_time":62,"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":["api","api-tes","cli","debugging","developer-tools","go","golang","http","localtunnel","ngrok","tui","webhook"],"created_at":"2025-10-10T19:45:52.195Z","updated_at":"2025-10-10T19:45:55.540Z","avatar_url":"https://github.com/0xReLogic.png","language":"Go","readme":"# Webhook Catcher CLI\n\n\u003cimg align=\"right\" src=\"https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExeWFmaGh6aXllNnZ5bjRyemloZ3MwM3pmZjF2ZThja2VwbGgzcWxjMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/Rhqc9LeqEqjuZABDmd/giphy.gif\" width=\"160\" alt=\"Webhook Catcher Sticker\" /\u003e\n\n[![Build](https://github.com/0xReLogic/webhook-catcher-cli/actions/workflows/release.yml/badge.svg)](https://github.com/0xReLogic/webhook-catcher-cli/actions/workflows/release.yml)\n[![codecov](https://codecov.io/gh/0xReLogic/webhook-catcher-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/0xReLogic/webhook-catcher-cli)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/0xReLogic/webhook-catcher-cli?logo=go)](https://go.dev/)\n[![License](https://img.shields.io/github/license/0xReLogic/webhook-catcher-cli)](LICENSE)\n[![Release](https://img.shields.io/github/v/release/0xReLogic/webhook-catcher-cli?include_prereleases)](https://github.com/0xReLogic/webhook-catcher-cli/releases)\n[![Downloads](https://img.shields.io/github/downloads/0xReLogic/webhook-catcher-cli/total)](https://github.com/0xReLogic/webhook-catcher-cli/releases)\n[![GitHub Stars](https://img.shields.io/github/stars/0xReLogic/webhook-catcher-cli?style=social)](https://github.com/0xReLogic/webhook-catcher-cli/stargazers)\n\nCatch webhooks from Stripe, GitHub, Discord, Midtrans, Slack, Shopify, Telegram, and more no adapters needed.\n\nA tiny CLI to spin up a local HTTP server that logs every incoming request (method, headers, body) with pretty‑printed JSON. Optionally expose it to the internet using an ngrok tunnel and get a public URL instantly.\n\n## Features\n- Simple HTTP listener on your machine\n- Pretty‑prints JSON request bodies\n- Shows method, path, and sorted headers\n- Optional ngrok tunneling (choose from interactive menu)\n- Interactive ngrok onboarding: if needed, you’ll be prompted for the token and it’s stored automatically for next runs\n- Small, single‑binary distribution\n\n- Works with Stripe, GitHub, Discord, Midtrans, Slack, Shopify, Telegram, and more\n\n## Works with any provider\nThis tool is a generic webhook catcher. No plugins or adapters are required it prints method, path, sorted headers (e.g., Stripe-Signature, X-GitHub-Event), and prettified JSON bodies. It works great with Stripe, GitHub, Discord, Midtrans, Slack, Shopify, Telegram, and more.\n\n## Requirements\n- Go 1.21+\n- (Optional) ngrok account if you want tunneling\n\n## Releases\n- Latest: https://github.com/0xReLogic/webhook-catcher-cli/releases/latest\n- All releases: https://github.com/0xReLogic/webhook-catcher-cli/releases\n\n## Download (Windows, Linux, macOS)\nQuick start:\n- Windows (PowerShell):\n```powershell\n.\\webhook-catcher-cli.exe\n```\n- macOS / Linux:\n```bash\nchmod +x ./webhook-catcher-cli\n./webhook-catcher-cli\n```\n\n## Install\n```bash\n# From source\ngit clone https://github.com/0xReLogic/webhook-catcher-cli.git\ncd webhook-catcher-cli\ngo build -o webhook-catcher-cli\n\n# Or install directly\n# go install github.com/0xReLogic/webhook-catcher-cli@latest\n```\n\n## Usage\n### One‑click / Interactive start\nIf you launch the binary without arguments (e.g., double‑click on Windows), the app will show a simple menu:\n\n```\nSelect mode: [1] Local (default)  [2] Tunnel (ngrok)\nEnter 1 or 2 (default 1):\n```\n\n- Choose 1 to run locally on `127.0.0.1:3000`.\n- Choose 2 to enable ngrok. If needed, you’ll be guided to the ngrok dashboard to copy your token, then paste it once. We store it automatically for future runs.\n\nSend sample requests:\n```bash\n# JSON\ncurl -i -X POST http://127.0.0.1:3000/test -H \"Content-Type: application/json\" --data '{\"hello\":\"world\"}'\n\n# Plain text\ncurl -i -X POST http://127.0.0.1:3000/echo -H \"Content-Type: text/plain\" --data \"hello webhook\"\n```\n\n### Build and Run\nTo run from source:\n```\ngo build -o webhook-catcher-cli\n# Start the app (interactive menu will appear, choose 1 for local or 2 for tunnel)\ngo run .\n```\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=0xReLogic/webhook-catcher-cli\u0026type=Date)](https://www.star-history.com/#0xReLogic/webhook-catcher-cli\u0026Date)\n\nMilestone:\n- If this project reaches 100+ GitHub stars, I'll build and host a simple tunnel server on my own VPS so this CLI no longer depends on ngrok.\n\n## Quick Provider Testing (Postman)\n\nUse this ready-to-run Postman Collection to quickly test common providers. The collection uses a `baseUrl` variable so you can easily switch tunnels.\n\nSteps:\n- Import the collection below into Postman (Import \u003e Raw text).\n- Set the collection variable `baseUrl` to your tunnel, e.g. `https://\u003cYOUR_TUNNEL_URL\u003e`.\n- Send the requests; this CLI will print method, path, headers, and body.\n\nPostman Collection (v2.1):\n\n```json\n{\n  \"info\": {\n    \"name\": \"Webhook Catcher - Quick Provider Testing\",\n    \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"\n  },\n  \"variable\": [\n    { \"key\": \"baseUrl\", \"value\": \"https://\u003cYOUR_TUNNEL_URL\u003e\" }\n  ],\n  \"item\": [\n    {\n      \"name\": \"GitHub - Issues Webhook\",\n      \"request\": {\n        \"method\": \"POST\",\n        \"header\": [\n          { \"key\": \"Content-Type\", \"value\": \"application/json\" },\n          { \"key\": \"X-GitHub-Event\", \"value\": \"issues\" }\n        ],\n        \"body\": {\n          \"mode\": \"raw\",\n          \"raw\": \"{\\n  \\\"action\\\": \\\"opened\\\",\\n  \\\"issue\\\": {\\n    \\\"number\\\": 1347,\\n    \\\"title\\\": \\\"Found a critical bug!\\\",\\n    \\\"user\\\": { \\\"login\\\": \\\"0xReLogic\\\" }\\n  },\\n  \\\"repository\\\": { \\\"full_name\\\": \\\"0xReLogic/Helios\\\" }\\n}\"\n        },\n        \"url\": { \"raw\": \"{{baseUrl}}/github-webhook\", \"host\": [\"{{baseUrl}}\"], \"path\": [\"github-webhook\"] }\n      }\n    },\n    {\n      \"name\": \"Discord - Notification\",\n      \"request\": {\n        \"method\": \"POST\",\n        \"header\": [ { \"key\": \"Content-Type\", \"value\": \"application/json\" } ],\n        \"body\": {\n          \"mode\": \"raw\",\n          \"raw\": \"{\\n  \\\"username\\\": \\\"Server Notif Bot\\\",\\n  \\\"avatar_url\\\": \\\"https://i.imgur.com/4M34hi2.png\\\",\\n  \\\"content\\\": \\\"Warning! Production CPU usage reached 95%!\\\",\\n  \\\"embeds\\\": [\\n    {\\n      \\\"title\\\": \\\"Metric Details\\\",\\n      \\\"color\\\": 15258703,\\n      \\\"fields\\\": [\\n        { \\\"name\\\": \\\"Server ID\\\", \\\"value\\\": \\\"prod-web-01\\\", \\\"inline\\\": true },\\n        { \\\"name\\\": \\\"CPU Usage\\\", \\\"value\\\": \\\"95.2%\\\", \\\"inline\\\": true }\\n      ]\\n    }\\n  ]\\n}\"\n        },\n        \"url\": { \"raw\": \"{{baseUrl}}/discord-notif\", \"host\": [\"{{baseUrl}}\"], \"path\": [\"discord-notif\"] }\n      }\n    },\n    {\n      \"name\": \"Midtrans - Payment Notification\",\n      \"request\": {\n        \"method\": \"POST\",\n        \"header\": [ { \"key\": \"Content-Type\", \"value\": \"application/json\" } ],\n        \"body\": {\n          \"mode\": \"raw\",\n          \"raw\": \"{\\n  \\\"transaction_time\\\": \\\"2025-08-14 17:35:00\\\",\\n  \\\"transaction_status\\\": \\\"settlement\\\",\\n  \\\"transaction_id\\\": \\\"a1b2c3d4-e5f6-7890-1234-567890abcdef\\\",\\n  \\\"status_message\\\": \\\"midtrans payment notification\\\",\\n  \\\"status_code\\\": \\\"200\\\",\\n  \\\"signature_key\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n  \\\"payment_type\\\": \\\"gopay\\\",\\n  \\\"order_id\\\": \\\"ORDER-101-XYZ\\\",\\n  \\\"merchant_id\\\": \\\"G123456789\\\",\\n  \\\"gross_amount\\\": \\\"50000.00\\\",\\n  \\\"fraud_status\\\": \\\"accept\\\",\\n  \\\"currency\\\": \\\"IDR\\\"\\n}\"\n        },\n        \"url\": { \"raw\": \"{{baseUrl}}/midtrans-callback\", \"host\": [\"{{baseUrl}}\"], \"path\": [\"midtrans-callback\"] }\n      }\n    },\n    {\n      \"name\": \"Stripe - payment_intent.succeeded\",\n      \"request\": {\n        \"method\": \"POST\",\n        \"header\": [\n          { \"key\": \"Content-Type\", \"value\": \"application/json\" },\n          { \"key\": \"Stripe-Signature\", \"value\": \"t=1723650000,v1=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" }\n        ],\n        \"body\": {\n          \"mode\": \"raw\",\n          \"raw\": \"{\\n  \\\"id\\\": \\\"evt_test_123\\\",\\n  \\\"type\\\": \\\"payment_intent.succeeded\\\",\\n  \\\"created\\\": 1723650000,\\n  \\\"livemode\\\": false,\\n  \\\"data\\\": {\\n    \\\"object\\\": {\\n      \\\"id\\\": \\\"pi_123\\\",\\n      \\\"amount\\\": 5000,\\n      \\\"currency\\\": \\\"usd\\\",\\n      \\\"status\\\": \\\"succeeded\\\"\\n    }\\n  }\\n}\"\n        },\n        \"url\": { \"raw\": \"{{baseUrl}}/stripe-webhook\", \"host\": [\"{{baseUrl}}\"], \"path\": [\"stripe-webhook\"] }\n      }\n    }\n  ]\n}\n```\n\n## Examples\n\n### Stripe (payment_intent.succeeded)\nSample capture of a Stripe `payment_intent.succeeded` event received via tunnel:\n\n![Stripe webhook screenshot](https://i.imgur.com/x5EsF7Z.png)\n\nPowerShell response example (Invoke-WebRequest output):\n\n![PowerShell response screenshot](https://i.imgur.com/Af7Ljd3.png)\n\n### Quick send examples (Stripe \u0026 Discord only)\nUse your current tunnel URL as `\u003cPUBLIC_URL\u003e` (from the app output: \"Public URL: https://xxxxx.ngrok-free.app\").\n\n- PowerShell\n```powershell\n# Stripe\n$URL = \"https://\u003cPUBLIC_URL\u003e/stripe-webhook\"\nInvoke-WebRequest -Method POST -Uri $URL -ContentType \"application/json\" -Headers @{ \"Stripe-Signature\"=\"t=1723650000,v1=aaaa\" } -Body '{\n  \"id\":\"evt_test_123\",\n  \"type\":\"payment_intent.succeeded\",\n  \"data\": { \"object\": { \"id\":\"pi_123\",\"amount\":5000,\"currency\":\"usd\",\"status\":\"succeeded\" } }\n}'\n\n# Discord\n$URL = \"https://\u003cPUBLIC_URL\u003e/discord-webhook\"\nInvoke-WebRequest -Method POST -Uri $URL -ContentType \"application/json\" -Body '{\n  \"id\":\"1234567890\",\n  \"type\":\"MESSAGE_CREATE\",\n  \"content\":\"Hello from Discord webhook simulator\",\n  \"channel_id\":\"987654321\"\n}'\n```\n\n- Bash\n```bash\n# Stripe\ncurl -i -X POST \"https://\u003cPUBLIC_URL\u003e/stripe-webhook\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Stripe-Signature: t=1723650000,v1=aaaa\" \\\n  --data '{\n    \"id\":\"evt_test_123\",\n    \"type\":\"payment_intent.succeeded\",\n    \"data\":{\"object\":{\"id\":\"pi_123\",\"amount\":5000,\"currency\":\"usd\",\"status\":\"succeeded\"}}\n  }'\n\n# Discord\ncurl -i -X POST \"https://\u003cPUBLIC_URL\u003e/discord-webhook\" \\\n  -H \"Content-Type: application/json\" \\\n  --data '{\n    \"id\":\"1234567890\",\n    \"type\":\"MESSAGE_CREATE\",\n    \"content\":\"Hello from Discord webhook simulator\",\n    \"channel_id\":\"987654321\"\n  }'\n```\n\n\n## Development\n```bash\ngo fmt ./...\ngo vet ./...\ngo test ./...\ngo run . -port 3001\n```\n## License\nMIT\n\n---\n\nMade with ❤️  Allen Elzayn\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xrelogic%2Fwebhook-catcher-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xrelogic%2Fwebhook-catcher-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xrelogic%2Fwebhook-catcher-cli/lists"}