Package managers
RoZod is available on npm and works with all major JavaScript package managers. Choose your preferred tool below.Requirements
RoZod requires the following to run:- Node.js 16.x or higher (for NodeJS environments)
- TypeScript 4.5 or higher (recommended for type safety)
- Zod 4.x (automatically installed as a dependency)
RoZod works seamlessly in NodeJS, Bun, Deno, and browser environments without any special configuration.
Dependencies
RoZod automatically installs the following dependencies:- zod - Schema validation and type inference
- parse-roblox-errors - Error parsing for Roblox API responses
- roblox-bat - Hardware-backed authentication support
Verify installation
After installation, verify RoZod is working correctly:TypeScript configuration
For the best experience with TypeScript, ensure yourtsconfig.json includes:
tsconfig.json
Browser usage
To use RoZod in browser environments, you’ll need a bundler like Vite, Webpack, or Rollup:In browser environments, RoZod automatically uses cookies from the user’s Roblox session. No authentication setup needed!
Deno usage
For Deno, import RoZod directly from npm:Next steps
Quickstart
Build your first RoZod application
Authentication
Configure cookies and API keys