Skip to content

Three Kinds of Archived, and Only One Is an Emergency

Archiving a GitHub repo changes nothing on npm. Here is what the label really means, three kinds of archived, and how to audit your own lockfile.

· · 8 min read

Updated: October 1, 2026

Dusty storeroom stacked with framed pictures leaning against the walls

What does the archived label actually switch off?

Somebody archives a repository and the whole team panics. Let's be precise about what happened, because it's much narrower than people assume.

GitHub's own docs list it plainly: issues, pull requests, code, labels, milestones, projects, wiki, releases, commits, tags, branches, reactions, code scanning alerts, comments and permissions all become read-only. You can't open an issue. You can't file a fix. What you still can do is clone it, fork it, star it, and read every line, and the maintainer can unarchive it tomorrow if they change their mind.

Here's what archiving does not touch: the registry. Nothing about a read-only GitHub repo reaches npm. The tarball sits there, npm install resolves it, your CI goes green. That gap between the social signal and the distribution channel is where most of the confusion lives. The registry also says nothing about brand-new names: a hallucinated import installs cleanly the day someone registers it.

Want the number that makes this concrete? inflight lives in a repository literally renamed inflight-DEPRECATED-DO-NOT-USE, archived, last published in October 2016, carrying a deprecation notice that says it leaks memory and you should not use it. In the week ending 2026-08-29 it was downloaded 96,277,586 times.

Rows of white archive boxes filling wooden storage shelves
Photo by Luke Caunt on Unsplash

Which of the three kinds of archived is an emergency?

Treating them as one category is how teams waste a sprint migrating off something harmless while the actual liability sits two levels down in the tree.

Archived and finished

Some code is done. That's not a failure state, it's the goal, and our whole industry is weirdly bad at admitting it. inherits shipped 2.0.4 in June 2019 and hasn't needed a release since. It pulled 201,245,475 downloads in that same week. No deprecation notice, no open security advisory, roughly forty lines of prototype wiring that does one thing correctly. once is the same story: version 1.4.0, September 2016, 157 million weekly installs.

I'll say the disagreeable part out loud. An archived dependency with zero known CVEs and a stable API is a safer bet than an actively maintained one going through its third rewrite, because the archived one cannot surprise you on a Tuesday. Churn is a risk too. We just don't put it on dashboards.

Archived and rotting

Then there's the other kind. Does the badge mean something different here? Completely. angular/angular.js is archived; the angular package still moved 857,610 copies that week. sass/node-sass is archived and deprecated with a blunt "no longer supported, please use sass", last release 9.0.0 in May 2023, still 984,347 weekly installs. These have real attack surface, real native bindings, real dependency trees underneath them, and nobody upstream who can accept a patch.

Empty industrial hall with tall windows and peeling paint, long abandoned
Photo by X F on Unsplash

Archived with a fork

The community moved and left a forwarding address. That's the cheapest case to fix and the easiest to miss. faker is the sharpest example I know: after the January 2022 sabotage the original Marak/faker.js repository is gone entirely (the GitHub API returns a flat 404 for it today), yet the old faker package, stuck at the sabotaged 6.6.6 from 2022-01-05, still pulled 2,302,100 downloads last week. The successor @faker-js/faker shipped 10.6.0 on 2026-08-14 and did 18,555,741. Millions of installs a week are still pointing at a repository that does not exist.

Is deprecated the same as archived?

Archiving is a GitHub gesture. Deprecation is a registry gesture. Same thing? Not remotely. They travel separately, and mixing them up produces bad triage.

request is deprecated on npm and its repo is not archived. It did 14,459,089 downloads last week, on a release from February 2020. har-validator, marked "no longer supported", did 14,219,320. Meanwhile moment calls itself "a legacy project in maintenance mode" on its own docs page, isn't archived at all, isn't deprecated, and pulled 36,910,362. Three different failure shapes, three different responses.

An archived dependency with zero known CVEs is a safer bet than an actively maintained one on its third rewrite. The archived one cannot surprise you on a Tuesday.

SHARE Post on X Bluesky

How do you audit your own lockfile?

Start with what's already installed, transitives included, because almost every example above arrives as somebody else's dependency rather than a line you wrote. Two cheap lookups per package settle most of it. The registry document carries the deprecated field for each version, and the GitHub REST API hands back archived and pushed_at with no scraping. A 213-line TypeScript script wraps both and reads a Yarn 4 yarn.lock, an npm package-lock.json or a pinned requirements.txt. The heart of it, trimmed: Automated update bots now add a delay too: see Dependabot's three-day cooldown.

