<?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: Darendra</title>
    <description>The latest articles on DEV Community by Darendra (@darendrarp).</description>
    <link>https://dev.to/darendrarp</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%2F4282061%2F4bda9f73-277c-4e4a-9b08-67b8ec05ff68.png</url>
      <title>DEV Community: Darendra</title>
      <link>https://dev.to/darendrarp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/darendrarp"/>
    <language>en</language>
    <item>
      <title>I built a dead-link resurrector spec-first with Kiro — here's what the spec caught that vibe coding wouldn't</title>
      <dc:creator>Darendra</dc:creator>
      <pubDate>Fri, 04 Dec 2026 06:52:57 +0000</pubDate>
      <link>https://dev.to/darendrarp/i-built-a-dead-link-resurrector-spec-first-with-kiro-heres-what-the-spec-caught-that-vibe-coding-5gpk</link>
      <guid>https://dev.to/darendrarp/i-built-a-dead-link-resurrector-spec-first-with-kiro-heres-what-the-spec-caught-that-vibe-coding-5gpk</guid>
      <description>&lt;p&gt;&lt;em&gt;Written as part of the Kiroween 2026 hackathon (Resurrection category).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;38% of the web pages that existed in 2013 are already gone. Link rot eats citations, bookmarks, and personal history a little every day — and when a link dies, most of us just hit a dead end and move on. For Kiroween's Resurrection category I built &lt;strong&gt;REVENANT&lt;/strong&gt;: paste a dead URL, and it checks whether the page is alive, digs up its last good snapshot from the Internet Archive's Wayback Machine, and brings it back — with a tombstone showing its born/died years, a year-by-year life timeline, an embedded snapshot viewer, a clean Reader view, a Graveyard Audit that scans any page for dead outbound links, and a Bulk Check for up to 25 URLs at once.&lt;/p&gt;

&lt;p&gt;Try it: &lt;a href="https://revenant-kiroween.vercel.app" rel="noopener noreferrer"&gt;https://revenant-kiroween.vercel.app&lt;/a&gt; — start with &lt;code&gt;geocities.com&lt;/code&gt;, &lt;code&gt;posterous.com&lt;/code&gt;, or &lt;code&gt;formspring.me&lt;/code&gt;. Three famous ghosts, all verified dead with snapshots waiting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spec came first
&lt;/h2&gt;

&lt;p&gt;The Kiro way is that the spec is the unit of work, so before any code I wrote a full spec in &lt;code&gt;.kiro/specs/revenant/&lt;/code&gt;: eight requirements in EARS notation (&lt;code&gt;WHEN … THE SYSTEM SHALL …&lt;/code&gt;), a design doc with architecture and a decision log, and a 15-task implementation plan where each task cites the requirements it implements. Steering docs (&lt;code&gt;.kiro/steering/product.md&lt;/code&gt;, &lt;code&gt;tech.md&lt;/code&gt;, &lt;code&gt;structure.md&lt;/code&gt;) carry the product context, the zero-dependency constraint, and the safety rules — validate before you fetch; the reader endpoint only ever fetches &lt;code&gt;web.archive.org&lt;/code&gt;. Agent hooks automate the boring parts: run the test suite when API or test files save, syntax-check saved frontend JS, prompt a spec update after each task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two decisions the design doc forced
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CDX vs. availability anchors.&lt;/strong&gt; The first design built the life timeline from the Wayback CDX API. In practice CDX proved unreliable, and the design doc's decision log is where the replacement lives: sampling the availability API at anchor years instead. Because the reasoning was written down, the switch was a documented decision, not a panicked rewrite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The 10-second budget.&lt;/strong&gt; Vercel's serverless limit meant the three resurrect lookups (alive check, snapshot, timeline) could not run in sequence. The design doc recorded the fix — run them in parallel and return partial results over hanging — before the code ever hit the wall in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What property-based testing caught
&lt;/h2&gt;

&lt;p&gt;The property-style suite (&lt;code&gt;tests/property.test.js&lt;/code&gt;, seeded PRNG, 1,000+ generated cases) caught two real bugs a hand-written unit test would likely have missed: a link-extraction regex that treated a stray quote as an href, and an IPv6-bracket gap in the SSRF guard. Both are fixed and covered by unit tests. &lt;code&gt;npm test&lt;/code&gt;: 19/19 green.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest limitation
&lt;/h2&gt;

&lt;p&gt;No authenticated Kiro agent session ran during this build — Kiro sign-in needs an interactive device-flow step my headless build VM cannot complete (the menu renders, but no device code is printed). I did not fake it: the &lt;code&gt;.kiro/&lt;/code&gt; artifacts are genuine spec-first artifacts authored to Kiro's documented formats, Kiro CLI 3.5.0 is installed and verified on the build machine, and the repo is ready for a Kiro session to continue exactly where the spec leaves off. That honesty is also a product rule: if the archive has no snapshot, REVENANT says so instead of inventing one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in how I build
&lt;/h2&gt;

&lt;p&gt;Plan in writing, build to the plan, let hooks and steering carry the context. The spec outlives the session — and when reality disagrees with the plan, the decision log is where the fix belongs, not in my head.&lt;/p&gt;

&lt;p&gt;REVENANT is free forever: no account, no API key, no fee. Source (MIT): &lt;a href="https://github.com/darendrarp/revenant-kiroween" rel="noopener noreferrer"&gt;https://github.com/darendrarp/revenant-kiroween&lt;/a&gt; · Demo: &lt;a href="https://youtu.be/kvJYH711d0c" rel="noopener noreferrer"&gt;https://youtu.be/kvJYH711d0c&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
