jsproxy is a web traffic proxy designed to route requests through a ServiceWorker to bypass network restrictions while minimizing server-side processing overhead. It focuses on browser API virtualization, rewriting URL-related functions and properties so that proxied pages behave as if they are running on their original domains.
The project utilizes a decoupled architecture that separates the static user interface from the data forwarding backend, allowing for deployment across multiple providers. It includes weight-based load balancing to distribute traffic across multiple proxy nodes and implements CORS-aware routing to connect directly to domains that permit all origins.
The system covers security and performance through the blocking of reserved internal IP ranges to prevent server-side request forgery and the redirection of large static assets to local CDNs. It further ensures page rendering consistency by intercepting DOM element creation to rewrite absolute URLs and synchronizing session cookies with local storage.