A tiny, clean game hub you can host anywhere (including GitHub Pages).
Because this uses fetch() for games/games.json, you need a local server.
- Open a terminal in the
rocket-arcade/folder - Run:
- Windows:
py -m http.server 8000 - Mac/Linux:
python3 -m http.server 8000
- Windows:
- Open:
http://localhost:8000
- Install Node.js
- In the
rocket-arcade/folder:npm create vite@latestis optional — this repo already works as-is.- If you want hot reload, you can wrap it with Vite later.
- Copy
games/_template/→games/<your-game-id>/ - Edit
games/<your-game-id>/index.htmlandgame.js - Add an entry to
games/games.json:
{
"id": "your-game-id",
"title": "Your Game Title",
"description": "One-line hook.",
"path": "games/your-game-id/index.html",
"tag": "quick game",
"time": "30–120s"
}That’s it — it will appear on the homepage.
- Create a GitHub repo and push this folder
- In repo settings → Pages → set source to
mainbranch and/root - Your site will be live.
- High scores are stored in
localStorage(per browser). - Keep games lightweight: single canvas, simple input, instant restart.
Have fun.