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.
Install Deno on your machine.
Mac and Linux:
curl -fsSL https://deno.land/install.sh | sh
Windows:
irm https://deno.land/install.ps1 | iex
- Run HTTP server and tunnel:
deno run -A https://raw.githubusercontent.com/esadek/hungry-hippo/main/main.ts
- Send requests to ngrok URL:
curl --json '{"event": "test"}' https://abc-123.ngrok-free.app
- View JSON objects in
data.jsonl
:
cat data.jsonl