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 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-ngrok

v3.1.0

Published

Node-RED node to wrap and control ngrok

Downloads

284

Readme

node-red-contrib-ngrok

This is a client (ngrok-javascript) to expose and manage the popular tunnelling service ngrok from Node-RED.

You can start and stop a tunnel using the button on the node or by injecting values, the node will then output the ngrok host address as the msg.payload

The tunnel will expose the port that your Node-RED GUI is running on (eg 1880), you can override this port by setting the Port value in the node.

The 3.0.0 release uses the new ngrok javascript client, as such region support has been removed an it now uses ngrok's new global load balancing service. The new client no longer offers the local debug console on port 4040, however ngrok have a new console as part of the dashboard in beta as of Feb 2024.

Account registration is now required but all users get one free reserved tunnel address even on the free plan.

Other optional fields around the host and port that the connection is forwarded to along with adding auth or setting up a TCP tunnel are configurable within the node, consult the built in help or the ngrok documentation for an explanation.

For dynamic control, there is a demo flow included. Use CTRL+I then choose examplesnode-red-contrib-ngrokdynamic-control-demo

!!!DANGER!!!

By running this node you will be exposing your Node-RED install to the public internet, therefore you are strongly advised to set an admin password on the editor. read (https://nodered.org/docs/security)

Feedback, Issues and PRs welcome on github.

Debugging

If your node-red logging level is set to `debug` then the full set of options being passed to the ngrok client (ngrok.forward) will be logged to the console, *including the authtoken*,
This can be useful when trying to diagnose issues and may be asked for by ngrok support. Please include this info (redacting your authtoken) in any issues asking for support.

The simplest way to enable this logging if running node-red from the command line is to launch with the command `node-red -D logging.console.level=debug`

Platform Support

Pre-built binaries are provided on NPM for the following platforms:

| OS | i686 | x64 | aarch64 | arm | | ---------- | -----|-----|---------|-----| | Windows | ✓ | ✓ | * | | | MacOS | | ✓ | ✓ | | | Linux | | ✓ | ✓ | ✓ | | Linux musl | | ✓ | ✓ | | | FreeBSD | | ✓ | | | | Android | | | ✓ | ✓ |

Note ngrok-javascript, and ngrok-rust which it depends on, are open source, so it may be possible to build them for other platforms.

  • Windows-aarch64 will be supported after the next release of Ring.