All three hosts below are free for a game like yours. Pick one.
Option A: Cloudflare Pages, drag and drop
- Sign up for a free Cloudflare account.
- In the dashboard, open Workers & Pages and select Create application.
- Select Get started, then Drag and drop your files, and give the project a name.
- 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.
PromptDeploy 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
- Create a public repository on GitHub. GitHub Pages is free for public repositories.
- Select Add file, then Upload files, and drag in everything inside your game folder.
- Open Settings, then Pages. Under Build and deployment, set Source to Deploy from a branch.
- 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:
PromptUse 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
- Sign up for a free itch.io account and create a new project.
- Set the kind of project to HTML.
- 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. - 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.
- 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.
PromptZip 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 seeyour 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 wrongitch.io says it can't find index.html in the zip. Zipping the folder itself puts index.html one level down. Paste this:
Fix promptitch.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.