Skip to content
open.blog documentation
open.blog

ADR 0336: A recipe package is a new folder of the page's recipe, the text to paste, the cover and a static guide, and nothing is sent

  • Status: Accepted
  • Date: 2026-10-29
  • Parent epic: #385
  • Story: #398 (tasks DIST5.2.2 and DIST5.2.3)

Context#

With every submission made by hand (ADR 0335), what helps the author is a guided export: the images, ingredients, description and canonical address ready to paste or upload, and the steps for each chosen directory. It must not invent or alter a fact, must keep the canonical post and its author credited, and must say clearly when something cannot be done.

Decision#

  • openblog export <slug> --format recipe-package [--directory a,b] [--out <new folder>] [--write | --json]. Like the other portable exports: published posts only, a dry run by default, --json for a versioned plan, --write needs --out. --directory is accepted only with this format. An unknown or unavailable directory, a post that is not a recipe, a recipe check error or a blocked directory refuses the write and leaves nothing behind. The folder must not exist; nothing is ever overwritten.
  • No directory chosen is a state, not an error (as ADR 0330): the package holds the recipe files and a guide saying the recipe stays on the author's site, with noDirectory: true in the plan.
  • The files, all built from the published post:
    • recipe.json: exactly the schema.org Recipe the page carries, with its context (ADR 0333).
    • title.txt, description.txt, ingredients.txt (one line each, as written), steps.txt (numbered), link.txt (the canonical address).
    • credit.txt: "" by <site author>, first published at <canonical address>, and "Adapted from <address>" when <code>adaptedFrom</code> is a web address; without a site author the name is left out, not guessed.</li> <li><code>image.<ext></code>: the cover, byte for byte, only when it is a <code>jpg</code>, <code>jpeg</code>, <code>png</code>, <code>gif</code>, <code>webp</code> or <code>avif</code> file of at most 20 MB inside the site's static folder, reached by plain path segments, not a symlink, and not in private project state (<code>.openblog</code>, comparison files). Anything else is linked by its address and never read or fetched; its size is read from the header for the checks, never decoded.</li> <li><code>package.json</code>: version <code>1</code>, <code>sent: false</code>, <code>offline: true</code>, <code>ready</code>, the recipe problems, each directory's plan (status, findings, capabilities, conditions, steps, sources, policy version) and each file's name, purpose and size.</li> <li><code>index.html</code>: a static guide with no script, form or external resource, using the distribution preview's tokens and dark scheme (ADR 0330): <code>lang</code>, one <code>h1</code>, a "Prepared, not sent" notice in words, each directory as a section labelled by its heading with its status, findings, conditions (each marked as read in its documentation or not verified) and numbered steps, and every text file in a focusable, labelled, wrapping <code>pre</code> of escaped text.</li> </ul> </li> <li><strong>The publication boundary scan</strong> (ADR 0125) runs over every text file, and the private-store sentinel test covers every file of a package and its guide.</li> </ul> <h2 id="considered-options">Considered options<a class="ob-heading-anchor" href="#considered-options" aria-label="Link to this section">#</a></h2> <ul> <li><strong>Download a remote cover into the package.</strong> Rejected: an export makes no network request.</li> <li><strong>Resize or crop the cover for a directory.</strong> Rejected: it would alter the author's photo; the checks say what the directory recommends instead.</li> <li><strong>One combined text file.</strong> Rejected: directories' forms have separate fields, and one file per field pastes without editing.</li> </ul> <h2 id="consequences">Consequences<a class="ob-heading-anchor" href="#consequences" aria-label="Link to this section">#</a></h2> <ul> <li>An author can prepare for any chosen directory from the terminal, review the guide in a browser, and submit by hand, with the credit and canonical link alongside.</li> <li>Static builds, feeds, <code>recipe-json-ld</code> and the other exports are unchanged; the package exists only when asked for.</li> </ul> </div></ob-code> <p class="ob-meta ob-docs-source"><a href="https://github.com/journey-to-code-org/open.blog/blob/main/docs/adr/0336-a-recipe-package-is-a-new-folder-of-the-pages-recipe-the-text-to-paste-the-cover-and-a-static-guide-and-nothing-is-sent.md">View this page's source</a></p> <nav class="ob-docs-pager" aria-label="Previous and next"> <a class="ob-docs-previous" href="/open.blog/docs/adr/0335-recipe-directories-are-a-closed-dated-list-whose-conditions-say-where-they-were-read-and-every-submission-is-by-hand/" rel="prev"><span class="ob-meta">Previous</span> ADR 0335: Recipe directories are a closed, dated list whose conditions say where they were read, and every submission is by hand</a> <a class="ob-docs-next" href="/open.blog/docs/adr/0337-hacker-news-and-reddit-are-community-destinations-whose-manifests-say-the-author-submits-by-hand/" rel="next"><span class="ob-meta">Next</span> ADR 0337: Hacker News and Reddit are community destinations whose manifests say the author submits by hand</a> </nav> </article> </div> </main> <footer class="ob-footer"> <div class="ob-footer-inner"> <p>open.blog is open source. These pages are built with open.blog from the repository's docs/ folder.</p> <nav aria-label="Elsewhere"><ul class="ob-footer-links"> <li><a href="https://github.com/journey-to-code-org/open.blog" rel="me noopener">GitHub</a></li> </ul></nav> <p class="ob-powered">Powered by <a href="https://github.com/journey-to-code-org/open.blog" rel="noopener">open.blog</a></p> </div> </footer> <ob-back-to-top></ob-back-to-top> </body> </html>