Skip to content

Add webhook forwarding feature#6

Merged
cmer merged 2 commits intomainfrom
cmer/webhook-forwarding
Mar 8, 2026
Merged

Add webhook forwarding feature#6
cmer merged 2 commits intomainfrom
cmer/webhook-forwarding

Conversation

@cmer
Copy link
Owner

@cmer cmer commented Mar 8, 2026

Summary

Adds --forward-to <url> flag to forward incoming webhooks to a local app while still capturing them in the dashboard. Forwarding preserves HTTP method, path, query string, headers, and body. The caller receives the target's actual response (status/body) or 502 on connection error.

Changes

  • Backend: forwardWebhook() function with 10s timeout, header filtering, and response truncation (100KB max)
  • Dashboard: Forward badges in list view (color-coded by status), dedicated Forwarding section in detail with full request/response info
  • Response body: Supports JSON formatting, word wrap, and copy controls (like request body)
  • Terminal: Shows forwarding result (green/yellow/red status, duration, or error)
  • Sidebar: Displays forwarding target URL when active
  • Tests: 11 new comprehensive forwarding tests, all 76 tests pass

Notes

  • Requires Node.js 18+ (for built-in fetch)
  • Version bumped to 1.2.0

cmer and others added 2 commits March 7, 2026 23:40
- Add --forward-to <url> flag to forward webhooks to local app
- Forwarding preserves method, path, query, headers, body
- Caller receives target's response or 502 on error
- Dashboard shows forwarding status in list and detail views
- Response body supports format JSON, word wrap, copy
- Terminal shows forwarding result (colored status/error)
- Node 18+ required for built-in fetch
- 11 new forwarding tests, all 76 tests pass

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cmer cmer merged commit ef7ba6d into main Mar 8, 2026
3 checks passed
@cmer cmer deleted the cmer/webhook-forwarding branch March 8, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant