1.0.1 • Published 5 months ago

hooktunnel v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

HookTunnel

HookTunnel is a lightweight CLI tool for proxying webhook requests from Git providers (GitHub, GitLab, Bitbucket) in internal or intranet environments. It automatically forwards webhook messages using ngrok, enabling seamless development and testing.

Installation

Ensure you have Node.js and npm installed before proceeding. Then, install HookTunnel globally using npm:

npm install -g hooktunnel

Or use it without installation via npx:

npx hooktunnel --help

Usage

To use HookTunnel, provide the ngrok authentication token, server port, target URL, and optionally the ngrok domain. These can be passed as command-line arguments or set as environment variables.

šŸ”‘ Get your ngrok authentication token here.

CLI Usage

npx hooktunnel --token <NGROK_AUTH_TOKEN> --port <SERVER_PORT> --target <TARGET_URL> --ngrok-domain <NGROK_DOMAIN>

Environment Variables

VariableDescriptionRequired
HC_NGROK_AUTH_TOKENngrok authentication tokenāœ…
HC_TARGET_URLTarget URLāœ…
HC_PORTServer port (optional)āŒ
HC_NGROK_DOMAINngrok custom domain (optional)āŒ

Example Usage

hooktunnel --token YOUR_AUTH_TOKEN --port 3000 --target http://localhost:3000

Contributing

We welcome contributions! If you find an issue or have a feature request, please open an issue on GitHub.

1.0.1

5 months ago

1.0.0

5 months ago

0.0.1

5 months ago