Skip to main content
The web SDK is a single script, with no build step and no dependencies. It works with any framework, or none: Phaser, PixiJS, Three.js, plain canvas, React and more.
Load it in your page’s <head>, before anything heavy. The sign-in popup comes back to this page, and the script closes it quickly.

Connect your game

At developer.gamavas.fun, connect your game listing to get a client ID, and add the page your game runs on under Where sign-in returns, for example https://your-game.example/. See How sign-in works.

The button

It fires gamavas-signin when a player signs in, and gamavas-error if sign-in fails:
A returning player sees Continue as @handle and signs in with one click. Style it with theme, size, shape, text, width and color (see Branding), and add email to ask for their email.

The client

For your own button or more control:
Or render the button yourself:

Achievements, progress and selling

Your server

Send it to your server and verify it there with @gamavas/pass-server.

Options

The script talks to the Gamavas it was loaded from, so https://staging.gamavas.fun/sdk/pass.js uses staging.

Errors

Rejected promises carry a GamavasPassError with a code and a message: