Apps with an API on another port
A front end on one port that calls an API on another: name both, separated by a space. The link opens the first app; the others are reachable from it as they are on your machine, under the same link and the same tester sign-in.
$ purlview share 5173 8000 ✓ Sharing localhost:5173 + localhost:8000 https://k7m2p4qx.purlview.link/?token=Zk3vQ9x7Lm2Np5RtYw8AbC
Name up to 10 apps. purlview list shows the first app with +1 for each further one.
What is rewritten
In the text your apps send (HTML, JavaScript, CSS, JSON), an exact address of a listed app is translated for the tester: http://localhost:8000/api becomes an address under the share, and a ws:// address the same. An address inlined at build time, as from VITE_API_URL, is plain text and is translated. Cookies the API sets and WebSockets to it work as they do on your machine. Headers are translated too, so the API sees requests as it does on your machine.
What is not
A bare host:port with no scheme, and any port you did not name. A port you did not name stays unreachable through the share even when a response mentions it; the tester's browser resolves it against their own machine, as without Purlview.
--no-rewrite
--no-rewrite turns the translation of response bodies off for a share whose content it harms: Leave the app's own addresses in response bodies unchanged. Headers are still translated, and every named app stays reachable.
When one app stops answering, the terminal names it, and says when it is back:
2:51 PM ! localhost:8000 stopped responding — visitors see a waiting page 2:51 PM ✓ localhost:8000 is responding again
Limits
- HTTP and HTTPS apps.
- Links last up to an hour.
- Service workers and addresses built at runtime are not supported.
- Vite and Next.js work with their default config. webpack-dev-server's default client opens its hot-reload socket at the development server's own port, which no share serves; pages load, but changes do not reach the tester.
- A further app is expected to be an API. A second app that serves pages whose links start with
/points them at the first app.