Menu

1 / 4

I froze my hypothesis before I touched the data. The model scored 0.89, then told me picocolors was dying.

DEV Community: opensource·Abeera Lodhi·15 days ago
#dtLIvZ9G
#devtoopensource#devto#dev#packages#package
Reading 0:00
15s threshold

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine

picocolors is a tiny library that colours terminal output. It sits in the dependency tree of an enormous slice of the JavaScript ecosystem, and as far as I can tell there is nothing wrong with it.

My model gave it a 0.900 probability of having gone quiet.

The model was right, in the narrow sense I had defined. And that is the most useful thing this project taught me, so I'm going to spend most of this post on why.

What I Built

Revenant reads a package-lock.json and, for every npm dependency in it, estimates the probability that the package has gone quiet : published no new version for twelve months.

Every project carries ghosts. Packages that still run in production, still resolve on every install, and whose last release was years ago. Nobody notices until a vulnerability lands and there is nobody left to ship the fix. Tools can already tell you a package is stale.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.