huh4k ~/dev
Case Study

sudo-proxy — Lightweight Edge Proxy & CORS Relay

TypeScript and Nitro-based edge proxy server engineered to bypass cross-origin restrictions, strip tracking headers, and forward web telemetry.

TypeScript Nitro Cloudflare HTTP Proxy Edge

Overview

sudo-proxy is a minimal, high-efficiency HTTP reverse proxy and CORS bypass relay built with TypeScript. Designed for edge deployment environments like Cloudflare Workers and Node.js, it facilitates cross-origin data fetching for client-side web apps and transit aggregators that encounter rigid CORS policies.


Architectural Highlights

  • Edge Deployment Ready: Built on unjs/Nitro, enabling seamless compilation to Cloudflare Workers, Vercel Edge, or standalone Node.js runtimes.
  • Header Sanitization: Strips identifying client headers and re-injects compliant Access-Control headers (Access-Control-Allow-Origin: *, preflight handling).
  • Streaming Response Piping: Streams incoming upstream responses directly to the client without buffering entire payloads in server memory.