I built a dead-link resurrector spec-first with Kiro — here's what the spec caught that vibe coding wouldn't
Written as part of the Kiroween 2026 hackathon (Resurrection category). 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
Written as part of the Kiroween 2026 hackathon (Resurrection category).
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 REVENANT: 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.
Try it: https://revenant-kiroween.vercel.app — start with geocities.com, posterous.com, or formspring.me. Three famous ghosts, all verified dead with snapshots waiting.
The spec came first
The Kiro way is that the spec is the unit of work, so before any code I wrote a full spec in .kiro/specs/revenant/: eight requirements in EARS notation (WHEN … THE SYSTEM SHALL …), 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 (.kiro/steering/product.md, tech.md, structure.md) carry the product context, the zero-dependency constraint, and the safety rules — validate before you fetch; the reader endpoint only ever fetches web.archive.org. 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.
Two decisions the design doc forced
CDX vs. availability anchors. 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.
The 10-second budget. 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.
What property-based testing caught
The property-style suite (tests/property.test.js, 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. npm test: 19/19 green.
The honest limitation
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 .kiro/ 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.
What changed in how I build
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.
REVENANT is free forever: no account, no API key, no fee. Source (MIT): https://github.com/darendrarp/revenant-kiroween · Demo: https://youtu.be/kvJYH711d0c
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.