Skip to content

esadek/hungry-hippo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hungry Hippo

Build Size License

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 on your machine.

Mac and Linux:

curl -fsSL https://deno.land/install.sh | sh

Windows:

irm https://deno.land/install.ps1 | iex

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

About

Consume webhooks on your local machine

Resources

License

Stars

Watchers

Forks