Stress Relief Games logoStress Relief Games
Menu

Embed a Game on Your Site

Six of our games can be dropped into a class page, a blog post or a staff intranet with one iframe. No signup, no API key, no build step — paste the snippet and it works.

Live example

This is the real widget, loaded from the same URL your snippet uses:

The snippet

Pick a game, change the slug if you want a different one. This version keeps the height fixed, which is the simplest option:

Iframe
<iframe src="https://stress-relief-games.com/embed/bubble-wrap"
  width="100%" height="624"
  style="border:0;border-radius:12px;max-width:640px"
  title="Bubble Wrap Popper" loading="lazy"></iframe>

Or use the auto-resizing version. The widget reports its own height, so it stays correct when the container is narrower than 640px — where the games get taller:

Iframe + resize
<iframe id="srg-game" src="https://stress-relief-games.com/embed/bubble-wrap"
  width="100%" height="624"
  style="border:0;border-radius:12px;max-width:640px"
  title="Bubble Wrap Popper" loading="lazy"></iframe>
<script>
  addEventListener('message', function (e) {
    if (e.data && e.data.type === 'srg-embed-height') {
      var f = document.getElementById('srg-game');
      if (f) f.style.height = e.data.height + 'px';
    }
  });
</script>

All six embeddable games

Heights below are measured at 640px wide. If your column is narrower, use the auto-resizing snippet instead of these numbers.

GameEmbed URLHeight @640px
Bubble Wrap Popper/embed/bubble-wrap624px
Slime Simulator/embed/slime-simulator744px
Zen Garden/embed/zen-garden704px
Stress Relief Ball/embed/stress-ball740px
Fidget Spinner/embed/fidget-spinner900px
Sand Cutting/embed/sand-cutting900px

If you want to credit the source

The widget already includes a small link back to the full game. A plain text link next to the iframe is more useful for readers than the credit inside it, and it is the only part of this that helps us — so it is appreciated, not required:

Credit link
<a href="https://stress-relief-games.com/games/bubble-wrap">Bubble Wrap Popper — Stress Relief Games</a>

What it does and doesn't do

  • No signup, no cookies for you to ask about. The games have no accounts and no login.
  • Works on mobile. Every game is touch-ready; the sand and slime games block page scrolling inside their canvas so drags don't scroll the page.
  • Sound is on by default for the games that have it (bubble wrap, slime, sand, stress ball). Browsers only start audio after a click, so nothing plays on load.
  • We do count visits. The embed loads the same page as the site, so our analytics see it the same way. We don't know who is viewing.

Using this in a school or clinic?

The public embed is free. If you need the credit removed, your own logo, an invoice or a white-label version, see the organization license.

Want a different size, a light theme or a version without the credit bar? Reply to the contact address on the about page and it can be arranged.