Share localhost
Share localhost with a teammate without deploying
taiku shares the app running on your machine with the people in your session. Start taiku in the project and it publishes port 3000 by default, or whichever ports you pass to --tunnel. Anyone on your session link can then open the app in a preview tile next to the terminal that runs it, or in its own browser tab, and it shows your latest code when they reload. Nothing is deployed, and the preview only opens from inside the session, so there's no public URL for anyone else to find. It's free.
How it works
-
Run your dev server in a taiku terminal
Start
taikuin the project and run the server the way you normally do, for examplenpm run dev. -
Publish its port
taikupublishes port 3000 unless you say otherwise. For another port, start withtaiku --tunnel 5173, or list several, liketaiku --tunnel 3000,8080. You can add and remove ports later from the Tunnels panel. -
Send the session link
Your teammate opens it in a browser, picks the port under New, then Tunnel, and gets your app in a tile beside the terminal. Everyone in the session sees the same previews.
-
Edit and reload
Links, assets and client-side routing work as they would on a hosted app. After a change, Refresh in the tile's titlebar picks it up, and Hard refresh reloads everything when a cache is showing something stale.
What you see
When the session starts, taiku lists the published ports next to the session links. In the browser, a preview tile has back, forward, reload and open-in-tab buttons and sits in the layout like any terminal, so the app and its server log can be side by side. Each person arranges their own tiles, so one of you can keep the preview large while the other watches the log.
How it compares
- ngrok
- Gives your local app a publicly accessible HTTPS URL. ngrok's docs describe sharing a local dev server with anyone on the internet, and you add OAuth, basic auth or IP restrictions through its Traffic Policy. ngrok docs ↗
- Cloudflare quick tunnels
cloudflared tunnel --url http://localhost:8080gives you a temporary trycloudflare.com URL with no Cloudflare account. Anyone with the URL can open it unless you add--allowed-mail, which sends visitors a one-time PIN. Cloudflare says quick tunnels are for testing and development, with up to 200 in-flight requests each. Cloudflare quick tunnels docs ↗- VS Code Live Share
- Shares a server with the guests in a Live Share session, who reach it at localhost, on the same port, on their own computers. VS Code Live Share docs ↗
A taiku preview isn't on the public internet. It opens for the people in your session, next to the terminal running it, so a teammate can watch the server log while they click through the app.
Questions
Is this an ngrok alternative?
For showing a teammate what you're building, yes. For a URL that anyone, or a webhook from another service, can reach, use ngrok or a Cloudflare tunnel, because a taiku preview only opens from inside the session.
Can strangers open my dev server?
Not through taiku. The preview only opens from inside your session, which takes your session link, and that link is the credential, so send it only to the people you want in.
Can someone see the app without typing in my terminal?
Yes. Start with taiku --enable-readers and send the reader link. Readers can watch the session and open its previews, but they can't type into any terminal.
Who can publish a port?
In the default managed mode, you and anyone you've made an admin. A port someone else asks for waits until you approve it. Starting with taiku --open-tunnel approves every request, which suits a demo or a workshop.
Does it update when I change the code?
On the next reload. Refresh is right for most changes, and Hard refresh reloads everything after you change static assets or build output.
Does my teammate need to install anything?
No. They open your session link in a browser. Previews work in any browser with modern web support, and if one can't run a preview, taiku says so instead of showing a broken page.