const doc = await getJson(`https://registry.npmjs.org/${name}/${version}`);
result = { repo: toGitHub(doc?.repository), deprecated: doc?.deprecated ?? null };
// one call per unique repository, cached on disk between runs
const { stdout } = await run("gh", ["api", `repos/${repo}`, "--jq", "{archived, pushedAt: .pushed_at}"]);

Run on 2026-10-01 against a Yarn 4 monorepo lockfile with 2,205 registry packages, it resolved 2,195 to a GitHub repository, 1,064 distinct ones. Sixty-five entries (43 packages) sit in archived repositories, 17 carry an npm deprecation notice, 299 had no push in two years, and two repositories answer 404. Together that's 356 flagged entries, about one in six. A cold run took two minutes; the cached rerun took under a second.

The raw count overstates the danger. Forty-five of the 65 archived entries had a push inside the last two years. Thirty-one sit in googleapis repositories, and newer entries in the same lockfile (gaxios 7.1.4, gcp-metadata 8.1.2, google-auth-library 10.6.2) already point at the monorepo googleapis/google-cloud-node-core. That's the forwarding-address case, found in a lockfile. Deprecation without an archive turned up too, on three glob versions and two uuid versions. The 279 merely quiet entries are a reading list, since a date can't tell finished from abandoned.

The same lookup for names that keep surfacing in migration threads, taken on 2026-10-01 against each package's latest published version:

Package (latest) Repo archived npm deprecated Last push
request 2.88.2 no yes 2024-08-14
har-validator 5.1.5 no yes 2026-05-18
node-sass 9.0.0 yes yes 2024-07-24
inflight 1.0.6 yes yes 2024-05-23
angular 1.8.3 yes yes 2024-04-12
tslint 6.1.3 yes yes 2021-03-25
left-pad 1.3.0 yes yes 2019-04-19
faker 6.6.6 repo returns 404 no none
moment 2.31.0 no no 2026-09-15
inherits 2.0.4 no no 2025-10-25
once 1.4.0 no no 2025-10-25

Read it by columns, not rows. faker is the odd one: nothing flags it on the registry, and the repository it names no longer exists. inherits and once show pushes in October 2025 against releases from 2019 and 2016, so a last-push cutoff alone would keep nagging about finished code. If you'd rather not maintain a script, Open Source Insights at deps.dev exposes similar data through one API.

Dependabot keeps working through all of this, by the way. Its alerts fire from the GitHub Advisory Database matched against your dependency graph, not from upstream activity, so an archived project still triggers warnings. The catch sits on your side: GitHub does not scan archived repositories, so archiving your own service quietly ends its security alerts. That one bites people. I've watched a team archive an internal repo for tidiness and silently lose two years of alerting.

What order should the decision follow?

Pin first. Lockfile exact, verified digest, done in ten minutes, and it buys you the time to decide properly instead of deciding at 2 a.m. Then check for a fork with real momentum, the @faker-js/faker pattern, which is usually a one-line change plus a test run. Vendor the code if it's under about 200 lines and you understand it, since owning fifty lines beats depending on a ghost. Replace only when the surface is genuinely large, and budget honestly: a linter migration always costs more than the changelog implies.

Whatever you pick, wire it into the gate rather than a spreadsheet. My own CI ordering puts the dependency-state check early for exactly this reason: a check that runs on every push is the only kind that survives a busy quarter.

So what's the actual verdict on that archived badge? It's a date stamp. It tells you when a maintainer stopped answering, and nothing whatsoever about whether the code underneath still deserves your trust. Go look at the code.

Frequently Asked Questions

Does archiving a GitHub repository remove the package from npm?
No. Archiving only makes the repository read-only. The published package stays on the registry and installs exactly as before, which is why archived packages still show millions of weekly downloads.
Will Dependabot still warn me about an archived dependency?
Yes, as long as your own repository is not archived. Alerts come from the GitHub Advisory Database matched against your dependency graph, not from the upstream project's activity. GitHub does not scan archived repositories.
Is an archived dependency always a problem?
No. Archiving can mean a small library is finished and needs no more commits. It becomes a problem when the code still has an attack surface, still has open bugs, or sits under a maintainer who walked away mid-sentence.