Skip to content
@gmshelf

gmshelf

The simplest way to add games to your website. Supports JS Delivr and local hosting.

gmshelf

The simplest way to add games to your website.

Setting it up

  1. Choose the repo you want to use (Seraph, Truffled, etc)
  2. Fetch the game list
async function getGames() {
  const res = await fetch("https://cdn.jsdelivr.net/gh/gmshelf/seraph/seraph.json")
  const data = await res.json()
  return data
}
// Example Response
{
  name: "Game Name",
  url: "path/to/game",
  img: "path/to/cover", // Game covers are not included yet
}
  1. Load the game into an iframe or another embedding method

Example game URL: https://cdn.jsdelivr.net/gh/gmshelf/truffled/truffled/1v1lol/1v1.html

Alternatively, you can simply download the games and host them on your server.

Pinned Loading

  1. seraph seraph Public

    JavaScript 1

  2. ckv ckv Public

  3. truffled truffled Public

    HTML 2

  4. ugs ugs Public

    HTML

Repositories

Showing 5 of 5 repositories

Top languages

Loading…

Most used topics

Loading…