GithubHelp home page GithubHelp logo

cf-webhook-relay's Introduction

Cloudflare Webhook Relay

If you use a tool that is not currently supported by Cloudflare's Webhook Notification System, you can use Cloudflare Worker's in combination with a generic webhook to support pretty much any tool on the planet.

This repo contains an example of how to transform the generic webhook response so that it can be delivered to rocket Chat. The entirety of the codebase is 60 lines long and heavily commented.

Check out index.js to get started.

How Would I adapt this for a Different Tool?

The general principle behind making this work is to transform the generic webhook response into the one your service of choice expects. In this repo you can see in sample-data.json what a Cloudflare Generic Webhook Response looks like. You can also see in rocket-chat.json what our target payload looks like. It is simply an exercise of transforming one to the other and passing it on.

Further Reading

cf-webhook-relay's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.