Live data from Hacker News

NPM website was down

status.npmjs.org

51–60 of 65 posts

Re: NPM website was down

#51

Earlier quoted context omitted.

I mean, the PR limit is like a million characters. I would also reject a PR of a million characters. That’s bananas.

Not sure about that "million characters", but we've been bitten by it in our production systems. :( Thus, we're moving off GitLab.

I'm sure, I looked it up.

Re: NPM website was down

#52
post #32
post #28

Earlier quoted context omitted.

More seriously, keeping a local cache of external npm packages, and a local artifact storage for internal npm packages looks like a wise thing to have done long ago. Might be cheaper in the long run. Ironically, both Nandu and Verdaccio are implemented in Tyepscript and install via npm. (Same logic obviously applies to Python packages, Docker images, etc.)

Caching NPM was easier when you could pull the Couchbase replicate API. Afaik that's gone and now you just have to send a bazillion http requests instead.

Sending a bazillion http requests within your LAN, or at least your VPC, is much easier, faster, and cheaper.

Both yarn and pnpm support http/2 which speeds up the bazillion requests quite a bit.

Re: NPM website was down

#54
post #42
post #4

With all the github instability, I wonder if Cloudflare or some other provider is going to look into providing a similar service.

Cloudflare artifacts?? https://developers.cloudflare.com/artifacts/

I mean more like a full git competitor. Gitlab exists but more competition is generally better for the consumer and it looks like Github's lead is starting to falter with all these incidents.

Re: NPM website was down

#55
post #39

Earlier quoted context omitted.

Only if we had a turn key distributed cache, like IPFS

Does IPFS support content eviction now? If not, that could go wrong really fast. You get a compromised package out there and then, I think, literally every node needs to unpin it or it remains.

Presumably, how ever you mark a version as latest would also be how you mark one as compromised. IPFS files are immutable and keyed by hash. But this seems like overengineering.

Re: NPM website was down

#56
post #20

Earlier quoted context omitted.

which is owned by microslop

...and proudly maintained by Microsoft's AI agents: Tay.ai, Zo, and Copilot. They seem to be doing a pretty good job at wrecking both GitHub and npm at the same time.

Clippy was too stupid to qualify as an AI.

Re: NPM website was down

#57
post #28
post #6

That's one way to fix supply chain vulnerabilities.

More seriously, keeping a local cache of external npm packages, and a local artifact storage for internal npm packages looks like a wise thing to have done long ago. Might be cheaper in the long run. Ironically, both Nandu and Verdaccio are implemented in Tyepscript and install via npm. (Same logic obviously applies to Python packages, Docker images, etc.)

> a local artifact storage for internal npm packages looks like a wise thing to have done long ago

Deno already does this invisibly by default.

All packages are stored in the global cache.

No need to store multiple versions of the same dependencies across projects.

To the code in your projects: there is no such thing as a global cache. Just import your dependencies like normal and deno maps them to the global cache.

Re: NPM website was down

#58

Earlier quoted context omitted.

I mean, the PR limit is like a million characters. I would also reject a PR of a million characters. That’s bananas.

Not sure about that "million characters", but we've been bitten by it in our production systems. :( Thus, we're moving off GitLab.

What use case does a million character PR have?

Re: NPM website was down

#59
post #28

Earlier quoted context omitted.

More seriously, keeping a local cache of external npm packages, and a local artifact storage for internal npm packages looks like a wise thing to have done long ago. Might be cheaper in the long run. Ironically, both Nandu and Verdaccio are implemented in Tyepscript and install via npm. (Same logic obviously applies to Python packages, Docker images, etc.)

At my former job we had a private registry that was a mirror of npm’s with an approval gate for packages devs would request and it would always pin versions I took that for granted back then and just assumed it was standard enterprise policy

Multiple previous jobs had this too (local Packagist is thing, Artifactory is another) but my current job got rid of theirs. Seemed a little short-sighted given the risks but I don't make the decisions.

Re: NPM website was down

#60
post #29
post #25

Earlier quoted context omitted.

GitLab is right there . And overall provides a better product than GitHub, if nothing else on these two points: * You can actually have an organisational structure (folders/namespaces), and projects can be moved around with automatic redirects. Also, inheritance of access controls, variables between the namespaces * GitLabCI is organised in a way that makes supply chain attacks less of a risk. GitHub Actions takes th…

All of those features are supported by GitHub in some form, e.g: Organizations can now belong to Enterprises.

It's not the same, at all.

SSO, access tokens, secrets are all bound to the Organization level - if you work on multiple Organizations you have to log in separately... You also cannot have nested Organizations.

Post reply on HN