{"repo":"ariefsn/sveltekit-proxy","free":true,"listed":false,"github":"https://github.com/ariefsn/sveltekit-proxy","clone":"git clone https://github.com/ariefsn/sveltekit-proxy.git","description":"Proxy helper for SvelteKit, use inside the server hooks.","language":"TypeScript","stars":15,"topics":["proxy","svelte","sveltekit","svelte-proxy","sveltekit-proxy"],"license":"MIT","category":"networking-infra","readme_excerpt":"SvelteKit Proxy A lightweight proxy utility for SvelteKit applications. Since the built-in Vite server proxy only works in development mode , this package provides a simple way to proxy requests in production using SvelteKit's hooks.server.ts . How to 1. Install 2. Import 3. Use it 4. Options Name Description Required Default --- --- --- --- target Target proxy URL Yes origin Set to avoid the abused proxy, only permitted if the origin is valid. Default undefined which will allow from all No undefined rewrite Rewrite the path No undefined fetch Custom fetch function No undefined onRequest Callback to modify the outgoing Request. Return a Request to forward the modified version, or return nothing to forward the original. Async-friendly. No undefined onResponse Callback after receiving the upstream response. Return a Response to send a modified version to the client, or return nothing to forward the original. Async-friendly. No undefined onError Callback when fetch fails or throws. Return a Response to recover with a fallback, return an Error to replace the thrown error, or return nothing to rethrow the original. Async-friendly. No undefined 🪶 Notes - The function returns a valid SvelteKit Handle — you can compose it inside your main handle chain. - Request objects are immutable; to modify headers or body, return a new Request instance inside onRequest. Development Changelog See CHANGELOG.md on GitHub. 🧱 License MIT © 2025–2026 — Crafted for SvelteKit developers. See LICENSE.","default_branch":null,"files":null,"tree":[],"storefront":"/r/ariefsn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ariefsn/sveltekit-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}