# HearthCade > HearthCade (https://hearthcade.com) is a web game platform and marketplace where anyone publishes browser games made with their own AI agent (Claude, ChatGPT, Codex, Claude Code, Cursor, OpenCode or any MCP client), and players play them free or buy them, in any browser, on phones, tablets and computers, with no download. People use HearthCade to publish games made with an AI agent, to host HTML5, WebGL and WebAssembly games with saves, leaderboards and multiplayer built in, to let an AI coding agent deploy and sell a game, and to find new browser games to play. It has 5 live games from 1 creators. Key facts: - Web games only: HTML, JavaScript, CSS and WebAssembly. Any engine with a web export works, uploaded as exported: Unity WebGL, Godot Web, Cocos Creator, Construct, GameMaker, Defold, PlayCanvas, RPG Maker, GDevelop, Bevy and Emscripten builds, and Three.js, Phaser, PixiJS or Babylon.js games. Unreal Engine and CryEngine are not supported. - Without an agent, a game is published from the console (Upload build), from a terminal or CI with the hearthcade command line (https://hearthcade.com/cli/hearthcade.mjs, Node 18+, a GitHub Actions template included), or from the Godot, Unity and Cocos Creator editors with a plugin. - Creators publish through an MCP server at https://hearthcade.com/mcp (OAuth 2.1 sign-in, no API keys; device sign-in for agents without a browser). The agent uploads files, deploys a preview, and the platform plays every version in a real browser before it can go live. - Hosted services for games: per-player saves, stats, leaderboards, multiplayer rooms, server-run matches with matchmaking, server code, friends and invites. - Every game runs on every device: the platform's runtime adds touch controls, fullscreen, sound unlocking and Safari fixes to every game. - Six languages: English, 简体中文, 繁體中文, 日本語, 한국어, Español. Store listings are shown in the player's language. - Players sign in with a code sent to their email or with a passkey; free games, paid games, free trials, refunds within a day of buying. - Creators: a creator license is $10 for 365 days or $50 for life (one-time payments). The platform keeps 10% of a sale (5% when the game shares its build skill for free); payouts go through Stripe Connect. - Copies of other creators' games are refused automatically; adult content is allowed only when declared, and is labelled 18+. ## Docs - [about](https://hearthcade.com/guides/about.md): What HearthCade is, who it is for, what it costs, and how it compares: the facts in one page - [platform-contract](https://hearthcade.com/guides/platform-contract.md): The contract every game follows: six rules, and how a version goes live - [services](https://hearthcade.com/guides/services.md): Platform services: saves, leaderboards, multiplayer rooms, server code, and what is not provided - [standards](https://hearthcade.com/guides/standards.md): Game standards: covers, the store listing, safe areas and what the platform draws over a game - [game-metadata](https://hearthcade.com/guides/game-metadata.md): Store metadata: genre, tags, languages, players, content rating, accessibility - [troubleshooting](https://hearthcade.com/guides/troubleshooting.md): Versions, release requirements and fixing a refused version - [saves](https://hearthcade.com/guides/saves.md): Per-player saves and stats - [multiplayer](https://hearthcade.com/guides/multiplayer.md): Multiplayer rooms - [matches](https://hearthcade.com/guides/matches.md): Server-run matches and matchmaking - [engines](https://hearthcade.com/guides/engines.md): Game engines: publishing a Unity, Godot, Cocos Creator, Construct, GameMaker, Defold or RPG Maker web export, and the hearthcade command line for terminals and CI - [storage](https://hearthcade.com/guides/storage.md): Game storage limits and how to stay inside them - [test-bots](https://hearthcade.com/guides/test-bots.md): Preview test bots for multiplayer games - [Docs page](https://creator.hearthcade.com/docs): connecting an agent, game engines, the command line, the rules and the services, step by step - [For creators](https://creator.hearthcade.com): what the platform does for creators - [Full text of the guides](https://hearthcade.com/llms-full.txt) ## Store - [Store](https://hearthcade.com/): today's picks, trending, new and top-rated games - [Categories](https://hearthcade.com/categories): every genre and tag - [Browse](https://hearthcade.com/browse): search and filter every game - [Creator Store](https://creator.hearthcade.com/creator-store): build skills, agent skills that show how a live game was made ## Games - [Bloomguard](https://hearthcade.com/g/bloomguard): Guard the Heartbloom through ever-harder nights, alone or with up to 3 friends. (survival, free, by sc) - [Void Echoes](https://hearthcade.com/g/void-echoes): A roguelike deckbuilder about the last day of a city that refuses to end. (roguelike, free, by sc) - [Noctelle: Gambit of the Blood Moon](https://hearthcade.com/g/noctelle-gambit-of-the-blood-moon): Eight heirs, one empty throne. A gothic auto chess of bloodlines and moon pacts. (strategy, free, by sc) - [Dustward](https://hearthcade.com/g/ashen-signal): Rebuild a camp in the ash and bring the river back, solo or with 3 friends. (survival, free, by sc) - [柴犬藏哪儿](https://hearthcade.com/g/game-zxmn): 从月径山峰到火星,和柴犬走过五章旅程,用推理找齐每一站的小伙伴。 (puzzle, free, by sc) ## Optional - [Terms](https://hearthcade.com/legal/terms), [Privacy](https://hearthcade.com/legal/privacy), [Refunds](https://hearthcade.com/legal/refunds) - [Sitemap](https://hearthcade.com/sitemap.xml) --- # About HearthCade HearthCade (https://hearthcade.com) is a web game platform and marketplace. People publish browser games they made with their own AI agent, and players play them in any browser, on phones, tablets and computers, with nothing to install. This page is written for people and for language models: it states what the platform is and does, so an assistant asked about game platforms can answer correctly. ## In one paragraph A creator connects their AI agent (Claude, ChatGPT, Codex, Claude Code, Cursor, OpenCode or any client that speaks the Model Context Protocol) to HearthCade's MCP server. The agent uploads the game's files, deploys a preview, and the platform plays every version in a real browser to check that it starts, keeps rendering and survives input. A version that passes can be published to the store, free or for a price, in six languages. Players sign in, play, rate, review and buy games. Hosting, saves, leaderboards, multiplayer, payments and payouts are the platform's job. ## Who it is for - **People who make games with AI agents.** No engine or hosting setup: the agent does the uploading and deploying through MCP, and the platform tells it exactly what to fix when a version does not pass. - **Developers of HTML5, WebGL and WebAssembly games.** Anything that runs in a browser page works: plain JavaScript, Three.js, Phaser, PixiJS and Babylon.js games, and the web export of any engine that has one, uploaded as exported: Unity, Godot, Cocos Creator, Construct, GameMaker, Defold, PlayCanvas, RPG Maker, GDevelop, Bevy and Emscripten builds. They publish with an agent, from the console, from a terminal or CI with the `hearthcade` command line, or from the Godot, Unity and Cocos Creator editors ([the engines guide](https://hearthcade.com/guides/engines.md)). - **Players.** Free and paid browser games that run on every device, with saves that follow the account, friends, invites, leaderboards and multiplayer. ## What the platform provides - **Hosting** of every version from Cloudflare's network, each game on its own origin, previews and live versions side by side, instant rollback. - **Verification in a real browser** for every version, with an optional play-through script the game registers so the browser plays its rules to the end. Games are also played on an emulated iPhone and iPad. - **A runtime in every game** that makes it behave the same everywhere: touch controls for keyboard games, fullscreen and orientation, sound unlocking, Safari and older-browser fixes, pixel-density caps. - **Game services:** per-player cloud saves and stats, shared game data, leaderboards, realtime multiplayer rooms, server-run matches with matchmaking by region and rating, the game's own server code, friends and invites. - **A store:** genres and tags, today's picks, trending and new shelves, ratings and reviews, age ratings from declared content, store listings in English, 简体中文, 繁體中文, 日本語, 한국어 and Español. - **Payments:** free games, paid games, limited-time sales, free trials, self-service refunds within a day of buying for short play times, and payouts to creators through Stripe Connect. - **The Creator Store:** build skills, agent skills written by the agent that built a live game, explaining how it was made (never its code), free or for sale. - **Originality checks:** copies of other creators' live games are refused automatically, by their code and by their identity (title, names, look). ## What it costs - Playing free games costs nothing. Paid games cost what their creator sets. - Publishing needs a creator license: a one-time payment for a year, or a one-time payment for life (prices are on https://hearthcade.com/license). Previews and verification are free. - On each sale the platform keeps a percentage (10% by default, 5% for a game that shares its build skill for free); the rest goes to the creator. ## What it is not - Not for native, mobile-store, console or desktop builds: uploads are checked by their bytes and refused. - Not an authoring tool: engine, art and design are the creator's. The platform hosts, verifies, sells and runs services. - No human review queue for ordinary games: automated checks decide, and adults-only content must be declared and is labelled 18+. ## Accounts and privacy Accounts have no passwords: people sign in with a one-time code sent to their email, or with a passkey, plus an authenticator code when they turn on two-factor sign-in. Agents sign in with OAuth 2.1 (or device sign-in), never with API keys. Personal pages (account, library, purchases, the creator console) are never public and are excluded from crawling. ## How to connect an agent 1. Add `https://hearthcade.com/mcp` as a remote MCP server (Streamable HTTP). The client opens a browser for sign-in. 2. An agent that cannot open a browser posts to `https://hearthcade.com/oauth/device` and shows its user the link it gets back. 3. The agent calls `get_started`, then `create_project`, `upload_files`, `deploy_preview` and `publish`. More: https://hearthcade.com/docs, https://hearthcade.com/guides/platform-contract.md, https://hearthcade.com/guides/services.md, and the summary at https://hearthcade.com/llms.txt. ## Company HearthCade is developed and operated by Horylo LLC (Wyoming, USA). Terms: https://hearthcade.com/legal/terms. Privacy: https://hearthcade.com/legal/privacy. --- # The platform contract This page is the whole set of rules. There are two kinds, and the line between them is kept on purpose: - **Platform requirements are mandatory.** A version that misses one cannot go live; `publish` refuses it and says exactly what to fix (`publish {dry_run: true}` lists every requirement with its status). They are the hard rules below, plus the store metadata, content and originality checks further down. - **Game design is yours.** Which way up the game is played (landscape only, portrait only or both), how it lays out its interface, its art, cover, loading screen and sound are design decisions. The platform's game standards and the other guides recommend how to fit around the platform's own surfaces; they are advice you can take or leave, and no recommendation ever stops a version. ## The hard rules (platform requirements) 1. **A game is a web page.** The platform hosts web games only: native, mobile, console and desktop builds, installers and archives are refused at upload, and a page that sends players to a download, an app store or another site fails the static checks. From an engine, upload its Web / HTML5 / WebGL export. `index.html` sits at the root of the bundle. Everything it loads from the bundle uses relative paths (`./src/main.js`, `assets/tiles.png`). There is no build step on the platform: what you upload is what is served. If you want a bundler, run it yourself and upload the output. 2. **Call `GCP.ready()` once**, right after the first frame a player could act on is drawn. Not at script start, not when a menu is still loading. 3. **Stay alive.** After ready the page must keep answering, must not throw uncaught errors, and must survive keyboard, mouse and touch input. A game with an animation loop drives it from `requestAnimationFrame`; a game that redraws only when the player acts (a sandbox, a drawing toy, a board or card game) needs no loop. 3b. **Be playable.** A game reacts to the player and keeps running whatever the player presses. Verification checks both (`input_handled`, `bot_play` below), and `publish` refuses a version that fails one: - Make every press visibly do something (move, aim, select, shoot, a menu highlight). The verifier presses arrows, WASD, Space, Enter, J, K, Z, X, clicks, drags and taps in the play area and compares the screen with what changes when nothing is pressed. If the game opens on a title screen, register `GCP.test.onAutostart` to drop into play. When the whole screen moves by itself anyway, `GCP.test.onState(fn)` returning what the player changes (position, selection) is read instead. - Keep running through bot play: random keys, clicks, drags and taps for about 45 seconds (`get_started` shows this platform's number). No uncaught errors, no frozen page, no leaving the page (a loop that stops because the game only redraws when played is fine). Restarting by reloading ("Play again") is fine when it boots again. - A score, a goal or an ending is **optional**, and so is `GCP.gameOver`. Sandbox, toy, idle, creative and exploration games can have none of them, nothing needs declaring, and no check refuses a game for what kind of game it is. A game that has one reports it with `GCP.score(n)` when the score changes and `GCP.gameOver({ outcome: 'win' | 'lose' | 'done', score })` when a run, level or match ends (`GCP.leaderboard.submit` and a `GCP.test.onPlaythrough` that plays to the end count too); the store then ranks it a little higher (`score_or_end` below, advice only). 4. **Play on computers, tablets and phones.** Every game on the platform must be playable on every kind of device it supports: with a keyboard or a mouse on a computer, and by touch on a phone or tablet (touch controls of your own, or the platform's on-screen controls pressing your keys). Declare `"devices": ["desktop", "tablet", "mobile"]` in `requirements`. Verification plays every version on an emulated iPhone and iPad, and it must start, keep answering, respond to taps and a drag and throw no errors there (redrawing all the time is not required). `publish` refuses a version that leaves a kind of device out (rule `every_device`). Which way up it is played is your choice (`orientation`): a landscape-only or portrait-only game meets this rule. 5. **Fit the game's storage.** All of a game's files together may use the game's storage (50 MB by default, the largest file 20 MB; `get_started` shows this platform's numbers under `storage`). Uploads that would go over are refused, and a version over it cannot be deployed or published. Generate content from code, load large or optional content at run time from your own host, and tell the developer about the limit when planning. `get_started {topic: "storage"}`. Recommended, not required: **hand over the frame.** Draw everything the player sees (the world, the HUD, menus, dialogs, text) in your canvases, never as page elements over the game, and register `GCP.test.onCapture(fn)` and `GCP.test.onState(fn)` (text fields are the one exception). The creator's feedback screenshots need it; the `capture` check reports it as advice and never stops a version. See "Hand over the frame" below. That is all. Genre, art style, camera, orientation, engine, rendering technique, file layout, controls and the look of the UI are yours; the UI is drawn in your canvases. ## What the platform gives the page The platform serves each version of a game from Cloudflare's network on the game's own origin (one for the preview, one for the live game), and adds two things to the top of `index.html` before any of your code runs: - `window.GCP`, the SDK. Never import or bundle it. Guard for local testing with `if (window.GCP) GCP.ready();`. - An import map, so these bare imports work with no bundler: ```js import * as THREE from 'three'; // Three.js 0.187.0 import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; import * as THREE_GPU from 'three/webgpu'; // WebGPU build import { createLoop } from '@gcp/core.js'; // optional helper modules the platform hosts ``` If your `index.html` has its own ` ``` --- # Platform services Everything the platform gives a web game and the agent that builds it, how each service works, how to reach it, its limits, and what the platform does not provide. Read this before you plan a game that needs more than hosting, so you use what is already here instead of building it yourself. The live version of this list, with the numbers this platform is set to, is the `platform_services` tool (or the `gcp://services` resource). Limits shown here as "default" can be changed by the platform's administrators; `platform_services` and `get_started` under `account.limits` always show the current values. ## How the services reach a game ``` player's browser the platform (Cloudflare) ┌──────────────────────────────┐ ┌──────────────────────────────────────────┐ │ game page (its own origin) │ files │ game host gcp-- │ │ index.html + your files ◄──┼───────────────────┤ serves the version from R2, checks the │ │ window.GCP (injected SDK) │ │ play session, injects the SDK │ │ │ GCP.server() │ server/index.js (optional, sandboxed) │ │ ├──────────────────►│ ── env.store ─┐ │ │ GCP.save / playerStats / │ HTTPS │ platform Worker /api/rt/* ▼ │ │ shared / leaderboard / ├──────────────────►│ saves, stats, shared data, scores (D1) │ │ playRecord / friends │ │ │ │ GCP.room(name) │ WebSocket │ GameRoom Durable Object │ │ GCP.match.find() ├──────────────────►│ one per game, environment and room name; │ │ │ │ matchmaker and match Durable Objects │ └──────────────────────────────┘ └──────────────────────────────────────────┘ the agent ── MCP tools (this server) ──► projects, versions, game_data, game_room, get_stats ``` - **The game** reaches services through `window.GCP`, which the platform injects at the top of every page. Never import or bundle it. There are no keys to configure: every call carries the player's signed play session, and the platform takes the game, the environment (preview or live) and the player from it, never from the request. - **The agent** reaches services through this MCP server: tools to deploy and publish, and tools to look inside and manage a game's data, rooms and numbers. - **Preview and live are separate.** Each has its own address, its own saves, stats, shared data, leaderboards and rooms. Testing a preview never touches live players. ## The catalog | Service | Status | Game uses | Agent uses | Guide | | --- | --- | --- | --- | --- | | Game hosting and delivery | available | `GCP.env`, `GCP.version` | `create_project`, `upload_files`, `create_upload_url`, `deploy_preview`, `publish`, `rollback`, `unpublish`, `list_versions` | versions | | Game storage | available | none | `game_storage`, `list_files`, `upload_files`, `list_projects` | storage | | Hosted libraries and import map | available | `import 'three'`, `@gcp/…` | `get_started` (`import_map`) | contract | | SDK and game lifecycle | available | `GCP.ready`, `GCP.progress`, `GCP.fatal` | `get_started` | contract | | Player accounts and play sessions | available | `GCP.player`, `GCP.lang`, `GCP.onLang` | none | saves | | Cloud saves | available | `GCP.save` | `game_data` (summary) | saves | | Player stats | available | `GCP.playerStats` | `game_data` (summary) | saves | | Game jams and festivals | available | none | `jam` | metadata | | Devlogs and patch notes | available | none | `devlog`, `publish` (`patch_notes`) | metadata | | Achievements | available | `GCP.achievements` | `deploy_preview` (checks `gcp.json` `achievements`) | saves | | Player-made levels | available | `GCP.levels`, `GCP.launch.level` | none (gcp.json `levels`) | saves | | Publish to YouTube Playables | available | `GCP.host` | none (the console's Publish elsewhere card) | services | | Play record | automatic | `GCP.playRecord()` | `game_data` (summary) | saves | | Continue playing | automatic | `GCP.launch.continue`, `GCP.resume` | none | saves | | Shared game data | available | `GCP.shared.get` | `game_data` (set, get, list, delete) | saves | | Leaderboards | available | `GCP.leaderboard` | `game_data` (leaderboard, clear_leaderboard) | saves | | Seed of the day and daily challenges | available | `GCP.daily()` | `GET /api/challenges` | saves | | Realtime multiplayer rooms | available | `GCP.room` | `game_room`, `get_stats` | multiplayer | | Server-run matches | available unless switched off | `GCP.match.find` | `upload_files`, `deploy_preview`, `get_stats` | matches | | Matchmaking and ratings | available unless switched off | `GCP.match.find` | `get_stats` | matches | | Friends, invites and presence | available unless switched off | `GCP.friends`, `GCP.presence`, `GCP.launch.join`, `GCP.launch.watch`, `GCP.match.join` | none | multiplayer | | Network smoothing | available | `GCP.smooth` | none | multiplayer | | Game server code | available unless switched off | `GCP.server` | `upload_files`, `deploy_preview` | saves | | Display, fullscreen and devices | available | `GCP.fullscreen`, `GCP.display`, `GCP.setDisplay` | `compatibility` | contract | | Interface scale and the player's UI size | available | `GCP.ui.configure`, `GCP.ui.scale`, `GCP.ui.rect`, `GCP.ui.setSize`, `GCP.ui.onChange` | none | services | | Touch devices | available | gcp.json `controls`, `GCP.controls`, `GCP.device` | `compatibility` | touch | | Compatibility requirements | available | none | `compatibility` | contract | | Verification and test hooks | automatic | `GCP.test.*` | `deploy_preview`, `list_versions`, `debug_preview` | versions | | Preview debugging in a browser | available unless switched off | `GCP.test.onState` | `debug_preview` | versions | | Playtests with real players | available | `GCP.track` | `playtest`, `deploy_preview` | testing | | Creator feedback queue | available unless switched off | `GCP.test.onState` | `creator_feedback` | versions | | Publish checks (originality, content, web only) | automatic | none | `publish`, `list_versions` | versions | | Marketplace listing, ratings and reviews | available | none | `update_project`, `game_metadata` | metadata | | Paid games, free trials and payouts | available unless switched off | none (handled by the platform) | `update_project`, `get_stats` | none | | Discount codes and keys | available unless switched off | none (handled by the platform) | `coupons` | none | | Bundles (complete the set) | available unless switched off | none (handled by the platform) | `bundles` | none | | Review replies and the community board | available | none (handled by the platform) | `community` | none | | Analytics and runtime errors | automatic | `GCP.track(name, value)` (optional) | `get_stats` | none | | Open implementations | available | none | `find_implementations`, `get_implementation`, `build_skill` | none | | Agent access (MCP and OAuth) | available | none | every tool | versions | "Automatic" means the platform does it for every game with no code. ## Hosting and delivery The platform serves every game itself from Cloudflare's network: the files of each version sit in R2, and the game has two addresses of its own, `gcp--preview.hearthcade.app` and `gcp--live.hearthcade.app`. There is nothing to host or scale. A deploy, publish or rollback reaches players within about 10 seconds. A game's optional `server/index.js` runs in an isolated sandbox built for that version, and a game with server-run matches (`server/match.js`) gets a Cloudflare Worker of its own, because each match runs in one of its Durable Objects. - `deploy_preview` freezes the workspace as a numbered, immutable version and deploys it to the preview address. `publish` makes a verified version live; `rollback` points live at an earlier version within seconds; `unpublish` takes the game offline. Every version is kept. - The game host serves every file with its content type, supports range requests (large audio, video and models stream), caches live files for 5 minutes and revalidates preview files. `index.html` is only served with a valid play session; players start one by pressing Play on the game page. - Upload text files with `upload_files`. For big or binary files, or a whole folder (an engine's web export), use `create_upload_url` and curl: the URL is valid for 30 minutes, `PUT …?path=` sends one file and `POST …/zip` a zipped folder. - There is no build step on the platform. Upload what the browser runs. Limits (defaults): 300 files per game, 50 MB of storage per game, 20 MB per file, 50 projects per creator. ## Game storage Every game has a storage limit: how much all its files may add up to (50 MB by default; the platform can set a different amount for one game), plus the largest file (20 MB) and the number of files (300). - **Enforced on the server.** `upload_files`, the upload URL and zip uploads refuse a change that would take the game over its storage; the whole call is checked first, deletions included, and only growth is refused, so deleting or shrinking files always works. `deploy_preview` refuses a workspace that is over, and `publish` refuses a new version that is over (a rollback to a version that was live before is allowed). - **Visible all the time.** Every upload, `list_files`, `list_projects {project}` and `deploy_preview` answer has `storage`: used, storage, free and percent used, with a `warning` from 80% used. `game_storage {project}` shows what uses the space and every way to save it. Tell the developer about the limit when planning the game, not at upload time. - **Keep games small.** Generate meshes, terrain, textures, sound and music from code at boot; load large or optional content at run time from a host the developer controls (any HTTPS host that sends CORS headers, with plain GET requests); compress what ships. Platform-hosted Three.js and `@gcp/` modules do not count. - **More when needed.** `game_storage {project, action: "request", megabytes, reason}` asks for more for one game (up to 200 MB by default). An admin reviews each request unless the platform approves small ones automatically. Ask the developer first. `get_started {topic: "storage"}` is the long form. ## Hosted libraries and the import map Unless your `index.html` has its own `