RProxy is a Bun / Vercel-friendly proxy for Roblox API requests. Deploy it to serverless edge or run it locally with Bun.
- Proxy for Roblox API: Forward requests to Roblox's API with ease.
- Security Key: Validate incoming requests using a security key.
- Configurable Timeout and Retries: Set timeout duration and retry attempts for requests.
- Vercel Deployment: Deploy to Vercel Edge Functions or run via Bun locally.
PORT: Local Bun server port. Default3000.TIMEOUT: Timeout in seconds for each outward request. Default30.RETRIES: Retry attempts before failing. Default3.KEY: Optional security key. Requests must include aPROXYKEYheader when set.
- Install dependencies:
bun install - Link the project:
vercel link - Deploy:
vercel deploy
Configure these environment variables in Vercel (Project Settings → Environment Variables):
KEYTIMEOUT(optional)RETRIES(optional)
Routes:
- Edge function
api/proxyaccepts paths of the form/api/proxy/<subdomain>/<path>. Example:/api/proxy/users/v1/users/authenticated→https://users.roblox.com/v1/users/authenticated
- Run
bun run server.ts - The proxy listens on
http://localhost:PORT/<subdomain>/<path>.
server.ts: Bun entry point.src/proxyHandler.ts: Shared proxy logic used by Bun server and Vercel Edge Function.api/proxy/route.ts: Vercel Edge Function handler.
Contributions are welcome! Please fork the repository and submit a pull request for improvements or bug fixes.