{
  "name": "Hearth Kit",
  "version": "0.1.0",
  "page": "https://pointcast.xyz/baby-bonfire/hearth-kit/",
  "module": "https://pointcast.xyz/baby-bonfire/hearth-kit/hearth-fire.js",
  "moduleBytes": 15297,
  "tag": "hearth-fire",
  "summary": "A custom element that shows the Prayer Fire hearth film and plays its fire, bowl and gong sounds after a tap. No dependencies.",
  "snippet": [
    "<script type=\"module\" src=\"https://pointcast.xyz/baby-bonfire/hearth-kit/hearth-fire.js\"></script>",
    "<hearth-fire></hearth-fire>"
  ],
  "attributes": [
    {
      "name": "media",
      "default": "/baby-bonfire/prayer/media/",
      "what": "Base URL of the folder that holds the five media files."
    },
    {
      "name": "sound",
      "default": "on",
      "what": "off hides the built-in Sound button. The methods still work."
    },
    {
      "name": "fit",
      "default": "cover",
      "what": "cover or contain: how the film fills the box."
    },
    {
      "name": "volume",
      "default": "0.8",
      "what": "0 to 1."
    }
  ],
  "cssProperties": [
    {
      "name": "--hearth-radius",
      "default": "0",
      "what": "Corner radius of the box."
    },
    {
      "name": "--hearth-glow",
      "default": "0 0 48px rgba(255,154,74,.16)",
      "what": "A box-shadow around the box."
    }
  ],
  "parts": [
    "film",
    "sound"
  ],
  "methods": [
    {
      "name": "light()",
      "returns": "Promise<boolean>",
      "what": "Starts the fire bed with a soft fade in. Call it from a tap. Resolves true when sound is playing."
    },
    {
      "name": "quiet()",
      "returns": "undefined",
      "what": "Fades the sound out and stops it."
    },
    {
      "name": "ring(name)",
      "returns": "Promise<boolean>",
      "what": "Strikes 'bowl' or 'gong'. Call it from a tap. Resolves true when it sounded."
    },
    {
      "name": "lit",
      "returns": "boolean",
      "what": "A getter: true while the fire bed is on."
    }
  ],
  "events": [
    {
      "name": "hearth-lit",
      "what": "The fire bed was started."
    },
    {
      "name": "hearth-quiet",
      "what": "The fire bed was stopped."
    }
  ],
  "media": [
    {
      "file": "hearth-loop.mp4",
      "url": "https://pointcast.xyz/baby-bonfire/prayer/media/hearth-loop.mp4",
      "bytes": 532681,
      "what": "The film, 12 seconds, looped, no sound track."
    },
    {
      "file": "hearth-poster.jpg",
      "url": "https://pointcast.xyz/baby-bonfire/prayer/media/hearth-poster.jpg",
      "bytes": 41681,
      "what": "The still picture, the first frame of the film."
    },
    {
      "file": "fire.mp3",
      "url": "https://pointcast.xyz/baby-bonfire/prayer/media/fire.mp3",
      "bytes": 351495,
      "what": "The fire bed, 25 seconds, looped."
    },
    {
      "file": "bowl.mp3",
      "url": "https://pointcast.xyz/baby-bonfire/prayer/media/bowl.mp3",
      "bytes": 198957,
      "what": "One struck bowl."
    },
    {
      "file": "gong.mp3",
      "url": "https://pointcast.xyz/baby-bonfire/prayer/media/gong.mp3",
      "bytes": 239661,
      "what": "One gong."
    }
  ],
  "sound": "Never starts by itself. Only the built-in Sound button or a host page's own tap handler starts it. If a sound file cannot be loaded or decoded, a sound generated in the browser plays instead.",
  "motion": "With prefers-reduced-motion the film is never loaded; the still picture shows.",
  "crossOrigin": "pointcast.xyz does not send a cross-origin header for these files yet. On another site, copy hearth-fire.js and the media files to that site and set media to their folder.",
  "licence": "CC-BY-4.0",
  "licenceNote": "https://pointcast.xyz/baby-bonfire/LICENSE.txt",
  "credit": "Hearth Kit, Baby Bonfire, PointCast (https://pointcast.xyz/baby-bonfire/hearth-kit/), CC BY 4.0",
  "made": "The film and the sounds were generated with AI tools for Prayer Fire on 2026-11-11. The element and this page were written by Claude on 2026-11-13.",
  "tested": "Headless Chrome on 2026-11-13 at phone and desktop sizes. Not yet run on a phone or heard by a person."
}
