Skip to content

Compatibility

The Rollerz SDK is designed to work with virtually any web-based game technology. The only hard requirement is a browser environment that can load a <script> tag and serve pages over HTTP/HTTPS.

Check your stack

Select the technologies you're using to see a compatibility summary.

Language

Framework

Game Engine

Languages

LanguageSupportNotes
JavaScript (ES2022+)FullThe SDK bundle is a plain IIFE script — no build step required on the game side
TypeScript 5.xFullInstall @rollerz/sdk as a dev dependency for complete type definitions and IntelliSense

Game code can be written in vanilla JavaScript or TypeScript. The SDK exposes window.RollerzSDK as a global, so no module import is required at runtime.

bash
# Optional: add types for IDE autocomplete
npm install @rollerz/sdk --save-dev

Technologies

TechnologyCompatibleDetails
Browser DOMRequiredThe SDK uses window, document, postMessage, and creates a hidden <iframe>
HTTP / HTTPSRequiredThe SDK bridge and API calls require a proper origin — file:// will not work
Node.jsNot neededThe SDK runs entirely in the browser; your game does not need a server-side runtime
Web WorkersNot supportedThe SDK must run on the main thread (it manipulates the DOM)

WARNING

Your game must be served over HTTP or HTTPS. Opening an HTML file directly from disk (file:// protocol) will fail because the bridge iframe and API calls require a valid origin. Use any local dev server (e.g. npx serve, Vite, webpack-dev-server) during development.

Frameworks

The SDK is framework-agnostic. It attaches to window.RollerzSDK, so it works in any environment that runs in a browser.

FrameworkHow to integrate
Plain HTML/JSAdd <script> tag directly in <head>
ReactAdd <script> tag to public/index.html, access window.RollerzSDK in components
VueAdd <script> tag to index.html, access window.RollerzSDK in components
Svelte / SvelteKitAdd <script> tag to app.html, access window.RollerzSDK in onMount
AngularAdd <script> tag to src/index.html, access window.RollerzSDK in services
Next.jsAdd via <Script> component or _document.tsx, access in client components only
PhaserAdd <script> tag to the HTML shell, access in scene code

TIP

For TypeScript projects using any framework, install @rollerz/sdk as a dev dependency to get type definitions for window.RollerzSDK without needing to declare types manually.

Game Engines

Any web-based game engine that outputs to a browser context is compatible, as long as it allows adding a <script> tag or loading external JavaScript.

EngineCompatibleIntegration method
PhaserYesAdd script tag to the HTML shell file
PixiJSYesAdd script tag to the HTML shell file
Three.jsYesAdd script tag to the HTML file
Babylon.jsYesAdd script tag to the HTML file
PlayCanvasYesAdd as external script in project settings
Construct 3YesWeb export — add script tag to the exported HTML
Cocos CreatorYesWeb build — add script tag to the HTML template
Godot (HTML5 export)YesAdd script tag to the export template; call SDK via JavaScript.eval()
Defold (HTML5)YesAdd script tag to the HTML template

Minimum browser requirements

The SDK targets modern browsers (ES2022). The following are supported:

  • Chrome / Edge 94+
  • Firefox 93+
  • Safari 15.4+
  • Any Chromium-based browser (Opera, Brave, etc.)