A secure & fast HTTPS URL for localhost using your browser as a reverse proxy.
Tabserve is a web app that uses a single Cloudflare worker combined with browser based web workers to create a reverse proxy from the internet to your localhost.
This gives you an HTTPS URL on your-domain.com
(such as https://anything.your-domain.com
) that forwards traffic to any localhost
address, such as http://localhost:1234
.
You can instantly create any number of subdomains as Cloudflare provisions a TLS wildcard certificate - no waiting for a DNS propagation to take effect.
This lets you share your local web server with the world, receive webhooks, test from different devices, and use browser JS API’s that are HTTPS-only. You can also run small to medium production services from any machine with a web browser (although Tabserve is currently alpha - please submit any issues you encounter).
Your local web service is protected and optimized by Cloudflares Web Application Firewall (WAP), and uses the latest HTTP protocols and optimizations (HTTP-3). Your CF worker will be created in the CF location nearest to you in one of 300 global locations which reduces latency and speeds up instant reloading during development.
Each subdomain currently maps to a single Durable Object. This gives you a throughput of between 100-500 RPS (informally tested), and isolates each subdomain from each other for security and fault/load isolation. The WebSocket Hibernation API is used, so you only get charged for the time you are forwarding requests, and should generally be less than $5/month (pricing).
Current reverse proxy tools require you to install a CLI on your machine, which gives it access to your entire machine and can be difficult to observe and configure.
Tabserve “installs” by just loading the web page (less than 300ms), and is isolated using the Chrome browser. V8 and other JS engines have some of the most robust and well tested sandboxing. Cloudflare workers also use V8, which means both the server and client of the reverse proxy have strong sandboxes. V8 is also a very fast runtime.
Note: You must upload a single small Cloudflare worker to your Cloudflare account and have a domain added to Cloudflare DNS to use Tabserve.
a.your-domain.com
, b.your-domain.com
.
fetch
API - these show up in the network tab.localhost:1234 (Tabserve forward_to) -> localhost:5678 (your actual dev web server)
xyz.your-domain.com
in the Tabserve UI, and then switch your Cloudflare DNS to a real production web server when ready.Twitter: @_enzo_dev