Inspiration

Every JavaScript project carries dead packages: abandoned years ago, still downloaded millions of times a week, some with known security advisories that will never be fixed because nobody is left to fix them. At the time of writing, [email protected] (last release 2021) is downloaded about 16 million times a week, request (last release 2020, deprecated) about 13 million, and flatten (last release 2019) about 2.4 million. The minimist package is downloaded about 226 million times a week, and its old versions, 0.0.8 among them, carry two prototype-pollution advisories.

Tools tell you a dependency is dead. None of them do anything about it, and the usual advice ("migrate to something else") means rewriting code that works. The Resurrection category asks for dead technology brought back to life, so we took that literally: raise the package, and prove the thing that came back is the thing that died.

Who it is for: any team with an old package.json that cannot drop a dependency this sprint, and any maintainer of a large project whose transitive dependencies died years ago.

What it does

Paste a package.json or a GitHub repository URL. Revenant checks every dependency against the npm registry, OSV, deps.dev and GitHub, and shows the result as a graveyard: one stone per package, where every mark on a stone is a real fact (last release, deprecation, open advisories, archived repository). Only dead and dying packages get a death mark.

Then it raises the dead ones. A resurrection is a ritual in five acts — Exhume (fetch the exact tarball), Autopsy, Modernize, Trial, Rise — in which Kiro does the two steps that need judgement:

  • the coroner agent reads the dead package and writes its autopsy: the public API and its observable behaviour;
  • the necromancer agent modernises it for Node.js 22 and ports the minimal fix for each known advisory.

Neither agent is trusted. The trial runs the original and the risen package side by side in separate processes on hundreds of generated inputs and compares return values, thrown errors, and changes to built-in prototypes. Any undeclared difference is a possession and the resurrection fails. A declared difference is accepted only where an advisory proves the original vulnerable on that input, and each claimed fix is checked against the first upstream version that fixed it.

Every run is recorded. The ritual page replays the real log of a resurrection: what the coroner found, what the necromancer changed, the inputs the trial ran, the attacks it tried.

Five packages have been raised and passed the trial. Three are published on npm, usable today through an overrides entry:

The other two, [email protected] (two prototype-pollution advisories) and [email protected] (one), are risen with every advisory fixed and every attack checked against the first fixed upstream version; they are in the crypt with full trial reports and replays.

Revenant also ships an MCP server, so inside Kiro you can ask whether a dependency is dead before adding it.

Try it in a minute

  1. Open https://revenant-fawn.vercel.app, press Try request or paste your own package.json, and enter the graveyard.
  2. Read a stone: every line on it is a fact with its source (npm, OSV, deps.dev, GitHub). "Why dead" lists the rules that fired.
  3. On a risen stone, press Watch the ritual to replay the real run, act by act, with the inputs the trial ran.
  4. Open the Trial report for the numbers, then copy the overrides snippet into your own project.

How we built it

Spec first, through Kiro. Two specs hold 30 requirements in EARS form and 40 correctness properties. Each property is one fast-check test, tagged with its number, so a sentence in the design can be traced to the test that enforces it. Kiro implemented one task at a time through the headless CLI; a driver gated every run (clean tree, type check, tests, build) before the branch became a pull request. 43 pull requests, 579 tests.

Kiro is also inside the product: each resurrection is a headless kiro-cli session run by two custom agents, with steering files, hooks and MCP servers behind them. The full account is in docs/KIRO_USAGE.md in the repository.

Challenges we ran into

The agents were confidently wrong, three times, and each time the product had to change.

  1. The first record claimed no advisory applied. One did. The agent had never been given advisory data and guessed. Now the worker fetches advisories and the record must account for each.
  2. The next record said "fixed" while the attack still worked. Now every claimed fix is checked against the upstream version that fixed it.
  3. Raising [email protected] and [email protected], the fixes were correct and the trial still failed them. Prototype pollution leaves the return value unchanged and quietly alters Object.prototype, and the trial only compared return values. Now it records side effects on built-in prototypes for every call. With that, and clearer instructions for the agent's evidence, both rose on the next run.

We also ran out of Kiro's monthly allowance partway through the build, in the middle of a task. The last part of that task and one small follow-up were finished by hand from the same spec; the repository says exactly where. When the allowance came back on 1 December, Kiro raised both waiting packages and fixed the next bug (a wrong "last published" date) spec first.

Accomplishments that we're proud of

  • Five dead packages raised, three back on npm, each with evidence: the inputs run, the attacks tried, and a replay of the run.
  • The trial has refused our own agents' work repeatedly, and it was right every time we checked by hand.
  • A property test found a real bug that the examples missed, and the fix began as a new requirement, not a loosened test.

What we learned

An agent's claim about its own work is a hypothesis. The useful product is the part that tests it. Specs made that possible: a short task prompt is enough when the acceptance criteria and properties are already on disk, and a failed property points at a sentence in the design.

What's next for Revenant

  • Publish minimist and deep-extend, then raise the next dead packages in the long tail.
  • Scan lockfiles, where most dead packages hide as transitive dependencies.
  • Observe more side effects than built-in prototypes.
  • Say plainly when a package cannot be raised, and why (for example a licence the gate does not accept).

Built With

Share this project:

Updates

Submission history