hook.cr
hook
Simple HTTP server to receive webhooks, and log them, add them to a database, and/or spawn an external program for each one.
Installation
TODO: Write installation instructions here
Usage
% hook
By default, it listens on port 8000 and dumps ALL received requests to STDOUT as JSON, including the full request info.
OPTIONS: (none of these are implemented yet!)
- --host
[: ] - Sets the host/IP and port to bind to to; can be given multiple times.
- --logfile
- Sets the name of the logfile to which to write all received requests; by default, it uses
/dev/stdout
- Can have %{date:%Y%m%d-%H%m%s}, %{hostname}, %{port}, and other template variables
- Sets the name of the logfile to which to write all received requests; by default, it uses
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/plambert/hook.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Paul M. Lambert - creator and maintainer
Repository
hook.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 12 days ago
- August 28, 2025
License
MIT License
Links
Synced at
Tue, 09 Sep 2025 23:24:02 GMT
Languages