esadek / hungry-hippo

Consume webhooks on your local machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hungry Hippo

Hungry Hippo is a Deno HTTP server that accepts JSON payloads via POST, PUT and PATCH requests and appends the received JSON to a JSON Lines file. ngrok is used to expose the server to the internet. Hungry Hippo was created to be used with the RudderStack webhooks destination, but can be used to consume webhooks from other providers.

Diagram

Prerequisite

Install Deno. Homebrew is recommended for macOS:

brew install deno

Usage

  1. Run HTTP server and tunnel:
deno run -A https://raw.githubusercontent.com/esadek/hungry-hippo/main/main.ts
  1. Send requests to ngrok URL:
curl --json '{"event": "test"}' https://abc-123.ngrok-free.app
  1. View JSON objects in data.jsonl:
cat data.jsonl

License

MIT

About

Consume webhooks on your local machine

License:MIT License


Languages

Language:TypeScript 100.0%