Skip to content

RoZod

Type-safe Roblox API and OpenCloud client for TypeScript. 810+ endpoints, all code-generated from official Roblox docs.

Type Safety

Every endpoint has full TypeScript types for parameters and responses, powered by Zod schemas. Catch errors at compile time, not runtime.

810+ Endpoints

695+ classic Roblox web API endpoints and 115+ OpenCloud endpoints, all auto-generated from official documentation. Always up-to-date.

Production Ready

Battle-tested in RoGold, a browser extension with 800,000+ active users handling millions of API requests daily.

Simple Interface

One function — fetchApi — handles authentication, CSRF tokens, error parsing, cookie rotation, and more. Just pass an endpoint and parameters.

import { fetchApi, isAnyErrorResponse } from 'rozod';
import { getUsersUserid } from 'rozod/lib/endpoints/usersv1';
const user = await fetchApi(getUsersUserid, { userId: 1 });
if (isAnyErrorResponse(user)) {
console.error(user.message);
} else {
console.log(user.name); // fully typed!
}