{"id":"ro-bura/local-roblox-relay","name":"local-roblox-relay","scope":"ro-bura","platform":"roblox","description":"Read public *.roblox.com web APIs from Roblox Studio plugins via a local relay or a proxy site. Unofficial, not affiliated with Roblox Corporation.","version":"1.0.0","latest":"1.0.0","versions":["1.0.0"],"license":"CC-BY-SA-4.0","licenseRating":"caution","licenseCaveats":["Share-alike: adaptations of the licensed material must be shared under the same license, and attribution is required. Written for creative works rather than code — its obligations in a bundled game are legally untested.","License identified from the packaged LICENSE file; the manifest's declared license (\"CC0-1.0\") is not a recognized identifier."],"licenseVerified":false,"dependencies":{},"integrity":"1878c570508cab0b9fff9a6d91e27d7455fd267f49a5fa21c462edf7892abbed","likes":0,"downloads":0,"install":"forest install ro-bura/local-roblox-relay","url":"https://forest.dev/p/roblox/ro-bura/local-roblox-relay","files":"https://api.forest.dev/ai/package/roblox/ro-bura/local-roblox-relay/files","readme":"# LocalRobloxRelay\n\nLets Roblox Studio plugins read public `*.roblox.com` web APIs.\n\n> **Not affiliated with Roblox.** LocalRobloxRelay is an independent, unofficial\n> project. It is not made, endorsed, sponsored or supported by Roblox Corporation.\n> \"Roblox\" and \"Roblox Studio\" are trademarks of Roblox Corporation, used here only\n> to describe what this tool works with.\n\nStudio's `HttpService` refuses any `roblox.com` URL, but `localhost` is allowed.\nLocalRobloxRelay is a tiny local program that listens on `127.0.0.1` and forwards\nread-only requests to `*.roblox.com`. Plugins use it through one ModuleScript,\nwhich falls back to a proxy website (`roproxy.com` by default) when the relay\nisn't running.\n\n## Run\n\n| | |\n|---|---|\n| Windows | double-click `relay/start-relay.cmd` (uses built-in PowerShell, nothing to install) |\n| Any OS with Node.js | `node relay/relay.js` |\n| Custom port | `relay/start-relay.cmd -Port 23000` / `node relay/relay.js 23000` |\n\nIt takes the first free port in **22600–22609** and prints it.\n\n## Get the module\n\nPick one:\n\n- **Wally** (Rojo projects): add to your `wally.toml`\n  ```toml\n  [dependencies]\n  LocalRobloxRelay = \"ro-bura/local-roblox-relay@1.0.0\"\n  ```\n  then `wally install` and `require(Packages.LocalRobloxRelay)`.\n- **Model file**: download `LocalRobloxRelay.rbxm` from the GitHub releases and drop it\n  into your plugin.\n- **Copy the source**: `src/init.luau` is the whole module (one file, no dependencies).\n\nBuild the model yourself with `rojo build -o build/LocalRobloxRelay.rbxm`.\n\n## Repository layout\n\n```\nsrc/init.luau          the ModuleScript (what Wally and the .rbxm ship)\nrelay/relay.ps1        the relay, Windows PowerShell\nrelay/relay.js         the relay, Node.js\nrelay/start-relay.cmd  double-click launcher for relay.ps1\nwally.toml             Wally package (relay/ is excluded)\ndefault.project.json   Rojo project for the module\n```\n\n## Use it in a plugin\n\nOnce the module is in your plugin:\n\n```lua\nlocal HttpService = game:GetService(\"HttpService\")\nlocal Relay = require(script.LocalRobloxRelay)\n\ntask.spawn(Relay.findPort) -- optional: look for the relay early, in the background\n\nlocal ok, body = pcall(Relay.get, \"https://catalog.roblox.com/v2/search/items/details?Keyword=hat&Limit=30\")\nif ok then\n\tlocal data = HttpService:JSONDecode(body)\n\tprint(#data.data, \"items via\", Relay.lastVia) -- \"relay\" or \"proxy\"\nelse\n\twarn(body) -- e.g. \"HTTP 429 (Too Many Requests)\"\nend\n```\n\n| | |\n|---|---|\n| `Relay.get(url)` | GET a `roblox.com` URL. Returns the body, or throws (wrap in `pcall`) |\n| `Relay.mode` | `\"auto\"` (relay, then proxy site) · `\"relay\"` · `\"proxy\"` · `\"off\"` (`\"roproxy\"` = old name for `\"proxy\"`) |\n| `Relay.manualPort` | try this port first (relay started with a custom port) |\n| `Relay.proxyTemplate` | proxy website as a URL template (see below) |\n| `Relay.findPort(force)` | the relay's port or `nil`; checks all ports at once (~2 s when nothing runs) |\n| `Relay.lastVia` | `\"relay\"` or `\"proxy\"` for the last successful request |\n| `Relay.proxyUrl(host, path, template?)` | the proxy URL a request would use |\n| `Relay.isValidTemplate(template)` | `true` if the template is usable |\n\nRequests never wait for the port scan: until a relay is found they go to the proxy\nsite, and the scan runs in the background (again every 60 s, or after the relay\ncloses). The first request to `127.0.0.1` makes Studio ask once whether the plugin\nmay use it.\n\n### Proxy website template\n\nWhen the relay isn't running (or in `\"proxy\"` mode) requests go to a proxy website.\nIts address is a template with:\n\n- `{sub}` — the subdomain, e.g. `catalog`\n- `{host}` — the full host, e.g. `catalog.roblox.com`\n- `{path}` — path and query, e.g. `/v2/search/items/details?Keyword=hat`\n\n```lua\nRelay.proxyTemplate = \"https://{sub}.roproxy.com{path}\"           -- default (roproxy style)\nRelay.proxyTemplate = \"https://myproxy.example.com/{host}{path}\"  -- path style\n```\n\nA template must start with `http://` or `https://` and contain `{path}`. Requests\ncarry no cookies, but a proxy website sees what you look up: use one you trust.\n\n## Address format\n\n```\nhttp://127.0.0.1:22600/<host>/<path>?<query>\nhttp://127.0.0.1:22600/catalog.roblox.com/v2/search/items/details?Keyword=hat\nhttp://127.0.0.1:22600/health   ->  {\"name\":\"local-roblox-relay\",\"version\":1,\"port\":22600}\n```\n\n## Safety\n\n- Listens on `127.0.0.1` only: other devices can't reach it.\n- Forwards **GET** only, to `*.roblox.com` hosts only (anything else: 403 / 405).\n- Never sends cookies or credentials, so it only sees what a logged-out browser\n  sees and can't act on any account.\n- Successful responses are cached for 30 s, so several plugins asking the same\n  thing don't add up against Roblox's rate limits.\n\n## Why port 22600\n\nPicked at random (not hand-chosen) inside the registered-port range below\nWindows' dynamic ports, then checked against Windows' reserved port ranges\n(`netsh int ipv4 show excludedportrange protocol=tcp`) and ports in use. Ten\nports are kept as a fallback range so a clash just moves to the next one.\n\n## License\n\n[CC0 1.0](LICENSE): public domain. Use, copy, change and ship it in your own\nplugins however you like, no credit needed.\n\n---\n\n### 한국어 요약\n\n**Roblox와 관계없는 비공식 프로젝트입니다.** Roblox Corporation이 만들거나 승인·후원·지원하지\n않으며, \"Roblox\"·\"Roblox Studio\"는 Roblox Corporation의 상표로, 이 도구가 무엇과 함께\n쓰이는지 설명하기 위해서만 언급합니다.\n\nRoblox Studio의 `HttpService`는 `roblox.com` 주소를 막기 때문에, 내 PC(`127.0.0.1`)에\n작은 중계를 띄워서 대신 요청해 주는 프로그램이에요. 윈도우는 `relay/start-relay.cmd`를 더블클릭하면 되고(설치 필요 없음), 플러그인에는 모듈 하나만\n넣으면 됩니다 (Wally, `.rbxm`, 또는 `src/init.luau` 복사). 중계가 꺼져 있으면 프록시 사이트(기본 `roproxy.com`, `Relay.proxyTemplate`으로 변경\n가능)를 씁니다. 조회(GET)만, roblox.com만, 쿠키 없이 전달하므로 계정에는 손댈 수 없습니다.\n라이선스는 CC0(퍼블릭 도메인)이라 출처 표시 없이 자유롭게 쓸 수 있습니다.\n","readmeTruncated":false}