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.
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.
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.
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:
| Host | What it serves | Proxied |
|---|---|---|
fonts.gstatic.com | font files referenced from the CSS | ✅ |
fonts.googleapis.com | font stylesheets | ✅ |
vercel.com | the page's <img src> avatars | ✅ |
v0sdk.com | speed-insights beacon | ✅ |
*.public.blob.vercel-storage.com | template + screenshot images | ✅ |
www.w3.org, schema.org | XML namespace / JSON-LD context URIs | ❌ never requested |
github.com, x.com, linkedin.com, community.vercel.com | navigation links | ❌ |
*.vercel.app | template demo URLs in JSON payloads | ❌ |
assets.vercel.com | a 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.
| Layer | Change |
|---|---|
| HTML | https://v0.app → proxy origin, allowlisted hosts → /_ext/<host>/, plus removal of CSP <meta> tags, integrity= attributes, and <base href> |
| JS / CSS / JSON / RSC | same substitutions, including JSON-escaped https:\/\/v0.app |
Location header | upstream-relative redirects re-pointed at the proxy; allowlisted hosts get their /_ext/ form; off-host redirects passed through |
Link header | preload 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.
- No outbound IP rotation. Plain proxy from the platform's address.
- No sessions. Browser cookies are not forwarded upstream and upstream
Set-Cookieis 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.
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.
| File | Role |
|---|---|
index.tsx | Hono app; /__info status page, everything else proxied |
proxy.ts | resolve target, fetch, filter headers, pick text vs. binary path |
rewrite.ts | URL rewriting, third-party allowlist |
scripts/scan.ts | re-derive the allowlist from upstream markup |
scripts/verify.ts | end-to-end checks; run after changing the rewriting |
# from the val editor scripts/verify.ts
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.