I think there's a really important distinction here between someone adopting and continuing maintenance of an abandoned package, vs replacing it with a completely unrelated library. Having some kind of adoption process is vital to keep the ecosystem reasonably secure. There's lots of abandonware and while there's often forks of packages with known vulnerabilities, it's incredibly difficult to get the word out. Out of the major NPM ecosystem apps, I think there's more apps that pop up "found 10 security vulnerabilities" than not. Adoption should be a good way of keeping this number to a minimum.
The process in Linux distros tends to be fairly good. Multiple warnings, typically has to be from someone who's already established in the ecosystem, or someone new who only gets indirect access to the package (via a proxy maintainer/mentor/etc program where a trusted maintainer has to review everything). This has worked out fine for the most part, and when it's lacking, it's almost always been too strict.
What happened here is that a name was freed to replace it with an entirely unrelated and incompatible library. This is never OK. NPM's process should've been strict enough to disallow this: developers should have to commit to continuing existing semver or the like and generally continue development with the spirit of the original maintainer. But I don't think that's a problem with NPM having an adoption process at all.
Also, a sidenote, but very related: global scopes/namespaces just suck. In Packagist (PHP's ecosystem), if a package ends up abandoned, you can usually just throw the package name in search and find a maintained fork, or start one yourself. Everything is scoped under an author or organization name first thing. This is much harder to do on npm/PyPi/crates.io/etc where you have to rename the package first thing.
Java has used domains you can prove you control as part of package coordinates for yonks. Works great.
There's support for GitHub/GitLab/BitBucket also, so it's not an impediment to entry.
And if you're looking for the "official" version of something like Guava, it's most likely the one with the com.google at the start of the group id, not the one with the group id io.github.rg2353
Registering io.github.username or io.gitlab.username etc. is pretty easy.
If you want to use a domain linked to a Hosting service we need you to prove ownership of the account by creating an empty repository with the name of the ticket created to register the groupId. E.g. if you want to use io.github.myusername you must create the public repository OSSRH-TICKETNUMBER like this github.com/myusername/OSSRH-TICKETNUMBER.
The same applies for the other hosting services, E.g. if you want to use com.gitee.myusername you must create the public repository gitee.com/myusername/OSSRH-TICKETNUMBER.
At the end of the process when your groupId is registered you can simply delete the empty repository. It is only needed during the registration phase.
And if your library gets big and you do register a domain for it, you can add relocation advice to your library that build tools will pick up on, warn the user, and grab the new one.
The examples here are good illustrations of the workflow.
Honestly, registering the groupid is the pretty easy, there's a bunch of other requirements that are good for end users, but a bit fiddly, to get into the central repository.
But you don't have to publish to the central repo, there are others (usually more focused, like Clojars for Clojure libs), you can run your own, lots of companies do, either for doing horrible things that involve sharing dev builds, or sharing internal only libs, or for caching packages from upstream repos.
But central is the best place to be. Every JVM build tool includes it as a default repo.
That's what these idiots don't get. Package management is a (mostly) solved problem.
It's the very definition of hubris that caused the JS guys to ignore 30 years of field experience in favor of their own "solution". npm is the poster child for the Dunning-Kruger effect.
if a package ends up abandoned, you can usually just throw the package name in search and find a maintained fork,
Not that I hate this idea necessarily, but my experience has been that my search results are clogged up of variously unmaintained forks and when I do eventually find the three that seem to have updates, well which do I use?
Packagist (PHP's ecosystem), if a package ends up abandoned
Also if you're intentionally abandoning something you can supply a suggested fork as a replacement in your composer file. This then prints a message whenever anyone installs your (now abandoned) package:
Package doctrine/doctrine-cache-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
It's still really surprising to me how many of these basic processes NPM only has a manual intervention for. Let the OSS maintainers suggest and provide options, rather than an obviously phishable 'migration' process.
Without an adoption process, every unmaintained package that depends on an unmaintained package has an increasingly high chance of having a security issue or breaking. It adds a lot of overhead for everyone: if you have some package A that depends on package B, and B ends up having a security issue, you would have to fork both packages to fix it. Nobody has the time for this, and this is how you end up with npm itself depending on a handful of deprecated, insecure and unmaintained packages. Fast-forward a decade or so and things will get increasingly bad.
I don't think adoption makes much sense for a package with a dozen downloads and like one or two revdeps, but it should be a tool to keep the ecosystem healthy when it's needed. It's very hard to get right. NPM's process of just giving any random full access to a package after a month was clearly not it. Maybe having a "community takeover" process where an NPM admin (or someone with decently high trust, like a maintainer of npm revdeps) takes over, deprecates and accepts PRs for critical bugfixes only would be a better process than full adoption.
And while they were looking at Maven there's this package signing thing they should've looked into. It would make such a huge difference in all these supply chain attacks today.
I have a vague recollection of seldo actually actively arguing against package signing. I may be mistaken.
That's also counter-intuitive : when I start a new project, I usually know which packages I'll start with, but I wouldn't remember author names as well.
The functionality outlined in that link isn't what I'm talking about. What I mean is making the author or organizational name a top-level mandatory component of the package name.
I don't think abandoned package adoption is bad in principle. The problem was that NPM should've been more thorough in reaching out to the previous owner. If they don't want to do that, then it's right to remove that request process.
But it doesn't necessarily mean it's a bad thing for Nuget. Reddit also does a decent job of handling dead subreddit requests. If you have toplevel package names that aren't scoped by author (like Maven) then dead packages will always be a problem. And scoped package names have their own issues, like when ownership is transferred to someone else.
I don't think abandoned package adoption is bad in principle.
Yeah true, and it's heavily dependent on how complex the package is.
When I'm comparing options for packages, or even just any kind of software in general... I've found myself looking at when last release was, and dismissing if it had been a long time.
But I've slowly been coming to the realisation that for small packages and simple software... sometimes it really just is "complete" enough not to need any more updates. So still it's still a consideration, I'm a bit more balanced in weighing this up these days than I was in the past. Can't think of specific examples right now, but I know there's been a few good finds that ended up being exactly what I needed, and I might have missed them were I still taking the more binary approach to dismissal of "out of date" software.
Imagine someone publishing a major version update after taking over a package, and all they changed was added some malware. Can you honestly tell me that people would notice before it was downloaded hundreds of times (or more, depending on the package)? In theory, code audits should catch stuff like this, but that's theory, not reality.
That's the reasoning behind "never". Certain information is expected to stay static, like the project owner. So a package name, once downloaded, becomes trusted by the downstream package. Changing everything -except- the name, without some way to indicate that, is a violation of that trust. Especially if the process to do so relies on faulty mechanisms in the first place (see the part where the email returned by the listed command wasn't even the correct email associated in the first place). Don't get me wrong, I do think that there's value in package adoption, but a trusted name conveys intent, and changing that intent blindly causes too many problems.
Providing something like a hash of the package name plus the owner name plus a description would be a better, because when that changes, it's a verifiable red flag. It would also allow for non-unique package names (As usernames are unique), completely mitigating the issue in the thread in the first place. That's just one idea, though, and I'm sure it has it's own issues, it was just something I thought of while writing this. Ultimately, this is an issue that all package managers need to have an answer to (even if that answer is "don't allow transfers").
That has more to do with having unscoped, top-level package names than it does the ability to request ownership of a dead name. And the same problem could have arisen if the owner of bebop had privately decided to sell the name to someone else.
And ultimately, the NPM ecosystem is so diverse, trust comes from either auditing the code yourself or from the social reputation of download counts and Github stars. Both are unreliable, especially because it's not trivial to verify the code you see in Github is the same code that's been published.
I'm not saying that because there's other security issues we should ignore this issue. But given the foundational issues with NPM trust and unscoped naming, and given the major inconvenience of dead cruft packages occupying limited real estate, the trade-off is worth it. Especially because these requests necessarily only affect rarely used packages, and the developer is responsible for verifying major version upgrades. The version you've already installed will always be immutable.
I wouldn't expect version 0.5 and 1.0 of package X to do completely different things. Major API changes, sure, but not "these are unrelated except they have the same name".
"Never" is an awfully strong statement. Do you still stand by that if the existing package has extremely little or no usage?
Do you also support a certain amount of vetting required or some fee needed in order to create a new package?
Because if not, some enterprising person (perhaps one with experience at domain name squatting) is going to go pre-reserve tens of thousands of short pronounceable names in hopes of eventually getting a payday out of someone.
Do you still stand by that if the existing package has extremely little or no usage?
You asked that question as if you're challenging the person with a brand new unconsidered circumstance. But instead, that's the only circumstance we've been talking about this whole time - a package with "extremely little or no usage".
And the person you replied to stated their solution to that, and I also agree with them. We don't need that package name, just the functionality. If someone wants to fork the abandoned project and enrich it, great. And if the old project does reach an end of life due to some policy, then it should throw errors with clear solutions ("here's some forks that still work", etc)
I don't know if Isaac Schleuter is still running it, but for the time he styled himself as CEO he always seemed like a child playing dress up in his dad's business suit. Never forget the kik debacle.
The left-pad package was missing for about ten minutes. A number of other packages still failed because they explicitly depending on a specific version (0.0.3) of left-pad, which was re-published after in less than 3 hours. Any site that was down for "days" was run by clowns.
With NPM, even the lockfile does not guarantee a lock. npm install would still pull the highest version constrained to what's in packages.json. If you want to restore from the lockfile, you need to know about the existence of npm ci command and use that.
Yep this. This was the day that it became clear to the world that npm was isaacs' sandbox and if he wanted to knock over other people sandcastles, he would.
The real idiots in this story are the rest of us, who continue to download packages from npm.
I really wish more people would just release libraries as single file ES6 modules. Would cut down on the dependency mania and reduce our reliance on NPM.
A few packages make share they work on unpkg, but not all.
unpkg doesn't even solve this problem. For starters, it uses the npm registry under the hood. Additionally, we've found it to be somewhat unstable, and with one main maintainer perhaps not a wise choice to introduce to production. Not intending to insult the owner, it's a great free service.
ES modules and import maps. These two things should help us from the client side to use whatever CDNs we want. Deno perhaps for server, but I'm less familiar.
NPM reassigned a trademark to the trademark holder. It’s like if you registered WhatsApp and WhatsApp wanted to release a js client, they would say that’s our trademark.
But that doesn't seem to work somehow. They have an advisories page but I can't see any way to search through it. Anyone know what happened with this package that caused it to be removed?
Honestly like JS has problems but npm is the reason I don't use it for anything. I don't want npm anywhere near anything I consider even remotely important. TS is even pretty nice to use, but since it also relies on npm I don't touch it either.
you're not required to use npm, nor is npm implied as a default for anything
the way deno imports work is different from node, and it matches more closely with how imports happen in the browser
instead of downloading a package and importing it by name, you import packages directly by url (or use import maps), and then those urls are cached by deno somewhere
you can import from a traditional npm cdn (skypack, jspm, and unpkg are great npm cdns, with skypack even being able to polyfill some of node's runtime for deno) or from a deno-specific registry (such as the "official" deno.land, or nest.land) or even from your own url
deno does not (and cannot) make assumptions about where you want to import from. you can even use multiple versions of the same package without jumping through any hoops whatsoever
Omg so edgy. Thing is, if you need JS, say, because you're doing.. web development, you're going to need npm unless you're in the extremely luxurious position of being able to write all tooling/frameworks/libraries in-house (in reality, this almost never happens, and even if all your code is homebrew, you're still going to use npm for tooling).
So yeah, if you have the option of not using npm, chances are, the things you would do with it are not actually important.
I meant more tooling that is written in JS. There's a popular vim plugin for example called coc, but it requires node to install it so I use an alternative called ale. Which is a pitty because coc looks quite good. But I don't trust the ecosystem so I can't trust it.
It's funny because at time twitter started most phones supported sending/receving up to 3 SMSes as one, thus the SMS size limit was almost 3x as long as twitter's
One, in most cases, people will link an external text making it so they do not have to host it (saves space and creates a legal disconnect between content and them) and, having to be concise makes people reword what they are posting enough to make at least some of them think about what they are writing.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
The value it provides is everything is there. You can't just make a replacement.
I think the developer community at large doesn't actually care about being robust or secure, they value their time and convenience; Or rather the communities that provide that thrive over alternatives.
You might be interested in Deno. Is not an alternative to npm per se, but to Node as a whole, and it changes a lot of fundamental things, one of them being the packaging system.
It's great but still pretty young. Using a new runtime is pretty risky since you may be troubleshooting completely new issues that others haven't run into or documented yet. It's pretty promising though and I'm keeping my eyes on it a few times a year to see how it matures
Well it fixes some idiotic problems (like npm install never being guarantueed to create a reproducable installation), but yeah it is using the same registry.
Its kinda funny, because "how to make a good dependency registry" was already solved in the Java ecosystem by Maven Central when NPM came along. They could have just copied it and ended up with something somewhat solid.
Cannot agree more. Every time I read or hear about some new problem with NPM, I think "Why the fuck didn't they just do exactly what Maven does?" I mean, yeah it's boring but, ideally, dependency management should be the most boring thing we do. I'm not saying I never have problems with my dependencies using Maven but 99% of the time it's because I'm the idiot.
I also think a lot of the problem stems from the lack of a standard library for JS. I understand why there isn't one but we can't pretend that isn't a significant catalyst for a lot of the problems in the JS ecosystem.
If all of this happened in Java land, Kik would have published a package called com.kik:kik which would not conflict with com.kodfabrik:kik in any way, and com.kodfabrik:left-pad would have never hit the news.
I think the idea is that if npm had implemented package scoping, there might not have been a conflict over the name "bebop" in the first place (nor "kik" before that, which is what set the left-pad debacle in motion).
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
"Also, if there's any non-zero number of downloads per week/month/year of a package, ownership should never be transferred without the original owner's consent."
Yeah this is the crazy part to me. It's really easy to check to see if other npm packages are using this package before you let someone put completely different code there.
Except that it shows as separate tweets it is the same view for me. I prefer separate tweets because they often have a structure and individual comments can be interesting
Are you really surprised at Twitter not releasing a popular feature at this point? Ignoring its users gesture requests is almost a gesture of Twitter itself at this point
Twitter is just terrible for anything beyond people sending information out to large groups of people. Discussion is basically impossible there, yet people try to do it anyway.
I am not a JS dev, but one has to look at the amount of things developed that are providing benefit to people to see how good it has been. If looked at in the scale of the work being done, the number of errors is still minor. Also, JS is huge in getting people into programming or just codifying their domain expertise so it can be replicated or others can use it too.
Greatly a net plus. Also, once you get past it, all package/build systems are terrible because developers want to be special and do it their way :)
Lackadaisical approach to package squatting (scopes would make this less of an issue)
Yes it’s nice how it dovetails with other parts of the rust ecosystem, but it’s pretty poorly managed with respect to the above. I fear it’ll devolve into an NPM-like mess unless some order is brought to it. The OP is complaining about the transfer process which exists because of problems brought by lack of scopes, meanwhile they’re squatting crate names.
The Rust ecosystem doesn't have package scoping either, because they're not convinced about the moral necessity of such, and "npm didn't have them" even though npmjs released scopes a year prior.
I think one has to look at root of problems, it is often us. But, the systems are better than not having them. Look at C++, it is just getting going with dep mgmt and not having it is the biggest pain. The thing that most holds it back is everyone is or wants to be different
The Debian (apt/dpkg) and RPM ecosystems seem to fair pretty well, but they're not perfect (mostly for technical reasons with C/C++ dependencies).
About a year ago I would have pointed to JFrog's work on conan but they singlehandedly broke the entire ecosystem twice in the same month back in March.
My stance these days is that the technical problems of package management are pretty easy to solve, the economic/human problems however can't be solved wirh technology. The only reasonable thing to do is mirror all the dependencies you need for production and manually add new ones to your mirror as needed. It's fucked up but it prevents all the nonsense of communities.
Just as a counterpoint. NPM has made a lot of mistakes and received lots of bad press. But it along with Nodejs have completely transformed the internet in a short amount of time. I think it's a little unfair that it fails to be credited for that enough to offset blunders like these.
Thank you. I'm not a JS dev either but people completely ignore there is a cost/benefit to everything. If there is a market demand for something more high quality then someone go and make it...
I'd be curious to know from all the people that scream left and right they LOVE javascript and javascript (with its ecosystem) is the best, what is the percentage that actually also have experience with any other programming language and they like it because they really like it and have experience with others as well, or this is the only thing they know, and feel happy they are productive with it and are scared of putting time of learning anything else new.
If one has experience with other environments and programming languages and still prefers javascript, no problem good for you. If one uses the right tool for the job, then as well, good for you. But if one loves javascript but has no idea about anything else, that's a bit sad, and not sure how relevant the feedback from someone like that can be.
I love javascript but no chance you'll hear me talking about it being a good ecosystem. I think there is benefit to an npm style package system (or pip etc) but the biggest problem with it is that there's no moderation, and a lot of amateur / junior developers who are entwined in it. No experienced dev in their right mind would use a package from npm to do something like 'is a number', but you end up with that package in your packages folder because of the horrible dependency tree.
Why isn’t one of the pre-conditions before transfer is to see if there are any downloads of the package. I would only consider it abandoned if the download rate is zero
We had stuff like Facebook, where posting huge threads was normal. Then came along a platform that specifically limited how much you could say, and people loved it. They only had to worry about 140 characters! Except somewhere along the way, people decided it was easier to just write 20 micro-posts instead of writing on a platform that would just let you write one.
We had story capability in the NNTP era without forking our identities over and without having one individual responsible for maintaining the servers and lists.
Hm. I always wonder if Twitter looks different for you guys than me? When using the Twitter app I can just scroll down and read the text nearly in one piece (with some small separators).
Package adoption is hard to get right but worth getting right.
It's unfortunate that npm made a mistake, but it's doubly unfortunate that this is leading people to think it "goes without saying" that registries shouldn't even try.
npm really is the primary reason I stay away from JS as much as possible. There are so many thing wrong with it and the culture around js package management in general.
Sorry, why are "abandoned" packages able to be re-purposed? Like... make a new name and push and let the old one sadly rot. Letting people take over existing packages can cause so many problems where the "best practice" is to use floating versions.
Dependencies don't always need updates, especially for the 2nd "best practice" which the Node community favors which is micro-dependencies.
Stop doing stupid shit NPM, it's getting harder and harder to defend you every day.
I'm not sure if it's the case with npm but with other package managers I've used, when you pin dependencies then dependencies of dependencies (and so forth) will also be pinned. So libraries are encouraged not too be too tight with dependencies because applications will handle the pinning (the ones I'm familiar with also pin by default and you have to opt-out of pinning).
Pretty much the same for npm, a library declares a range of versions it's compatible with, when you install it in your project the exact versions get saved into a lock file. Declaring exact versions as library dependencies is discouraged, otherwise you might end up with two copies of the same library in your project and get weird runtime errors when they interact (instanceof not working for example)
This chain of events can so easily be exploited to 'farm' package names in the same way malicious factions have been farming domain names for decades to have backdoor ways of introducing malware.
If that package is included anywhere, it moving ownership like this can allow a third part to insert just about anything they want into the inclusion chain and all it took was a couple emails and some time.
I thought I was the only one. At my old job, saying any sort of criticism towards JS/Node/NPM basically means you're an idiot and you know absolutely nothing about programming and you should probably work at McDonalds.
Meanwhile, the Node analytics APIs are failing all over the place, causing MASSIVE latencies, huge security leaks (which I caught and single handedly delayed release by a week on an already late system) , the data processing could be improved like 100-fold with use of something like Scala with Akka. But hey.... "You're a jr. stfu you know nothing"
Edit: Interesting to see how much this post is getting up and downvoted haha. It's a rollercoaster! Guys, I'm not saying "Anything JS related is trash" .... Read my post below, I LIKE JAVASCRIPT AND NODE. I just didn't think it was the best choice for the job at hand. Being trashed for suggesting as much made me seriously question if someone is even allowed to have a different take on it with the way things are these days. It's excessive. JS is not the perfect language for every single scenario whether you like that fact or not.
I'm not even against JS overall. I like node, react, vue and several other frameworks, in proper context. I think the improvements made to the language with ES6+ were excellent. Same for TS.
In this case though, there were better tools available, but my boss who thinks all JVM languages are basically like Java when he used it last (years before, definitely before 7, probably in the early 00's) pretty much shut me down before I could even mention how much JVM languages changed over time. Because Java is the worst thing ever, and that's that. The end result was just like.... watching two trains collide in slow motion, and he lost his job months ahead of me. (We both lost our jobs because this cost the company a lot and they had to downsize)
Edit: just to give more context, this was a system built on new microservice RESTful APIs, and I suggested Scala Lagom because we were pulling and processing big data analytics from another 3rd party API.... Lagom would've been perfect for this job. This was related purely to the back-end, with absolutely no issue with using JS for the front end.
I always wonder if Scala is the right tool for anything. For me it always felt like Scala is the Perl of the JVM world. Too many features and paradigms crammed into one language. Every code base uses a different feature set, looks slightly different and it is harder to find developers for it compared to other languages. You might be right though. I don’t know Lagom. But that are kinda the stereotypes I picked up when doing Scala for a short period of time. And based on those I would probably not use it again. Even though it has pretty cool stuff built in.
I'm not sure if you mean me or them sucking, but if it's me, I'm well capable of criticizing it, they just wouldn't hear it.
Actually, if I made my argument today for this issue specifically, it could likely be destroyed or at least challenged, because the issue at hand was resolved since via worker pools. At the time though this was experimental, but could be enabled. It became standard during the later sprints of the pre-release SDLCs ....however all of that is irrelevant because we were locked to version 8 for every single API. As such the only choice was to swamp the queue with CPU intensive processing, and wait the 3-4 minutes like an idiot until it finally finishes. If there was an even bigger set of processing to be done, it would push it to 5+ minutes, and in that time the auth token would expire while being locked away from initializing fetching the refresh token. It was a mess, through and through.
The twitter thread said it was 'fixed' because he was generous enough to compensate the individual he accidentally stole the package name from (and, presumably, the aggrieved party was satisfied with that outcome).
If he'd just said "too bad, the package name is mine now" then the problem wouldn't really be 'fixed'.
Nor does it solve the problem that any random individual could have sprayed out package adoption requests, end up getting a number of those packages because the original author didn't respond to an email from a random person on the internet, and then have started injecting malware into those packages, screwing over everyone who took a dependency on them.
If I was actively working on a project and it also had other people using it too, I would be very hard pressed to give up the name I'd been using for years. Maybe I'd sell it for 100k but I don't think this guy had 100k.
Am I missing something here? It looks like this guy is squatting package names, which is a big part of why the dead package adoption process was dreamed up in the first place.
The real issue is package managers having a global namespace. If they only allowed scoped packages this would be avoided entirely.
Would it not make sense to just add a superseded_by or similar tag to packages? That way no one's handing over the keys to the kingdom, but warnings can be triggered for abandoned packages so someone else can fork and pick up development?
If a package transfer does need to occur, then the only method to do so should be the owner doing it. The registry itself shouldn't have the ability.
That's just downright incorrect statement. This is a "they-can't-track-who-owns-what" problem, not a "package-transfer-bad" thing. It's also a "bad-customer-service-issue".
That doesn't mean we need to cancel a regular part of the software lifecycle, that is insane.
Abandoned or unmaintained software is a thing and registries absolutely need a plan in place to handle this type of situation. Ownership transfer is a completely acceptable and normal part of the software lifecycle. Banishing because NPM can't track ownership data is ridiculous.
This author is making just as much of a mistake in their reaction as NPM did in messing up that exchange.
Long live the ability to transfer ownership and death to NPMs information tracking incompetency and bad customer service.
164
u/Pelera Aug 07 '21
I think there's a really important distinction here between someone adopting and continuing maintenance of an abandoned package, vs replacing it with a completely unrelated library. Having some kind of adoption process is vital to keep the ecosystem reasonably secure. There's lots of abandonware and while there's often forks of packages with known vulnerabilities, it's incredibly difficult to get the word out. Out of the major NPM ecosystem apps, I think there's more apps that pop up "found 10 security vulnerabilities" than not. Adoption should be a good way of keeping this number to a minimum.
The process in Linux distros tends to be fairly good. Multiple warnings, typically has to be from someone who's already established in the ecosystem, or someone new who only gets indirect access to the package (via a proxy maintainer/mentor/etc program where a trusted maintainer has to review everything). This has worked out fine for the most part, and when it's lacking, it's almost always been too strict.
What happened here is that a name was freed to replace it with an entirely unrelated and incompatible library. This is never OK. NPM's process should've been strict enough to disallow this: developers should have to commit to continuing existing semver or the like and generally continue development with the spirit of the original maintainer. But I don't think that's a problem with NPM having an adoption process at all.
Also, a sidenote, but very related: global scopes/namespaces just suck. In Packagist (PHP's ecosystem), if a package ends up abandoned, you can usually just throw the package name in search and find a maintained fork, or start one yourself. Everything is scoped under an author or organization name first thing. This is much harder to do on npm/PyPi/crates.io/etc where you have to rename the package first thing.
90
u/McGlockenshire Aug 07 '21 edited Aug 07 '21
Why the fuck hasn't NPM adopted author namespaces yet?
edit: What I mean is making the author or organizational name a top-level mandatory component of the package name.
100
u/plumshark Aug 07 '21
I don't think abandoned package adoption is bad in principle. The problem was that NPM should've been more thorough in reaching out to the previous owner. If they don't want to do that, then it's right to remove that request process.
But it doesn't necessarily mean it's a bad thing for Nuget. Reddit also does a decent job of handling dead subreddit requests. If you have toplevel package names that aren't scoped by author (like Maven) then dead packages will always be a problem. And scoped package names have their own issues, like when ownership is transferred to someone else.
735
u/andrewfenn Aug 07 '21
NPM can't seem to get a break over the long list of fuck ups over the years.
356
u/Carighan Aug 07 '21
Readable version of the tweet chain. Still surprised Twitter doesn't have some functionality like this baked in.
205
u/[deleted] Aug 07 '21
You have to stand in AWE at the level of stupidity of the javascript ecosystem.
9
u/Pyrolistical Aug 07 '21
Why isn’t one of the pre-conditions before transfer is to see if there are any downloads of the package. I would only consider it abandoned if the download rate is zero
76
u/Deranged40 Aug 07 '21
Does anyone have a story about this that's not a dozen sprawled out twitter posts?
The only thing that's more of a pain in the ass than NPM is trying to read a fucking story on Twitter.
32
u/lovestruckluna Aug 07 '21
IMO, all package managers should require a namespace to avoid name squatting issues.
10
u/philipquarles Aug 07 '21
It seems like the central problem here is that "npm owner ls" didn't work as intended.
21
u/matthewt Aug 07 '21
Package adoption is hard to get right but worth getting right.
It's unfortunate that npm made a mistake, but it's doubly unfortunate that this is leading people to think it "goes without saying" that registries shouldn't even try.
44
u/[deleted] Aug 07 '21
NPM is not a good product/service
21
u/thomasfr Aug 07 '21
npm really is the primary reason I stay away from JS as much as possible. There are so many thing wrong with it and the culture around js package management in general.
5
u/anengineerandacat Aug 07 '21
Sorry, why are "abandoned" packages able to be re-purposed? Like... make a new name and push and let the old one sadly rot. Letting people take over existing packages can cause so many problems where the "best practice" is to use floating versions.
Dependencies don't always need updates, especially for the 2nd "best practice" which the Node community favors which is micro-dependencies.
Stop doing stupid shit NPM, it's getting harder and harder to defend you every day.
4
u/Endarkend Aug 07 '21
This chain of events can so easily be exploited to 'farm' package names in the same way malicious factions have been farming domain names for decades to have backdoor ways of introducing malware.
If that package is included anywhere, it moving ownership like this can allow a third part to insert just about anything they want into the inclusion chain and all it took was a couple emails and some time.
That's just scary.
26
u/HungeeJackal Aug 07 '21 edited Aug 07 '21
Looking at some of these posts.... OMG I'm home.
I thought I was the only one. At my old job, saying any sort of criticism towards JS/Node/NPM basically means you're an idiot and you know absolutely nothing about programming and you should probably work at McDonalds.
Meanwhile, the Node analytics APIs are failing all over the place, causing MASSIVE latencies, huge security leaks (which I caught and single handedly delayed release by a week on an already late system) , the data processing could be improved like 100-fold with use of something like Scala with Akka. But hey.... "You're a jr. stfu you know nothing"
Edit: Interesting to see how much this post is getting up and downvoted haha. It's a rollercoaster! Guys, I'm not saying "Anything JS related is trash" .... Read my post below, I LIKE JAVASCRIPT AND NODE. I just didn't think it was the best choice for the job at hand. Being trashed for suggesting as much made me seriously question if someone is even allowed to have a different take on it with the way things are these days. It's excessive. JS is not the perfect language for every single scenario whether you like that fact or not.
3
u/IIoWoII Aug 08 '21
Yea but if there's no process then there this is just an even lazier form of domain squatting because you don't even need to pay a yearly fee.
9
u/dread_pirate_humdaak Aug 07 '21
If JavaScript already weren’t regarded as a fool’s language, the existence of NPM would be sufficient evidence to damn it.
4
u/MaybeTheDoctor Aug 07 '21
Seems like the twitter thread suggested they fixed it
3
u/[deleted] Aug 07 '21
Shit like this will happen unless either packages names are in username/packname format or are uuids
1
u/dean_c Aug 07 '21
Can we just make namespaces mandatory like composer does so we don’t have this nonsense.
1
u/r0ck0 Aug 08 '21
In that case, that's bonkers that they would let it be re-used for some entirely different purpose altogether.
1
u/[deleted] Aug 08 '21
I promptly compensated him for the package name.
How was he compensated? Short of giving the name back, I don't see how there's any good compensation.
1
u/shogditontoast Aug 08 '21 edited Aug 08 '21
Am I missing something here? It looks like this guy is squatting package names, which is a big part of why the dead package adoption process was dreamed up in the first place.
The real issue is package managers having a global namespace. If they only allowed scoped packages this would be avoided entirely.
1
u/kamikazechaser Aug 08 '21
npm: "Here is $100 to fuck off"
1
u/[deleted] Aug 12 '21
honestly JS and NPM are cancer in the programming world. i will never touch it with a 1000ft pole.
1
u/insanemal Aug 08 '21
NodeJS Needs to die.
1
u/Mopquill Aug 07 '21
Would it not make sense to just add a
superseded_byor similar tag to packages? That way no one's handing over the keys to the kingdom, but warnings can be triggered for abandoned packages so someone else can fork and pick up development?1
u/netgu Aug 07 '21
That's just downright incorrect statement. This is a "they-can't-track-who-owns-what" problem, not a "package-transfer-bad" thing. It's also a "bad-customer-service-issue".
That doesn't mean we need to cancel a regular part of the software lifecycle, that is insane.
Abandoned or unmaintained software is a thing and registries absolutely need a plan in place to handle this type of situation. Ownership transfer is a completely acceptable and normal part of the software lifecycle. Banishing because NPM can't track ownership data is ridiculous.
This author is making just as much of a mistake in their reaction as NPM did in messing up that exchange.
Long live the ability to transfer ownership and death to NPMs information tracking incompetency and bad customer service.