<?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: Jay M</title>
    <description>The latest articles on DEV Community by Jay M (@jaym9x).</description>
    <link>https://dev.to/jaym9x</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%2F4276852%2F023f9fb2-5dfd-4938-9acf-e661af76d669.jpg</url>
      <title>DEV Community: Jay M</title>
      <link>https://dev.to/jaym9x</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaym9x"/>
    <language>en</language>
    <item>
      <title>Exhumer: repairing dead links with the Wayback Machine, built with the Kiro CLI</title>
      <dc:creator>Jay M</dc:creator>
      <pubDate>Tue, 01 Dec 2026 16:16:16 +0000</pubDate>
      <link>https://dev.to/jaym9x/exhumer-repairing-dead-links-with-the-wayback-machine-built-with-the-kiro-cli-2mfc</link>
      <guid>https://dev.to/jaym9x/exhumer-repairing-dead-links-with-the-wayback-machine-built-with-the-kiro-cli-2mfc</guid>
      <description>&lt;p&gt;I wrote this post as part of the Kiroween 2026 hackathon. The project is in the Resurrection category.&lt;/p&gt;

&lt;p&gt;Open any reading list you wrote five years ago and click the links. Some now return an error. Some don't answer at all. A few quietly redirect to a page that has nothing to do with what you cited. Repairing them by hand means testing every link, then searching the Wayback Machine for a copy from the right year.&lt;/p&gt;

&lt;p&gt;Exhumer does that for a Markdown document. You paste the text, press a button, and get the same document back with the dead URLs replaced by archived copies, plus a table saying what happened to each link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;App: &lt;a href="https://exhumer.vercel.app" rel="noopener noreferrer"&gt;https://exhumer.vercel.app&lt;/a&gt;&lt;br&gt;
Code (MIT): &lt;a href="https://github.com/saintzak/exhumer" rel="noopener noreferrer"&gt;https://github.com/saintzak/exhumer&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The one idea that matters&lt;/strong&gt;: pick the snapshot by the citation's date&lt;br&gt;
Pointing a dead link at "the latest snapshot" is the lazy answer, and often the wrong one. A site might have been healthy in 2012 and a parking page by 2019. Exhumer looks for a date next to each link ("accessed 2010-08-20", "retrieved March 4, 2013"), falls back to a document date you type, and then to today. It asks the Wayback Machine for the snapshot closest to that date.&lt;/p&gt;

&lt;p&gt;This turned out to be where the bugs lived. Two examples from the build:&lt;/p&gt;

&lt;p&gt;Dates written as "March 4, 2019" were parsed as the bare year "2019", because the year-only pattern was tried first. A property-based test found it on its first run.&lt;br&gt;
With two citations on neighbouring lines, the second took the first one's date. No property flagged this one. I found it by running the finished app on a sample document and noticing that the snapshot for a link with "retrieved March 4, 2013" was from 2012. The fix is that a date belongs to the link it is closest to, and a line break ends one link's territory.&lt;br&gt;
What the interface does&lt;br&gt;
Results are drawn as a small graveyard on a canvas. A quiet stone is a live link, a cracked stone a dead one, a glowing stone a link brought back from the archive, and a barred stone a link refused for safety. The same information appears underneath as a plain table, and every stone is a real button you can reach with the arrow keys, so the graveyard is never the only way to read the result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two decisions I'd defend&lt;/strong&gt;&lt;br&gt;
Only URLs change. The rewrite replaces the URL token of each dead link and leaves every other byte of your text alone. Running the repair twice changes nothing the second time. These are properties the test suite checks with random documents, not just examples.&lt;/p&gt;

&lt;p&gt;The server never contacts private addresses. Because the app fetches whatever URLs a stranger pastes, it is an obvious server-side request forgery target. The probe refuses loopback, private and link-local addresses in every notation I could think of (decimal, hex, octal, IPv6, IPv4-mapped) and checks again at every redirect hop, since a public URL that redirects to &lt;a href="http://169.254.169.254/" rel="noopener noreferrer"&gt;http://169.254.169.254/&lt;/a&gt; is the classic bypass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How I used Kiro&lt;/strong&gt;&lt;br&gt;
Everything here was built with the Kiro CLI. I did not try the IDE, Kiro Web or Kiro Crew, so I can't compare them.&lt;/p&gt;

&lt;p&gt;Steering first. Kiro wrote three steering files from a one-page brief: product, tech and conventions. The convention that paid off was "pure functions everywhere except one route". It meant nearly all the logic could be tested without a network.&lt;br&gt;
A spec before code. The spec has 29 acceptance criteria in EARS form, a design with ten correctness properties, and 29 tasks. Giving Kiro a finite task list and a list of properties was much easier to steer than asking for features one at a time. It also cost an evening before any code existed.&lt;br&gt;
Property-based tests. Extraction, the address guard, URL normalization, snapshot choice and rewriting each have fast-check properties. Eighty-one tests pass in total.&lt;br&gt;
A loop with no shell for Kiro. I ran Kiro non-interactively with read and write access to files only, no permission to run commands. After each chunk I ran install, lint, type check and tests myself and fed the failures back into the same session. It took the project from red to green in two rounds.&lt;br&gt;
One hook. Kiro wrote a hook that runs the project's check command when a source file is saved. I only worked from the CLI, so I never saw it fire in the IDE.&lt;br&gt;
What I didn't use. No custom agents, no MCP server, no powers. The project didn't need them, and I would rather say that than invent a use.&lt;br&gt;
Partway through the interface work, Kiro reported that the monthly usage limit had been reached. The last fixes, including the date-boundary bug above, were made outside Kiro.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits&lt;/strong&gt;&lt;br&gt;
Exhumer only checks links in the document you paste. It does not archive new pages, only uses snapshots that already exist, and caps input at 512 KB and 500 links. A site that answers every old address with a generic page and status 200 looks alive to it. A dead link with no archived copy is reported as unresurrectable rather than guessed at.&lt;/p&gt;

&lt;p&gt;If you try it, I'd like to hear about links it gets wrong.&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
