Start typing to search packages!
local-roblox-relay
By @ro-bura
Roblox
Mirrored from WallyLocalRobloxRelay
Lets Roblox Studio plugins read public *.roblox.com web APIs.
Not affiliated with Roblox. LocalRobloxRelay is an independent, unofficial project. It is not made, endorsed, sponsored or supported by Roblox Corporation. "Roblox" and "Roblox Studio" are trademarks of Roblox Corporation, used here only to describe what this tool works with.
Studio's HttpService refuses any roblox.com URL, but localhost is allowed.
LocalRobloxRelay is a tiny local program that listens on 127.0.0.1 and forwards
read-only requests to *.roblox.com. Plugins use it through one ModuleScript,
which falls back to a proxy website (roproxy.com by default) when the relay
isn't running.
Run
| Windows | double-click relay/start-relay.cmd (uses built-in PowerShell, nothing to install) |
| Any OS with Node.js | node relay/relay.js |
| Custom port | relay/start-relay.cmd -Port 23000 / node relay/relay.js 23000 |
It takes the first free port in 22600–22609 and prints it.
Get the module
Pick one:
- Wally (Rojo projects): add to your
wally.tomlthen[dependencies] LocalRobloxRelay = "ro-bura/local-roblox-relay@1.0.0"wally installandrequire(Packages.LocalRobloxRelay). - Model file: download
LocalRobloxRelay.rbxmfrom the GitHub releases and drop it into your plugin. - Copy the source:
src/init.luauis the whole module (one file, no dependencies).
Build the model yourself with rojo build -o build/LocalRobloxRelay.rbxm.
Repository layout
src/init.luau the ModuleScript (what Wally and the .rbxm ship)
relay/relay.ps1 the relay, Windows PowerShell
relay/relay.js the relay, Node.js
relay/start-relay.cmd double-click launcher for relay.ps1
wally.toml Wally package (relay/ is excluded)
default.project.json Rojo project for the module
Use it in a plugin
Once the module is in your plugin:
local HttpService = game:GetService("HttpService")
local Relay = require(script.LocalRobloxRelay)
task.spawn(Relay.findPort) -- optional: look for the relay early, in the background
local ok, body = pcall(Relay.get, "https://catalog.roblox.com/v2/search/items/details?Keyword=hat&Limit=30")
if ok then
local data = HttpService:JSONDecode(body)
print(#data.data, "items via", Relay.lastVia) -- "relay" or "proxy"
else
warn(body) -- e.g. "HTTP 429 (Too Many Requests)"
end
Relay.get(url) | GET a roblox.com URL. Returns the body, or throws (wrap in pcall) |
Relay.mode | "auto" (relay, then proxy site) · "relay" · "proxy" · "off" ("roproxy" = old name for "proxy") |
Relay.manualPort | try this port first (relay started with a custom port) |
Relay.proxyTemplate | proxy website as a URL template (see below) |
Relay.findPort(force) | the relay's port or nil; checks all ports at once (~2 s when nothing runs) |
Relay.lastVia | "relay" or "proxy" for the last successful request |
Relay.proxyUrl(host, path, template?) | the proxy URL a request would use |
Relay.isValidTemplate(template) | true if the template is usable |
Requests never wait for the port scan: until a relay is found they go to the proxy
site, and the scan runs in the background (again every 60 s, or after the relay
closes). The first request to 127.0.0.1 makes Studio ask once whether the plugin
may use it.
Proxy website template
When the relay isn't running (or in "proxy" mode) requests go to a proxy website.
Its address is a template with:
{sub}— the subdomain, e.g.catalog{host}— the full host, e.g.catalog.roblox.com{path}— path and query, e.g./v2/search/items/details?Keyword=hat
Relay.proxyTemplate = "https://{sub}.roproxy.com{path}" -- default (roproxy style)
Relay.proxyTemplate = "https://myproxy.example.com/{host}{path}" -- path style
A template must start with http:// or https:// and contain {path}. Requests
carry no cookies, but a proxy website sees what you look up: use one you trust.
Address format
http://127.0.0.1:22600/<host>/<path>?<query>
http://127.0.0.1:22600/catalog.roblox.com/v2/search/items/details?Keyword=hat
http://127.0.0.1:22600/health -> {"name":"local-roblox-relay","version":1,"port":22600}
Safety
- Listens on
127.0.0.1only: other devices can't reach it. - Forwards GET only, to
*.roblox.comhosts only (anything else: 403 / 405). - Never sends cookies or credentials, so it only sees what a logged-out browser sees and can't act on any account.
- Successful responses are cached for 30 s, so several plugins asking the same thing don't add up against Roblox's rate limits.
Why port 22600
Picked at random (not hand-chosen) inside the registered-port range below
Windows' dynamic ports, then checked against Windows' reserved port ranges
(netsh int ipv4 show excludedportrange protocol=tcp) and ports in use. Ten
ports are kept as a fallback range so a clash just moves to the next one.
License
CC0 1.0: public domain. Use, copy, change and ship it in your own plugins however you like, no credit needed.
한국어 요약
Roblox와 관계없는 비공식 프로젝트입니다. Roblox Corporation이 만들거나 승인·후원·지원하지 않으며, "Roblox"·"Roblox Studio"는 Roblox Corporation의 상표로, 이 도구가 무엇과 함께 쓰이는지 설명하기 위해서만 언급합니다.
Roblox Studio의 HttpService는 roblox.com 주소를 막기 때문에, 내 PC(127.0.0.1)에
작은 중계를 띄워서 대신 요청해 주는 프로그램이에요. 윈도우는 relay/start-relay.cmd를 더블클릭하면 되고(설치 필요 없음), 플러그인에는 모듈 하나만
넣으면 됩니다 (Wally, .rbxm, 또는 src/init.luau 복사). 중계가 꺼져 있으면 프록시 사이트(기본 roproxy.com, Relay.proxyTemplate으로 변경
가능)를 씁니다. 조회(GET)만, roblox.com만, 쿠키 없이 전달하므로 계정에는 손댈 수 없습니다.
라이선스는 CC0(퍼블릭 도메인)이라 출처 표시 없이 자유롭게 쓸 수 있습니다.
Package Details
Install command (Click to copy)
Version
1.0.0
License
CC-BY-SA-4.0
Usable with conditions
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.
Automated license review — not legal advice.
