{
  "id": 4947983,
  "title": "How We Built a Weather-Aware Daily Recipe Pipeline With FastAPI",
  "url": "https://urgent.news/2026/09/01/how-we-built-a-weather-aware-daily-recipe-pipeline-with-fastapi",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-01T22:05:55.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/fancyfoxrecipes/how-we-built-a-weather-aware-daily-recipe-pipeline-with-fastapi-4h2b"
  },
  "original_language": "en",
  "account": "Fancy Fox publishes one AI-generated seasonal recipe idea daily. The pipeline consists of distinct steps: gathering context, generating a recipe, validating the output, rendering static pages, and promoting the result. The key engineering challenge was determining which steps should fail, degrade gracefully, or be recreated on demand. The pipeline is structured as a state machine, ensuring that a malformed recipe stops publication, while optional promotion does not erase a valid recipe, and browser failures report issues instead of claiming success. The model output is converted into a Pydantic model before being used in templates or storage, normalizing strings and handling empty values. Optional work returns honestly by returning silently when no eligible item exists and logging promotions only when the browser action is successful. Browser state is treated as disposable, with a lifecycle that connects to a controlled browser or launches a fresh instance. Operational logs are captured using a rotating file handler, ensuring that logs persist beyond terminal scrollback. Static output benefits from a FastAPI development and orchestration surface, with the public website rendered as static HTML for stable URLs, complete metadata, and crawlable links. The service currently features over 1,500 pages, with a curated sitemap of 50 URLs. Future improvements involve connecting recipe impressions to save, return visit, or app open, then using these signals to enhance the featured set.",
  "summary": "Fancy Fox publishes one AI-assisted seasonal recipe idea each day. What began as a linear prompt eventually became a small state machine: gather context, generate a recipe, validate structured output, render static pages, and promote the result. The interesting engineering work was not the happy path. It was deciding which steps should fail the run, which should degrade gracefully, and which…",
  "key_points": [
    "Fancy Fox publishes one AI-generated seasonal recipe daily through a state machine pipeline.",
    "The pipeline includes gathering context, recipe generation, validation, rendering, and promotion."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}