hook.cr

A simple webhook server

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

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/plambert/hook.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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