A demo casino Treasure Bay Play as Ava

A cave floor of stone tiles, some lifted to show a coin, a gem, a crown and a key glowing in blue light.
This week in the bay

Find the treasure

A new board of hidden tiles every week. Reveal a few each day, collect a set, win the prize.

The games

Every game opens in the player’s XQSTORA hub, inside this site. The server decides each prize before the animation starts.

Who is playing

Three stand-in players, each known to XQSTORA by the id this casino gives them. The choice is kept in this browser.

The next launch sends externalPlayerId demo-ava

How it works for an operator

Three steps, the same on any site: what this demo does is what an operator’s own site does.

  1. Launch

    The operator’s server signs POST /v1/operator/launch with its API key, naming the brand and its own id for the player. XQSTORA answers with a URL.

  2. Frame

    The page puts that URL in an iframe. The player page only lets the brand’s own origins frame it, and never sees the API key.

  3. Listen

    The frame posts xq:ready, xq:resize, xq:event and xq:closed. The page checks the sender, sizes the frame and reacts to a reward or a level.

Your page
window.addEventListener('message', (event) => {
  if (event.origin !== playerOrigin) return;
  if (event.source !== frame.contentWindow) return;
  const message = event.data;
  if (message.type === 'xq:resize') frame.style.height = message.height + 'px';
  if (message.type === 'xq:event') celebrate(message.name, message.data);
  if (message.type === 'xq:closed') offerRelaunch();
});

Treasure Bay is a fictional casino, made to show XQSTORA inside an operator’s own site. No real money is involved. Built on XQSTORA