A recipe is a document. The page is written from it.
Hearth stores each recipe as structured data, writes the PubMark recipe the site reads from it, and keeps every revision. Nobody edits the PubMark by hand, and nothing the importer did not understand is dropped.

Facts and sections
A document is a title, a description, facts, and an ordered stack of sections. Sections can be added, removed, and moved.
| Facts | Servings, the times, the course, the technique, the cuisine, and what the profile adds, such as the cooker and its temperature. Amounts are strings, exactly as PubMark takes them, never floating-point numbers. |
|---|---|
| Sections | Ingredients, tools, method, notes, a headnote, history, commentary, and fields with a name and a value of your own. |
| Marks | A timer, a temperature, or a quantity is a character range inside a step or a note. It becomes an inline annotation in the PubMark and a chip in the app. |
| Origin | Each line and step is the author's or the editor's. The editor's carry a Filled in chip in the app and on the site. |
| Site data | Anything the site keeps for itself, such as the cooker station or whether a recipe is featured, travels with the document untouched. |
A book is a profile and a site
The core of Hearth knows no recipes. A book ties one profile to one website, and the profile, which is data, says what an entry can contain.
- The recipes book
- A dish profile: servings, the times, course, technique, cuisine, the cooker and its heat, a target, and a photograph. The recipes site builds from it.
- The cocktails book
- A drink profile: servings, the glass, technique, service, and family. The same library, recipe, and editor screens draw it with no change, because they are drawn from the profile. It publishes to cocktails.charlessieg.com the way the recipes book publishes to its site: the same ten stages, with scaled amounts for one to four drinks, a 28 oz shaker, and a half gallon.
- Nothing branches on kind
- No screen and no service asks whether it is holding a recipe or a drink. The fact controls, the table columns, the filter chips, and the New button's label all come from the profile.
Revisions and removal
- Every save is a new revision. Nothing is overwritten, and the API serves the list and every revision.
- A save names the revision it started from. A stale one is refused with both versions, never merged silently.
- Remove keeps the row, the revisions, and the photograph. Restore undoes it.
- Unknown data survives: whatever the importer finds and has no slot for is carried and written back.
The round trip
Hearth writes the PubMark, so a wrong writer would damage a live site. One test guards it.
Import
Each recipe the site already has becomes a Hearth document.
Write
The document is written out as a PubMark recipe, the same way every time.
Compile
The PubMark compiler turns it into the site's compiled recipe.
Compare
The result must equal the site's own compiled file, with its provenance removed.
The test runs before any change to the importer or the writer ships. The pre-commit hook runs a smaller version through the compiler on every such change.
Questions about this tool?
Write to Renkara Media Group and a person will answer.