Public
Read-only proxy that mirrors v0.app pages through this val
mirrorproxyweb
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

v0-mirror

A read-only rewriting proxy in front of https://v0.app. It fetches an upstream page, rewrites every URL back to its own origin, and re-serves it — so the page and its third-party sub-resources all load through this val.

Open the mirror · Status page

Whose IP the sites see

This is the point of a proxy: your browser never talks to v0.app, or to Google Fonts, or to the image CDN. Every outbound request is made by this val, from the Val Town runtime's address. The status page shows the current egress address so you can see it for yourself.

The mirror does not rotate that address. Val Town vals share egress and expose no API to pin or choose it — and rotating IPs to get around a site's rate limits or access controls isn't something this is built for.

How it works

Rendering mermaid diagram...

Two namespaces:

  • Everything except /__* is proxied from v0.app.
  • /_ext/<host>/… proxies an allowlisted third-party host. Subresources that would otherwise be fetched from the viewer's own IP are rewritten into this form.

/__* is reserved for the val itself, so it can never collide with an upstream route.

The third-party allowlist

Derived from the actual markup with scripts/scan.ts — only hosts the browser loads are included. Hosts that merely appear in the page are deliberately left out, because the browser never requests them:

HostWhat it servesProxied
fonts.gstatic.comfont files referenced from the CSS✅
fonts.googleapis.comfont stylesheets✅
vercel.comthe page's <img src> avatars✅
v0sdk.comspeed-insights beacon✅
*.public.blob.vercel-storage.comtemplate + screenshot images✅
www.w3.org, schema.orgXML namespace / JSON-LD context URIs❌ never requested
github.com, x.com, linkedin.com, community.vercel.comnavigation links❌
*.vercel.apptemplate demo URLs in JSON payloads❌
assets.vercel.coma logo URL inside structured data❌

This is an allowlist rather than "any host" on purpose: the proxy only fetches origins the upstream page needs, so it can't be used as a general-purpose open proxy. Everything else gets a 403.

What gets rewritten

LayerChange
HTMLhttps://v0.app → proxy origin, allowlisted hosts → /_ext/<host>/, plus removal of CSP <meta> tags, integrity= attributes, and <base href>
JS / CSS / JSON / RSCsame substitutions, including JSON-escaped https:\/\/v0.app
Location headerupstream-relative redirects re-pointed at the proxy; allowlisted hosts get their /_ext/ form; off-host redirects passed through
Link headerpreload URLs re-pointed at the proxy

Headers that would describe the wrong origin or the wrong body are stripped: content-encoding, content-length, CSP, HSTS, x-frame-options, CORS, etag/last-modified, and set-cookie.

What it deliberately does not do

  • No outbound IP rotation. Plain proxy from the platform's address.
  • No sessions. Browser cookies are not forwarded upstream and upstream Set-Cookie is dropped. Nothing here is authenticated against v0.app.
  • No write-back to upstream. Methods are forwarded, but with no session there is nothing meaningful to write.

Expected to break

Rewriting proxies are a blunt instrument against a modern React app:

  • Login / account pages — there is no session to carry.
  • Client-side navigation — the App Router's client transitions and streaming RSC responses don't survive URL rewriting intact. Full page loads are the reliable path.
  • Bot protection — if upstream serves a challenge to this egress, the mirror shows the challenge page rather than the site.

The initial server-rendered page, its static assets, and its fonts are the parts that work.

Files

FileRole
index.tsxHono app; /__info status page, everything else proxied
proxy.tsresolve target, fetch, filter headers, pick text vs. binary path
rewrite.tsURL rewriting, third-party allowlist
scripts/scan.tsre-derive the allowlist from upstream markup
scripts/verify.tsend-to-end checks; run after changing the rewriting
# from the val editor scripts/verify.ts

Notes

This mirrors a third-party site that it has no relationship with. It is fine for looking at how the page renders; it is not a way around v0.app's access controls, rate limits, or login, and it isn't built to be one.