<?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: Andi Pangeran</title>
    <description>The latest articles on DEV Community by Andi Pangeran (@andipangeranm142).</description>
    <link>https://dev.to/andipangeranm142</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%2F4276870%2Fb8a77698-c9e3-47c2-b0aa-0372f1aa3456.jpg</url>
      <title>DEV Community: Andi Pangeran</title>
      <link>https://dev.to/andipangeranm142</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andipangeranm142"/>
    <language>en</language>
    <item>
      <title>I Built an App That Brings Dead Links Back to Life</title>
      <dc:creator>Andi Pangeran</dc:creator>
      <pubDate>Tue, 01 Dec 2026 16:37:14 +0000</pubDate>
      <link>https://dev.to/andipangeranm142/i-built-an-app-that-brings-dead-links-back-to-life-3lni</link>
      <guid>https://dev.to/andipangeranm142/i-built-an-app-that-brings-dead-links-back-to-life-3lni</guid>
      <description>&lt;p&gt;Every link dies. I went back to an old tutorial I had bookmarked, clicked it, and got a 404. The site, the domain, the content, all gone.&lt;/p&gt;

&lt;p&gt;That is link rot, and it is everywhere. Old posts, docs, whole communities like Vine and GeoCities. But most of those pages are not really gone: the Wayback Machine has archived the web since 1996, and it holds snapshots of pages that exist nowhere else.&lt;/p&gt;

&lt;p&gt;So I built Séance, an app that raises dead links. Paste a URL that returns 404, or whose domain is long gone, and it finds the page in the Wayback Machine, rebuilds a clean readable version, and lets you read it, browse its history, and save it. I built it for Kiroween 2026, the Kiro hackathon on Devpost, in the Resurrection category. This post is part of that entry.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Séance actually does
&lt;/h2&gt;

&lt;p&gt;Paste a dead URL and hit Summon. Séance asks the Wayback CDX API for every snapshot, shows a timeline grouped by year and month, and rebuilds any snapshot you pick into a clean reader view, with the title, the text, and images pointed at their archived copies.&lt;/p&gt;

&lt;p&gt;You can export the page as Markdown or standalone HTML, and every page you raise is kept in a local Graveyard on your own device. No account, no server side storage. An optional AI summary is available too, with your own OpenRouter key that stays in your browser, but the core flow needs no key at all.&lt;/p&gt;

&lt;p&gt;My favorite test case is Vine. The site is dead, but the archive holds 171 snapshots of vine.co. Pick the one from 1 November 2026 and you can read Vine's farewell message again: "Dear Vine Community, thank you for all the inspiration, laughs, and loops. We have now placed Vine in an archived state." GeoCities has 111 snapshots, Orkut 84. Each one was supposed to be gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I built it: spec first, then code
&lt;/h2&gt;

&lt;p&gt;I built Séance with Kiro CLI, spec first. Before a single component existed, I wrote the spec: requirements, design, and a task list of 18 small tasks in four waves, foundations first, then the data layer, the UI, and polish. The whole &lt;code&gt;.kiro&lt;/code&gt; folder lives in the repo, 11 files: the spec, four steering files, two hooks, the MCP config, and a reviewer agent.&lt;/p&gt;

&lt;p&gt;The steering files mattered most. I work from my phone, no laptop, so the spec was the shared memory between me and the agent doing the desktop work. When the spec was clear, the agent could finish a whole task unwatched. When it was vague, the work came back wrong. Writing the spec well was the real work.&lt;/p&gt;

&lt;p&gt;Hooks kept the quality bar honest: typecheck and lint on every save, the full test suite after every spec task. That sounds like overhead until it catches a regression five minutes after you introduced it.&lt;/p&gt;

&lt;p&gt;I also gave Kiro its own tools: a small MCP server with two Wayback tools, &lt;code&gt;wayback_closest&lt;/code&gt; and &lt;code&gt;wayback_timeline&lt;/code&gt;. The agent used them to check real archive data instead of guessing, which is why the timeline code handled real CDX rows correctly the first time.&lt;/p&gt;

