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

hostnextra-tunnel

v1.0.0

Published

Official secure tunnel plugin for the HostnExtra CLI.

Readme

HostnExtra Tunnel

HostnExtra Tunnel is the official SSH tunnel plugin for the HostnExtra CLI. It provides secure local port forwarding using OpenSSH, allowing you to access services running on remote servers as if they were available on your local machine.


Features

  • Secure SSH local port forwarding
  • Reusable tunnel profiles
  • Open, list, show and close tunnels
  • Automatic SSH host resolution
  • Compatible with OpenSSH
  • Supports HostnExtra SSH plugin
  • Supports ~/.ssh/config
  • No passwords or private keys are stored
  • Lightweight with zero runtime dependencies
  • Fully written in TypeScript

Installation

npm install -g hostnextra

Install the tunnel plugin.

hostnextra plugin add tunnel

Verify installation:

hostnextra tunnel help

Requirements

  • Node.js 22 or later
  • OpenSSH client installed
  • SSH access to the remote server

Tunnel Profiles

Tunnel profiles define reusable local forwarding rules.

Profiles are stored locally.

~/.hostnextra/
└── tunnel/
    └── profiles.json

Profiles only contain tunnel definitions.

The plugin never stores:

  • Passwords
  • SSH private keys
  • Secrets
  • Authentication tokens

Creating a Profile

MySQL

hostnextra tunnel profile add mysql-prod \
    --from web-prod:3306 \
    --to localhost:3306

Nginx

hostnextra tunnel profile add nginx-prod \
    --from web-prod:80 \
    --to localhost:8080

Redis

hostnextra tunnel profile add redis-prod \
    --from web-prod:6379 \
    --to localhost:6379

PostgreSQL

hostnextra tunnel profile add postgres-prod \
    --from web-prod:5432 \
    --to localhost:5432

Opening a Tunnel

hostnextra tunnel open mysql-prod

Listing Active Tunnels

hostnextra tunnel list

Show Tunnel Information

hostnextra tunnel show tunnel-93551670

Closing a Tunnel

If the tunnel is running in the foreground, press:

Ctrl+C

Or close it using:

hostnextra tunnel close tunnel-93551670

Profile Management

Add profile

hostnextra tunnel profile add NAME \
    --from HOST:REMOTE_PORT \
    --to LOCAL_HOST:LOCAL_PORT

Remove profile

hostnextra tunnel profile remove mysql-prod

List profiles

hostnextra tunnel profile list

Show profile

hostnextra tunnel profile show mysql-prod

SSH Host Resolution

HostnExtra Tunnel resolves SSH hosts in the following order:

  1. Explicit CLI arguments
  2. HostnExtra SSH plugin
  3. ~/.ssh/config

The HostnExtra SSH plugin is optional.

If it is installed, server aliases are resolved automatically.

If it is not installed, the plugin falls back to the standard OpenSSH configuration.


Examples

MySQL

hostnextra tunnel profile add mysql-prod \
    --from web-prod:3306 \
    --to localhost:3306

hostnextra tunnel open mysql-prod

mysql -h 127.0.0.1 -P 3306 -u root -p

Nginx

hostnextra tunnel profile add nginx-prod \
    --from web-prod:80 \
    --to localhost:8080

hostnextra tunnel open nginx-prod

Open:

http://127.0.0.1:8080

Uninstall

Remove the plugin.

hostnextra plugin remove tunnel

Security

HostnExtra Tunnel uses the system OpenSSH client.

Authentication is handled entirely by OpenSSH.

The plugin never stores:

  • Passwords
  • SSH keys
  • SSH agent data
  • Secrets

Tunnel profiles only define forwarding rules.


Contributing

Contributions are welcome.

Please open an issue before submitting significant changes so they can be discussed first.


License

MIT License.