📋 Open Standard

The BTH Standard

How attribution, lineage, and AI credits work inside every Better Than HTML game file. Version 1.0 — March 2026.

What is the BTH Standard?

Every BTH game is a single .html file. The BTH Standard defines a human-readable comment block inside that file that records who made it, which AI helped, and where it came from. No database required. No blockchain. The file is the record.

When you fork a game, your credits are added on top. The original author's name rides along forever — in every fork, in every fork of that fork. Open the file in Notepad and you can read the whole history.

🎯 The Golden Rule

A BTH game file must be completely self-contained. One file. No external dependencies required to play. The BTH block lives inside an HTML comment at the very top of the file, before the <html> tag.

The BTH Block v1.0

Place this comment block at the very top of your HTML file:

<!--
BTH-TITLE:     Space Invaders on the Moon
BTH-VERSION:   1.0
BTH-HUMAN:     Roger
BTH-AI:        Claude (Anthropic) — March 2026
BTH-DATE:      2026-03-08
BTH-PARENT:    sha256:a3f8c2d1...
BTH-WHAT:      Added moon gravity, crater terrain, oxygen timer
BTH-HASH:      sha256:b7d2e9f4...
BTH-STATUS:    stable
BTH-TAGS:      physics, space, procedural, family
-->

Field Reference

FieldRequired?Description
BTH-TITLERequiredThe game's display name
BTH-VERSIONRequiredBTH Standard version. Use 1.0
BTH-HUMANRequiredThe human creator's name or pseudonym. Multiple names comma-separated.
BTH-AIOptionalAI assistant used, with provider and date. Omit if no AI was used.
BTH-DATERequiredCreation or last-modified date (YYYY-MM-DD)
BTH-PARENTOptionalSHA-256 hash of the parent game. Omit for original games.
BTH-WHATOptionalOne line: what changed in this fork vs the parent.
BTH-HASHOptionalSHA-256 hash of this file's content. For verification.
BTH-STATUSOptionalstable · under-development · needs-help
BTH-TAGSOptionalComma-separated community tags

Forking — The Lineage Chain

When you fork a game, copy the entire existing BTH block and add your new block above it. Your block goes first. The original stays at the bottom. Every generation is preserved.

<!-- GENERATION 3 (fork of fork) -->
BTH-TITLE:     Moon Invaders: Multiplayer
BTH-HUMAN:     Sarah
BTH-AI:        Claude (Anthropic) — April 2026
BTH-DATE:      2026-04-12
BTH-PARENT:    sha256:b7d2e9f4...
BTH-WHAT:      Added 2-player mode, shared oxygen mechanic

<!-- GENERATION 2 -->
BTH-TITLE:     Space Invaders on the Moon
BTH-HUMAN:     Roger
BTH-AI:        Claude (Anthropic) — March 2026
BTH-PARENT:    sha256:a3f8c2d1...

<!-- GENERATION 1 (original) -->
BTH-TITLE:     Space Invaders
BTH-HUMAN:     Dave
BTH-AI:        DeepSeek — February 2026
BTH-HASH:      sha256:a3f8c2d1...

Dave's name appears in Generation 3. Always. Automatically. Forever. This is the cooperative economics of forking — every fork makes the original more valuable, not less.

The BTH_AI Interface

Games that want to support AI players and the spectator lobby should expose window.BTH_AI with four methods:

window.BTH_AI = {
  getGameState()   // → JSON snapshot of current state
  getValidMoves()  // → array of legal move objects
  applyMove(move)  // → execute a move, return {ok, error}
  isGameOver()     // → {over, winner, reason}
}

Games exposing this interface become AI-spectator-ready — Claude can play them, humans can watch, and the BTH platform can run tournaments automatically.

Status Values

StatusBadgeMeaning
stable🟢 GreenWorks reliably. Played by at least one person other than the creator.
under-development🟡 AmberWork in progress. May have bugs. Play at your own adventure.
needs-help🔵 BlueCreator has asked for collaboration. First-class feature, not a mark of failure.

Community Tags

Tags are community-defined. These are the seed tags to start with — more will emerge:

physics · sandbox · strategy · puzzle · creative · turn-based · cooperative · procedural · dice · space · building · multiplayer · ai-ready · deep · quick-play · family · learn

📋 The BTH Pledge

By publishing a game on BTH you agree to: keep the source visible, preserve the lineage block in all forks, credit all human and AI contributors honestly, and follow the BTH content policy — games for all ages, no harmful content.