Small legacy projects (jQuery plugins, plain-script widgets) still run real work, but their stacks are unmaintained, untyped, and untested. A plain vibe-coded rewrite has no checkable definition of 'same behavior'.
Dead Stack Resurrector is a pipeline with a checkable middle step: legacy code in, a modernization spec out, a resurrected TypeScript/React app out, and a generated test suite that decides PASS/FAIL.
The shipped sample is a small jQuery FAQ accordion plugin, written new for this project. A static analyzer reads the legacy source without executing it and generates a modernization spec: options, elements, behaviors, and acceptance criteria. The resurrection engine produces a typed React component (FaqAccordion) implementing the same behavior: click a question to open it, only one stays open, click the open one to close it, no jQuery. A before/after diff viewer maps every legacy line to its replacement or marks it removed, so nothing is hidden. A one-click test panel runs the spec's acceptance criteria against the shown sources in the browser and reports PASS/FAIL per criterion; the full Vitest suite (43 tests) covers the same criteria with behavior tests.
How Kiro was used: the workflow lives in the repo under .kiro and is auditable there. Specs: .kiro/specs/dead-stack-resurrector/ (requirements, design, tasks) and the generated .kiro/specs/legacy-faq-accordion/modernization-spec.md. Hooks: .kiro/hooks/test-and-lint.json plus a pre-commit hook that runs tests and lint on commit. Steering: .kiro/steering/ holds the product and technical constraints. Honest note: no logged-in Kiro agent session has run in this environment; the .kiro files were authored as repo files, and the Kiro CLI is installed with login still pending. The workflow is spec, hooks, and steering, auditable under .kiro, and nothing stronger is claimed.
Built new inside the Kiroween 2026 submission window (2026-10-30 to 2026-12-04). Demo data is fictional. The app is fully static: no backend, no network calls, no accounts, so judges need nothing but the demo URL.
Built With
- kiro
- react
- typescript
- vite
- vitest
