You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To generate public URLs, twilio-run uses the unofficial ngrok dependency from npm. This dependency has a few issues:
As noted in the README for ngrok, its simply a wrapper around the ngrok CLI tool. So, you must download and install the ngrok CLI tool as an external dependency and this complicates setup
You need to manually match the version of the ngrok dependency to specific versions of the ngrok CLI client, further complicating setup. You are using version 3.x for twilio-run, its not the latest 5.x version and it does not appear to be documented what ngrok CLI client versions it supports.
The npm dependency is maintained by a third party and is not officially supported by ngrok. So, ngrok could make some unexpected change and the integration might break suddenly.
The ngrok CLI tool is not FOSS and is closed source. For some projects, this could create licensing issues if the maintainers are not ok with that for whatever reason.
I propose replacing ngrok with tunnelmole. Tunnelmole is open source and the runtime is implemented in pure JavaScript.
You only need to add it as an npm dependency and you don't need to install anything separately. npm automatically manages all dependencies, you don't need to manually match up versions of anything.
As the runtime code is pure JavaScript, it is automatically cross platform and will run on all operating systems and CPU architectures that NodeJS can run on.
To compare usage: ngrok
First, download and install ngrok from ngrok.com, or this won't work. Also, ensure your version of the ngrok CLI tool is compatible with the version of the ngrok NPM dependency you are using.
consturl=awaitngrok.connect(3000);
tunnelmole
consturl=awaittunnelmole({port: 3000});
This works right away, without installing anything separately. It should be fairly straightforward to refactor your code to use tunnelmole.
Let me know if you'd like to move ahead and i'll create a PR with the changes.
The text was updated successfully, but these errors were encountered:
Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)
To generate public URLs, twilio-run uses the unofficial ngrok dependency from
npm
. This dependency has a few issues:ngrok
CLI tool. So, you must download and install thengrok
CLI tool as an external dependency and this complicates setupnpm
dependency is maintained by a third party and is not officially supported by ngrok. So, ngrok could make some unexpected change and the integration might break suddenly.ngrok
CLI tool is not FOSS and is closed source. For some projects, this could create licensing issues if the maintainers are not ok with that for whatever reason.I propose replacing
ngrok
with tunnelmole. Tunnelmole is open source and the runtime is implemented in pure JavaScript.You only need to add it as an
npm
dependency and you don't need to install anything separately.npm
automatically manages all dependencies, you don't need to manually match up versions of anything.As the runtime code is pure JavaScript, it is automatically cross platform and will run on all operating systems and CPU architectures that NodeJS can run on.
To compare usage:
ngrok
First, download and install
ngrok
from ngrok.com, or this won't work. Also, ensure your version of thengrok
CLI tool is compatible with the version of thengrok
NPM dependency you are using.tunnelmole
This works right away, without installing anything separately. It should be fairly straightforward to refactor your code to use
tunnelmole
.Let me know if you'd like to move ahead and i'll create a PR with the changes.
The text was updated successfully, but these errors were encountered: