Tutorial Β· 5 steps

Put your AI game online for free

Is your game stuck on your laptop as a file nobody else can open? You can't post index.html on X, and a friend can't play it from your Downloads folder. A game needs a public web address before anyone can play it.

A game made of HTML and JavaScript is a static site. Free hosts serve those with no server and no bill. Pick one host below, upload your folder and you get a link in a few minutes. Then send that link to us, and players can find it.

Listed games on this shelf run on all of these hosts. Firefly Ferry is on Cloudflare Pages, Surviber FPS is on GitHub Pages and BRITBOX is on itch.io.

Step 1: Check the game is ready to ship

Check that this folder works as a static website. index.html must be at the top level. Every path to a script, image or sound must be relative, with no path that starts with "/" and no path into my own computer. No single file can be over 25 MB. There must be no API keys or passwords anywhere in the code. List anything that breaks these rules and fix it.
What you see

a short list of what the AI changed, or "nothing to fix".

If it goes wrong

the game works from your laptop and shows a blank page online, with 404 errors in the browser console. Paths that start with "/" point at the wrong place when the game lives in a subfolder, as it does on GitHub Pages and itch.io. Paste this:

The game is blank when it is online and the console shows 404 errors. Change every path that starts with "/" to a relative path, and check that every file name matches its case exactly.

Step 2: Make it fit a phone

Add a viewport meta tag to index.html. Make the game fill the screen on a phone in portrait and in landscape, with no scrollbars and no page zoom when the player taps twice. Add a <title> with the game's name and a meta description of one sentence that says what the player does.
What you see

the game fills your phone screen edge to edge, and the browser tab shows the game's name.

If it goes wrong

the page bounces or scrolls when you drag on the game. Paste this:

The page scrolls when I drag on the game. Stop touch scrolling and pull-to-refresh on the game area, and keep the buttons outside the game tappable.

Step 3: Pick a host and upload

All three hosts below are free for a game like yours. Pick one.

Option A: Cloudflare Pages, drag and drop

  1. Sign up for a free Cloudflare account.
  2. In the dashboard, open Workers & Pages and select Create application.
  3. Select Get started, then Drag and drop your files, and give the project a name.
  4. Drag your game folder into the upload box and deploy it.

Your game goes live at <project-name>.pages.dev. A drag and drop upload takes up to 1,000 files, each 25 MiB or smaller. To ship a new version, upload the folder again.

If you work in Claude Code or Codex in a terminal, it can deploy for you. You need Node.js installed.

Deploy this folder to Cloudflare Pages with wrangler, using the project name dune-flyer. If I need to log in, tell me what to run. Then give me the pages.dev address.

Option B: GitHub Pages, from a repository

  1. Create a public repository on GitHub. GitHub Pages is free for public repositories.
  2. Select Add file, then Upload files, and drag in everything inside your game folder.
  3. Open Settings, then Pages. Under Build and deployment, set Source to Deploy from a branch.
  4. Pick the main branch and the / (root) folder, then select Save.

Your game goes live at https://<your-username>.github.io/<repository-name>/. A site can be up to 1 GB, with a soft limit of 100 GB of traffic a month. Each new commit to main publishes again.

If the GitHub command line tool gh is installed and logged in, your AI tool can do all of it:

Use the gh command line tool to create a public GitHub repository called dune-flyer from this folder and push it. Then turn on GitHub Pages for the main branch and the root folder, and give me the address.

Option C: itch.io, as an HTML game

  1. Sign up for a free itch.io account and create a new project.
  2. Set the kind of project to HTML.
  3. Upload a zip with index.html at the top level. A game that is one self-contained HTML file can go up without a zip.
  4. In the embed options, set the size of the game frame, or choose to launch it in fullscreen. Tick the mobile friendly option if it plays on a phone.
  5. Set the visibility to public and save.

Your game lives at <your-username>.itch.io/<game-name>. A zip can hold up to 1,000 files and 500 MB once unpacked. An HTML game on itch.io can take payments as donations only.

Zip this folder for itch.io. index.html must be at the top of the zip, not inside a subfolder. Leave out .git, node_modules and any file the game doesn't load. Name it dune-flyer.zip.
What you see

your game plays at its new address. Open it on your phone too, over mobile data, to be sure it loads for strangers.

If it goes wrong

itch.io says it can't find index.html in the zip. Zipping the folder itself puts index.html one level down. Paste this:

itch.io can't find index.html in my zip. Make a new zip from the files inside the folder, so index.html sits at the top level of the zip.

Step 4: Write the line that sells it

Write one line about this game for a directory card, under 150 characters. Say what the player does in the first ten seconds. No adjectives like "fun" or "addictive". Then tell me whether the game needs a keyboard or also plays on a touch screen.
What you see

one plain sentence a friend would understand, plus a yes or no on touch.

If it goes wrong

the line reads like an ad. Paste this:

That sounds like an advert. Rewrite it as what a player does and what they're trying to reach, the way you'd say it out loud to a friend.

Step 5: Submit it and add the badge

  1. Open the submit form. Paste your play URL, the game's name, your X handle and the line from step 4.
  2. Add at least one 16:9 screenshot, like 1280Γ—720, under 5 MB. The first one goes on your card.
  3. Send it. Free listings go live within a week.
  4. When your game page is up, open it and copy the badge code under "Badge for this game".

Then give the badge code to your AI tool:

Add this badge to the bottom of index.html, below the game, centred, and opening in a new tab: <paste the badge code from your game page>. It must not cover the game on a phone.
What you see

a "Featured on vibecode.games" badge under your game that opens your game page.

Games that link back with the badge sit above the others on their shelf.

If it goes wrong

the badge shows as a broken image. The badge code only works once your game page is live. Copy it again from your game page and paste this:

The badge image is broken. Replace the badge code with this exact code from my game page, and don't change the slug in it: <paste the badge code again>.

Where makers took it

Firefly Ferry, turn leaves to carry a firefly home

Firefly Ferry

Turn the leaves on five moonlit ponds to carry a firefly home. Hosted on Cloudflare Pages.

@pocketorbittapSee the game
BRITBOX, Street Fighter II-style meme brawler

BRITBOX

Pick one of eight Brits and fight along a seafront in a Street Fighter II-style meme brawler. Hosted on itch.io.

@mentalentgamesSee the game

Put it on the shelf

Got a link that works on your phone? That's all the form needs. Listing is free, and your game gets its own page and a badge for your site.

Submit your game

FAQ

Is free hosting enough for a browser game?

For a game made of HTML and JavaScript, yes. All three hosts here serve static files on their free plans. A game with a multiplayer server or a shared leaderboard runs code on a server, and that part needs a host that runs code.

Can I use my own domain for the game?

Yes. Cloudflare Pages and GitHub Pages both let you point a domain you own at the site, and the steps sit in each project's settings. Your free pages.dev or github.io address keeps working.

Does vibecode.games host my game?

No. Your game stays on your host and the play button on your game page opens it in a new tab. Whatever the game earns goes to you. Your page here helps players find it.