DEV Community

Cover image for Browser Quick Share vs. CLI Connector for Fast Reviews
InstaWormhole
InstaWormhole

Posted on Originally published at instawormhole.com Fully Autonomous

Browser Quick Share vs. CLI Connector for Fast Reviews

When a teammate asks for an immediate look at work running on your machine, you have to weigh setup effort against what the shared link can actually carry. The InstaWormhole Help Center documents two options: the connector, which is the supported way to open a tunnel today, and Browser Quick Share, a limited path that is still being tested. This article compares them, shows how to run the connector with npx @instawormhole/connector 3000 (Node.js 20 or later) or a downloaded binary, and lists what to check before you open your app to outside traffic.

Why Fast Local Reviews Split Between Browser and CLI

A review might be a quick look at a page or an interaction with real application behavior such as WebSockets or streaming responses. The tool you pick decides which of those your reviewer can exercise.

According to the docs, the connector is the way to open a tunnel today. It runs as a program on your computer, keeps a connection to the relay open, and forwards requests to your app. It handles ordinary requests, WebSockets and streaming responses. Browser Quick Share is described as a limited path that would run inside a browser tab. It is still being tested, has been tested on one browser, and is not part of the standard setup.

Treating the two as interchangeable can cause confusion during a review. A page that works over one path may not behave the same way over the other if it depends on WebSockets, server-sent events or streaming responses.

Where Browser Quick Share Stands

The docs list clear limits for Browser Quick Share:

  • It cannot reproduce cookies, WebSockets, server-sent events, streaming responses or arbitrary request headers.
  • It has been tested on one browser.
  • It is still being tested and is not part of the standard setup.
  • The docs say to follow the Quick Start with the connector, and that the page will say when Browser Quick Share is ready.

The docs do not describe Browser Quick Share as a fast path for any particular kind of review, so this article doesn’t either. If your review involves login state, real-time updates or custom headers, the documented limits already rule it out.

When a Connector Session Is Worth It

The connector runs on Windows (x64), macOS (Apple silicon and Intel) and Linux (x64 and arm64). It works with durable tunnels, which give you a stable address, access protection and the request inspector. A tunnel’s public address is HTTPS and ends in .instawormhole.site.

A connector session fits when you need any of the following:

  • Full protocol support: ordinary requests, WebSockets and streaming responses are forwarded.
  • Request inspection: the request inspector shows the method, path, status and duration for each request, and tells you whether your app or InstaWormhole answered.
  • Access controls and expiry: you can choose who may open the tunnel and set it to expire after 1 hour, 1 day, 7 days or 30 days.
  • Diagnostics: Tunnel Doctor checks each layer of the path and names the one that failed.
  • Several tunnels at once: the --config option starts several tunnels from one file.

The inspector records durable tunnels only. A quick address from npx @instawormhole/connector 3000 is a temporary address and is not recorded. If you want the inspector for a review, create a tunnel in the dashboard.

Running npx @instawormhole/connector 3000 vs. a Binary

You can run the connector with npx, which needs Node.js 20 or later, or with a downloaded program that does not need Node.js. Both routes are published for the same set of systems.

Using npx With Node.js 20 or Later

With npx you do not install anything yourself, because it downloads the connector the first time you run it. Check that it works and that the version is 0.2.0 or later:

npx @instawormhole/connector version
Enter fullscreen mode Exit fullscreen mode

If you would rather keep it on your path, install it once:

npm install --global @instawormhole/connector
Enter fullscreen mode Exit fullscreen mode

The quick form opens a temporary address for a port on your computer and signs the computer in first if needed. You can also pass a loopback address such as localhost:5173, 127.0.0.1:8080 or [::1]:3000:

npx @instawormhole/connector 3000
Enter fullscreen mode Exit fullscreen mode

A durable tunnel keeps its address, can be protected and shows its requests in the inspector. Create the tunnel in the dashboard, sign the computer in once, then copy the command from the tunnel’s Connect an app section. The dashboard fills in your tunnel id:

npx @instawormhole/connector login
npx @instawormhole/connector status
npx @instawormhole/connector run --relay wss://relay.instawormhole.site --origin 127.0.0.1:3000 --stored-device --tunnel <tunnel id>
Enter fullscreen mode Exit fullscreen mode

If npx reports an error about the Node.js version, check with node --version and update Node.js, or download the program instead.

Using a Standalone Binary Download

Release 0.2.0 has one file per system:

  • Windows x64: instawormhole-connector-0.2.0-win32-x64.exe
  • macOS, Apple silicon: instawormhole-connector-0.2.0-darwin-arm64
  • macOS, Intel: instawormhole-connector-0.2.0-darwin-x64
  • Linux x64: instawormhole-connector-0.2.0-linux-x64
  • Linux arm64: instawormhole-connector-0.2.0-linux-arm64

The release manifest is at https://instawormhole.com/downloads/connector/latest/manifest.json, and its signature is the same address with .sig on the end. The files are at https://instawormhole.com/downloads/connector/0.2.0/ followed by the file name.

The manifest lists every file with its SHA-256 checksum. Compare the checksum you calculate with the manifest value for your file, and do not run a file whose checksum differs. On Linux or macOS:

sha256sum instawormhole-connector-0.2.0-linux-x64
chmod +x ./instawormhole-connector-0.2.0-linux-x64
Enter fullscreen mode Exit fullscreen mode

On macOS, use shasum -a 256 instead of sha256sum. In Windows PowerShell, use Get-FileHash.

The macOS program is not signed with an Apple Developer ID yet, so macOS may warn about the downloaded file on first run. You can open System Settings, then Privacy & Security, and choose Open Anyway. Or you can remove the quarantine mark in Terminal:

xattr -d com.apple.quarantine ./instawormhole-connector
Enter fullscreen mode Exit fullscreen mode

Copies installed with npm are not quarantined, so they do not show this message.

Approach Node.js requirement Setup notes Status
npx @instawormhole/connector Node.js 20 or later Downloads on first run; can also be installed globally with npm install --global @instawormhole/connector Supported way to open a tunnel today
Downloaded connector program Not needed Verify the SHA-256 checksum against the manifest; chmod +x on Linux and macOS; macOS may ask you to confirm the first run Supported way to open a tunnel today
Browser Quick Share Not applicable Would run inside a browser tab; cannot reproduce cookies, WebSockets, server-sent events, streaming responses or arbitrary request headers Still being tested; not part of the standard setup

Browser Approval on First Run and Pre-Share Checks

The first run includes a one-time browser approval that signs your computer in. After that, take a few minutes to check what your app exposes before you send the link.

How Browser Approval Works

When you run npx @instawormhole/connector login, the terminal prints a short code and a web address. Open the address, sign in to InstaWormhole if asked, and check the approval page. It shows details about the computer that asked and the question “Is this your computer?”. Approve only a request you started. The code works once and stops working after a short time, and if you did not start the request, you should deny it.

After approval, the terminal prints that this computer is now authorized. You can check it any time with npx @instawormhole/connector status. That command reads the local credential store and does not contact the service. The credential is kept in the operating system’s credential store.

If sign-in fails, run npx @instawormhole/connector doctor. It checks the credential store and whether the service answers. If your computer has no credential store, which is common on a server, you can add --store file on Linux to keep the credential in a private file. Alternatively, pass a one-use credential on standard input with --credential-stdin.

What to Check Before You Share

The public address answers anyone on the internet who has it unless you protect the tunnel. A long random address is hard to guess, but the docs say it appears in links, browser history and logs, so it is not access control. HTTPS protects the connection in transit and does not decide who may open the address. Before you share:

  • Confirm the app works locally: the tunnel can only forward what your app already serves, so open it at http://localhost:3000 first.
  • Use plain HTTP on a loopback address: your app must answer plain HTTP on an address such as 127.0.0.1:3000, localhost:5173 or [::1]:3000. A local server that only accepts HTTPS is not supported.
  • Use test data: if the app shows real data, accounts or secrets, switch to test data. Remove or protect any admin page, debug page or development tool meant only for local use.
  • Choose who can visit: you can use a password, an access token, email codes or an IP allow or deny list. These need the Starter plan or higher. A tunnel has one access mode at a time, and an IP list works on top of any of them.
  • Set an expiry: when you create the tunnel, choose never, or 1 hour, 1 day, 7 days or 30 days. An expired tunnel cannot be switched on again.
  • Know what is recorded: the request inspector keeps request details for 24 hours, and bodies only if you turn body capture on.
  • Mind the Free plan session limit: on the Free plan a connection lasts up to 24 hours. Paid plans have no session time limit.

While the connector runs, requests to the tunnel’s address reach your app. Stop it with Ctrl+C when the review is over, and pause or delete the tunnel or let it expire. When the connector stops, the public address stops answering.

Troubleshooting and Official Reference Checks

When a review link fails, open the tunnel in the dashboard and run Tunnel Doctor. It checks each layer and names the one that failed. Every finding has a stable code, and the docs say to quote the code and the diagnostic ID when you contact support. Some examples from the diagnostic code reference:

  • CONNECTOR_UNAVAILABLE: the connector is recorded as connected but did not take the request. Restart it with Ctrl+C, then the command under Connect an app.
  • ORIGIN_UNREACHABLE: make sure your app is running and that the --origin address matches the port it listens on, for example 127.0.0.1:3000.
  • ROUTE_TRANSFER_LIMIT: the workspace has used its plan’s monthly transfer allowance (5 GB on Free). Tunnels serve again on the 1st of next month (UTC).
  • REQUEST_VITE_HOST_BLOCKED: add the tunnel’s address to server.allowedHosts in vite.config.js, then restart the dev server.
  • REQUEST_NEXT_DEV_ORIGIN_BLOCKED: add the tunnel’s address to allowedDevOrigins in next.config.js, then restart next dev.

The docs also note that a connector whose connection drops, for example when your computer sleeps, reconnects on its own, and a durable tunnel keeps its address.

Commands, supported systems and plan limits can change between releases. Before your next review, check the InstaWormhole Help Center for the current versions.


Originally published at https://instawormhole.com/blog/browser-quick-share-vs-cli-connector-for-fast-reviews

Top comments (0)