DEV Community

Discussion on: Comprehensive Guide to Twitter Webhook

Collapse
 
alexluong profile image
Alex Luong

Hey Andy, I totally missed Autohook. It’s awesome. I aim to write something quite similar, but slightly more versatile in my CLI.

By the way, is Autohook serverless friendly? It seems like it’s designed for a running server, right?

Collapse
 
i_am_daniele profile image
Daniele

Hi Alex! Thanks for checking out Autohook! So great this is inspiring you to create something similar.

Autohook has a built-in server, but you can disable that and use your own instead. This is useful in situations where you want to serve a webhook via a serverless module, and only use Autohook to handle incoming messages and user subscriptions.

The standalone server test shows an example of this. You can serve a webhook from anywhere, as long as it implements a CRC check (you can use validateWebhook from Autohook without starting a server).