habivBETA
Create
HomeExploreSavedHistoryMy GamesProfile
Publish GameConnect AISettingsDocs
0
Games
0
Total runs
About & legal
AboutTermsPrivacyCookiesCommunity guidelinesCopyright
habivBETA
© 2026 Habiv
Docs

Build for Habiv

Everything you need to put a browser game on Habiv: what a build looks like, the optional SDK for scores and levels, and the MCP server that lets your AI publish for you.

OverviewAI promptsGame detailsGame SDKMCP & agents

Four ways to start

Copy a promptPaste a ready-made prompt into any AI. It builds or adapts your game, adds scores and saves, and publishes it.Upload itDrop an HTML file or a zip on the publish page. Five steps, nothing goes public until the last one.Ask your AIConnect Claude or Codex once, then say “publish this to Habiv”. It uploads, checks and shares the link.Add the SDKOptional. A few lines give you leaderboards, level stats and saves that survive a reload.

What a build looks like

A Habiv game is a normal web page. Upload one HTML file, or a zip or folder with an index.html at the root and everything it needs next to it. A folder is zipped in your browser before it uploads. Any engine that exports to the web works: plain JavaScript, canvas, Phaser, PixiJS, three.js, Godot, Unity WebGL, Construct, GDevelop and so on.

  • Keep every file inside the bundle and point to it with a relative path, like ./sprites/hero.png.
  • Use https:// for anything outside the bundle. A build that loads an http:// script, style or image is rejected.
  • Match file name case exactly. Hero.png and hero.png are different files here, even if they worked on your computer.
  • Add a habiv.json with the title, description and controls, and the publish form fills itself in.
LimitValue
File types.html, .htm, .zip or a folder
Upload size50 MB
Files in a build1,000
Unzipped size300 MB
Storage per creator250 MB

What happens on upload

Every upload becomes a new version of the game. Habiv checks and prepares it automatically, usually in under a minute:

  1. Checks. Detects the engine, counts files, measures the size and looks for requests to outside servers. Builds with executables, suspicious compression or no index.html are rejected with the reason.
  2. Preparation. Adds the Habiv SDK script, turns off service workers, rewrites paths that start with / so they load from your bundle, and swaps the Poki, CrazyGames and Newgrounds SDKs for local versions that talk to Habiv.
  3. Preview. You can play the build before it goes live. Preview plays never count as runs or scores.
  4. Publish. The version goes live at habiv.com/@you/your-game. Older versions stay in My games, so you can roll back at any time.

How your game runs

Each game plays in a sandboxed frame on a separate domain. It can't read the player's Habiv account or cookies, open pop-ups or start downloads. A few things follow from that:

  • Bundle your assets. Network access is off by default, so fonts, sounds and libraries should ship inside the zip. The checks flag any outside servers your code mentions.
  • Save through the SDK. The frame's own storage can be wiped between visits. Use Habiv.save and Habiv.load to keep progress.
  • Arrow keys and Space just work. Habiv stops them from scrolling the page behind your game.

Stats you get for free

You don't need to write any code to see how your game is doing. Every published game tracks these on its own:

  • Runs. A run starts when a player first clicks or presses a key inside your game, and ends when they leave or switch tabs.
  • Players, views and play time, plus where players come from and what device they use.

Add the SDK and you also get completions, leaderboards and level drop-off.

Counts refresh every few minutes, so a new run can take up to about 5 minutes to show up. Plays on a draft, and plays in the preview, are never counted.

Next steps

  • Game details: the habiv.json that fills in your game's page.
  • Game SDK: runs, scores, levels, saves and pause/mute.
  • MCP & agents: connect Claude, Codex or any MCP app and publish from a chat.
  • Community guidelines: what's allowed on Habiv.
On this page
Four ways to startWhat a build looks likeWhat happens on uploadHow your game runsStats you get for freeNext steps