&lt;p&gt;Testing is where I spent the most care: Vitest plus fast-check, mostly property based tests for URL normalization, timestamps, and CDX row parsing. My first generator produced hostnames the URL parser correctly rejected, so tests failed on inputs that were never valid. Once the generator only produced valid URLs, the tests went green and stayed green. Today the suite is 333 tests across 15 files, all passing, with typecheck, lint, and the build clean.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part was not the app. It was the browser.
&lt;/h2&gt;

&lt;p&gt;The biggest surprise had nothing to do with my code. It was CORS. The Wayback CDX API and raw snapshot endpoints send no CORS headers at all, so a browser page cannot call them. The only open endpoint is the Availability API, which can only answer "is there a snapshot near this date", not "give me the whole history".&lt;/p&gt;

&lt;p&gt;That forced the architecture: a client side app on GitHub Pages, plus one small Cloudflare Worker, about a hundred lines, as a proxy. It only forwards GET requests to web.archive.org and archive.org, adds the CORS header, and caps responses at 5 MB. No key, no account needed.&lt;/p&gt;

&lt;p&gt;I also built the honest fallback. If the proxy is down, the app asks the Availability API directly from the browser and shows the closest snapshot in a sandboxed frame, with a banner explaining that the timeline, reader view, and export need the proxy. A degraded app that tells you the truth beats a blank page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two bugs that taught me something
&lt;/h2&gt;

&lt;p&gt;The first bug showed up after the demo video was recorded. The AI summary failed with a 404 from OpenRouter, even with a valid key: the model I had hardcoded, Google's Gemini 2.0 Flash experimental, had been retired. Free models come and go, and pinning one by name is a bet it will still exist next month. I switched to Baidu's Ernie 5.5 Flash preview, verified the summary live, and re-recorded the shot. Never hardcode a free tier model without a fallback plan.&lt;/p&gt;

&lt;p&gt;The second bug was quieter. Clicking a timeline entry blanked the whole page: the handler updated the snapshot but never told the reader view to render it. No error, just white. I found it by clicking through the app myself. Tests prove the code does what the tests say, not that the app works.&lt;/p&gt;

&lt;p&gt;A third constraint shaped everything: credits. I built on Kiro's free tier, 50 credits a month, with the cheapest model for mechanical work. Small tasks, clear specs, no wasted runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like now
&lt;/h2&gt;

&lt;p&gt;The demo is live at &lt;a href="https://andipangeranm142.github.io/seance/" rel="noopener noreferrer"&gt;https://andipangeranm142.github.io/seance/&lt;/a&gt;, the code is public at &lt;a href="https://github.com/andiPangeranm142/seance" rel="noopener noreferrer"&gt;https://github.com/andiPangeranm142/seance&lt;/a&gt;, and the entry is submitted to Kiroween 2026 at &lt;a href="https://devpost.com/software/seance-10ixek" rel="noopener noreferrer"&gt;https://devpost.com/software/seance-10ixek&lt;/a&gt;. The demo video runs 1 minute 47 seconds: &lt;a href="https://www.youtube.com/watch?v=Ex5qgn20SyQ" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=Ex5qgn20SyQ&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The numbers I can stand behind: 333 tests passing, a live demo that resurrects Vine, GeoCities, and Orkut on demand, a timeline back to 1996 for the oldest GeoCities pages, and an AI summary that actually runs. What I will not claim: anything about winning. The judges decide that in January.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;First, the spec is the product. A clear requirements file and small tasks beat a clever prompt every time. If I could not explain a feature in two sentences, I was not ready to build it.&lt;/p&gt;

&lt;p&gt;Second, verify everything against the real thing: the live demo, the live archive, the real test output. Twice a summary told me something was done that was not done. The live page does not lie.&lt;/p&gt;

&lt;p&gt;Third, build the fallback before you need it. The proxy, the retired model, the blank timeline, the credit limit. Each was a bad day that would have been worse without a plan B.&lt;/p&gt;

&lt;p&gt;Dead links do not have to stay dead. The archive remembers, and now a small app knows how to ask it. If you have a dead link of your own, go raise it, and tell me what came back.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>kiroween</category>
      <category>kiro</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
