<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rasora</title>
    <description>The latest articles on DEV Community by Rasora (@varchun).</description>
    <link>https://dev.to/varchun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4094563%2F2c598d19-51b5-48c5-a36e-1a0ac074e7b9.png</url>
      <title>DEV Community: Rasora</title>
      <link>https://dev.to/varchun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/varchun"/>
    <language>en</language>
    <item>
      <title>Importing a recipe from anywhere means never trusting the source</title>
      <dc:creator>Rasora</dc:creator>
      <pubDate>Tue, 25 Aug 2026 17:30:08 +0000</pubDate>
      <link>https://dev.to/varchun/importing-a-recipe-from-anywhere-means-never-trusting-the-source-1189</link>
      <guid>https://dev.to/varchun/importing-a-recipe-from-anywhere-means-never-trusting-the-source-1189</guid>
      <description>&lt;p&gt;"Paste any recipe link and we'll import it" sounds simple until you actually have to support TikTok, Instagram, YouTube, Pinterest, a random food blog, a screenshot, and a photo of a handwritten recipe card — all through one pipeline, without the output quality collapsing to the lowest common denominator.&lt;/p&gt;

&lt;p&gt;Here's the actual shape of the problem: every one of those sources hands you wildly different raw material. A TikTok caption might have the whole recipe crammed into hashtags. A food blog buries the actual recipe under 800 words of life story before the ingredient list. A screenshot has no text at all until OCR runs. A YouTube video might only have the recipe in spoken audio, never written anywhere.&lt;/p&gt;

&lt;p&gt;We built this as a two-stage pipeline instead of one big "throw it all at an LLM and hope" function: a &lt;strong&gt;Smart Link Router&lt;/strong&gt; that identifies the source type and picks the right extraction strategy, then a shared &lt;strong&gt;AI parser&lt;/strong&gt; that only ever sees a normalized &lt;code&gt;ImportDocument&lt;/code&gt; — the same shape regardless of whether it came from a blog's structured schema.org markup or three minutes of transcribed video audio. The router's job is entirely about getting messy, source-specific input into one consistent shape. The parser's job is entirely about turning that consistent shape into a structured recipe. Neither has to know about the other's problems.&lt;/p&gt;

&lt;p&gt;This split matters because it means adding an 8th source doesn't mean rewriting the parser, and improving the parser doesn't mean re-testing every source's extraction logic. It's the same reason you'd split a compiler into a lexer and a parser instead of one function that goes straight from raw text to an AST — different failure modes deserve different, isolated code.&lt;/p&gt;

&lt;p&gt;The harder discipline is what happens when extraction comes back incomplete or ambiguous. It would be easy to have the AI parser fill gaps confidently — infer a missing quantity, guess a step that got cut off in a caption. We don't let it. The same no-imputation principle that governs our nutrition engine governs import: if the source didn't actually say it, the imported recipe doesn't claim to know it. A user reviewing an imported recipe should see an honest reflection of what was actually extractable, not a confident-looking recipe that's quietly hallucinated in the gaps.&lt;/p&gt;

&lt;p&gt;That's the real engineering tradeoff behind "paste any link, we'll import it": it's not one hard problem, it's eight source-specific extraction problems and one shared honesty constraint, and treating it as anything simpler is how you end up with an import feature that looks impressive in a demo and falls apart on real, messy internet content.&lt;/p&gt;

&lt;p&gt;I'm building Rasora, an AI recipe app that imports from TikTok, Instagram, YouTube, and more —&lt;br&gt;
check it out at myrasora.com.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>api</category>
      <category>ai</category>
      <category>buildinpublic</category>
    </item>
  </channel>
</rss>
