replicate / zoo

🦓 Zoo — Image Playground
https://zoo.replicate.dev
Apache License 2.0
321 stars 108 forks source link

Replace Ngrok with Tunnelmole #47

Open robbie-cahill opened 1 year ago

robbie-cahill commented 1 year ago

I've noticed you have ngrok as your suggested tunneling solution in your docs. However, it has a few issues

So, i'd like to update your docs to use tunnelmole instead. It has the following advantages

What I can do is add tunnelmole as a dev npm dependency (it will then be available at node_modules/.bin/tunnelmole), then update your docs to use that instead of ngrok. I'll also update the relevant environment variables and references to them. Once that is done there won't be any need to install anything separately.

Here's the difference in terms of set up and usage

ngrok First, download and install ngrok from ngrok.com

ngrok http 3000

tunnelmole

npx tunnelmole 3000

or as code:

import { tunnelmole } from 'tunnelmole';
const url = await tunnelmole({
    port: 3000
});
// url = https://idsq6j-ip-157-211-195-169.tunnelmole.com

Let me know if you'd like me to create a PR with these changes.