npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hooklink/cli

v0.1.35

Published

HookLink CLI - Forward webhooks to your local development machine

Readme

HookLink CLI

Forward webhooks to your local development machine via WebSocket tunnel.

Installation

npm install -g @hooklink/cli

Quick Start

  1. Login with your API key:

    hooklink login
  2. View your endpoints:

    hooklink endpoints
  3. Connect and start forwarding:

    hooklink connect myapp --target http://localhost:3000

Commands

hooklink login

Authenticate with your HookLink API key.

# Interactive prompt
hooklink login

# With API key flag
hooklink login --key hlk_your_api_key_here

hooklink logout

Clear stored credentials.

hooklink logout

hooklink connect [endpoint]

Connect to HookLink and forward webhooks to your local server.

# Connect to specific endpoint
hooklink connect myapp --target http://localhost:3000

# Use port shorthand
hooklink connect myapp --port 3000

# Connect to first active endpoint
hooklink connect --port 8080

Options:

  • -t, --target <url> - Local target URL (default: http://localhost:3000)
  • -p, --port <port> - Local port (alternative to --target)

hooklink status

Show current configuration and connection status.

hooklink status

hooklink endpoints

List all your endpoints.

hooklink endpoints
# or
hooklink ls

hooklink logs

View recent webhook request logs.

# Show recent logs
hooklink logs

# Filter by endpoint
hooklink logs --endpoint myapp

# Limit number of logs
hooklink logs --limit 50

Options:

  • -e, --endpoint <keyword> - Filter by endpoint keyword
  • -l, --limit <number> - Number of logs to fetch (default: 20)

hooklink config

View or modify CLI configuration.

# List all configuration
hooklink config

# Get specific value
hooklink config --get apiUrl

# Set configuration value
hooklink config --set apiUrl=https://api.hooklink.net
hooklink config --set defaultPort=8080

# Delete configuration value
hooklink config --delete defaultPort

# Reset all configuration
hooklink config --reset

Configuration

Configuration is stored in ~/.config/hooklink/config.json (or OS-specific config directory).

Available configuration keys:

  • apiKey - Your HookLink API key (use hooklink login instead)
  • apiUrl - API base URL (default: https://api.hooklink.net)
  • wsUrl - WebSocket server URL (default: wss://ws.hooklink.net/ws)
  • defaultEndpoint - Default endpoint keyword to connect to
  • defaultPort - Default local port (default: 3000)

How It Works

  1. The CLI establishes a WebSocket connection to the HookLink server
  2. When a webhook arrives at your public URL, the server forwards it through the WebSocket
  3. The CLI receives the webhook and forwards it to your local server
  4. The response from your local server is sent back through the WebSocket
  5. HookLink returns the response to the original webhook sender

Troubleshooting

Connection Issues

  • Ensure you're logged in: hooklink login
  • Check your endpoint is active: hooklink endpoints
  • Verify your local server is running
  • Check WebSocket URL: hooklink config --get wsUrl

Authentication Errors

  • Verify your API key is valid: hooklink status
  • Re-login if needed: hooklink logout && hooklink login

Request Not Forwarding

  • Check logs: hooklink logs
  • Ensure your endpoint URL matches the webhook source
  • Verify source whitelist settings in the dashboard

Examples

Basic Usage

# Login
hooklink login --key hlk_your_api_key

# Start forwarding to localhost:3000
hooklink connect myapp

# Start forwarding to different port
hooklink connect myapp --port 8080

Custom Configuration

# Set custom API URL (for self-hosted)
hooklink config --set apiUrl=https://api.yourdomain.com
hooklink config --set wsUrl=wss://ws.yourdomain.com

# Set default port
hooklink config --set defaultPort=8080

# Now connect uses your defaults
hooklink connect myapp

Viewing Logs

# View recent logs
hooklink logs

# View logs for specific endpoint
hooklink logs --endpoint myapp

# View more logs
hooklink logs --limit 100

License

MIT