let-me-into-roblox
v0.1.0
Published
Manage Open Cloud and Roblosecurity credentials seamlessly
Readme
let-me-into-roblox
Small utilities for finding a Roblox cookie and creating Roblox Open Cloud API keys.
Installation
npm install let-me-into-robloxUsage
import { createApiKey, getRoblosecurity } from "let-me-into-roblox";
const roblosecurity = getRoblosecurity();
if (!roblosecurity) {
throw new Error("Could not find a Roblox authentication cookie");
}
const context = await createApiKey({
roblosecurity,
name: "my-api-key",
description: "API key for my application",
allowedCidrs: ["203.0.113.10/32"],
});
console.log(context.apiKey);API
getRoblosecurity()
Returns the .ROBLOSECURITY cookie, or undefined when it cannot be found. It checks:
- The
ROBLOSECURITYenvironment variable. - An authenticated Roblox Studio installation on Windows or macOS.
createApiKey(options)
Creates a Roblox Open Cloud API key and returns an object containing id, userId, apiKey, and roblosecurity.
The required option is roblosecurity. Optional options include name, description, isEnabled, allowedCidrs, scopes, and url. The URL defaults to Roblox's Open Cloud API key endpoint.
When allowedCidrs or scopes are omitted, the library uses broad defaults. Set both explicitly for production use and grant only the permissions your application needs.
Supported Platforms
- Windows
- macOS
- Linux (WSL only)
Development
bun install
bun test
bun run build