Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A simple Node.js server for queueing and relaying webhook requests
Branch: master
Pull request Compare This branch is even with simonw:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.



    Status: Highly experimental, not actively maintained

A Node.js server for forwarding webhook requests in a non-blocking
manner. are brilliant, but implementing them as a 
provider is a little tricky as your application has to make HTTP 
request to arbitrary endpoints when specific actions occur. If there 
are many of those endpoints and some of them are slow to respond, 
this could degrade the performance of your application.

A common solution to this problem is to place outgoing webhook 
requests in a queue. webhook-relay is a self-contained queue and 
response sending agent. You send it an HTTP POST describing the 
webhook request that needs to be sent, it replies instantly with 
an "OK", and the request itself is sent off shortly afterwards.

webhook-relay should respond within a few ms, so your main 
application can safely block on the call to webhook-relay.

webhook-relay also tracks statistics on the number of calls it 
has made successfully.


    git clone git://
    cd webhook-relay
    # Pull in dependencies: djangode and restler
    git submodule init
    git submodule update
    # Run the server:
    node webhook-restler.js

Usage from Python:

    import urllib, json
        'http://localhost:8056/relay/', urllib.urlencode({
            'url': '',
            'data': json.dumps({'foo': 'bar', 'baz': 'bwaf'})

Then visit to see what was posted. You can 
also visit http://localhost:8056/ to see basic webhook-relay statistics.
Something went wrong with that request. Please try again.