r/node • u/selrond • May 10 '19
GitHub Package Registry: Your packages, at home with their code
https://github.com/features/package-registry66
u/limefest May 10 '19
I wonder what the internal chat at npmjs is looking like right about now!
53
u/DefiantBidet May 10 '19
Isaac is probably too busy on twitter ranting about some modern injustice to notice
12
-1
u/aztracker1 May 11 '19
Wouldn't know... He blocked me years ago when I pointed out with evidence he was wrong about something political.
6
u/mhink May 11 '19
From what I understand, there’s actually been a HUGE exodus in their engineering org lately because of management trouble. There’s been a shit-ton of Twitter drama around the whole ordeal.
0
27
u/LionaltheGreat May 10 '19 edited May 10 '19
"NPM 2014-2019. No one really ever liked them, but they were there when we needed them most."
Seriously though, I hope they support more infrastructure than just the npm/js.
EDIT:I don't know what year it is.
12
u/SavingRoundRock May 10 '19
Says they’ll do npm, rubygem, docker, etc if I’m reading the beta correctly.
5
8
1
u/Slightly_Askew May 10 '19
Now that you mention it, I wonder if they'll eventually do the same for ruby gems.
10
8
5
u/danielo515 May 11 '19
For those saying that this could be a private alternative to a non registry, there is already one. Verdaccio is an open source project,that it is a 1-1 replacement to npm (unlike nexus). So if you has had trouble configuring a private npm registry try it out
1
u/eidsonator May 11 '19
Just did some testing with Verdaccio this week and it seems to handle all of our use cases, so I plan on switching it over to production next week. We've been using Kappa for years, but it doesn't let you use scoped packages, which I've been wanting to switch over to and it doesn't handle npm audit, either. It hasn't been maintained for years, either.
1
u/Akkuma May 11 '19
The selling point for most orgs will probably be one less thing for them to have to configure while supporting a private registry. As an aside, you could have always just had direct references to github and still been private, but you'd lose the pre-publishing build steps.
2
u/KyleG May 11 '19
Interesting. I just run dockerized Nexus as both a private NPM repo and an NPM cache so repeated installations of packages don't require WAN calls.
-18
u/Shinrye May 10 '19
Was all excited until I saw this:
“What does it cost?
GitHub Package Registry is free for all repositories during the beta. And it will always be free for public and open source repositories.”
So seems like they are gonna charge additional for private repos.
28
6
0
May 10 '19
[deleted]
-4
u/Shinrye May 11 '19
Clearly you missed the key word “additional” I already pay github for my accounts and gladly. That was pretty clear when I mentioned private repos.
Unlike most services github hasn’t been about micro transactions/add on services. But the way this is worded looks like they are going to tag in additional cost in order for organizations to use this services for their private code.
2
u/sharlos May 11 '19
We have no idea atm if a paid github account entitles you to private packages or not.
-14
u/runvnc May 11 '19 edited May 11 '19
npm already installs from GitHub. What does this add? It seems redundant to the core services provided already for Node packages, Docker, etc. Is it mostly just there to provide an alternative to people that don't like npm or Docker companies?
Also, how do I search this registry?
7
May 11 '19
That old install method is extremely limiting, it doesn’t understand semantic versions (among other problems)
4
u/parseHex May 11 '19 edited Feb 10 '21
To search for them just use the normal github search and select "Packages" on the left sidebar. (source)
4
2
May 11 '19
Private registries is the immediate benefit, coupled with GitHub actions and authentication. From an org that maintains our own private NPM registry, this is an amazing product. Won’t be putting our Docker images here, but the registry aspect of this makes so much sense. While you may not see the value, a lot of people are excited about this.
While I also realize that I could use NPM Enterprise (and we’ve considered it), it’s not the product we were looking for due to a number of limitations.
72
u/habanerocorncakes May 11 '19 edited May 11 '19
This is fascinating to me. Github could never have done this without Microsoft, and developers would never have adopted this if Microsoft did it.
Currently NPM (the company) has a business model which relies mainly on selling to enterprise customers (surely not all their business, but most likely the bulk).
Microsoft is the best poised company in the market to eat their lunch, because enterprise is Microsoft’s core competency. Think what you will of the company and its relevancy today, but they have deep experience selling to enterprise, and preexisting relationships with many enterprises.
What does Microsoft hope to get from this though? Surely its a small line of business, and wont make Github all that much money. Github has a relationship primarily with individual developers first and foremost, that is their target market. Those devs influence their employer’s decision to pay for GitHub because the devs want to use what they’re familiar with. So that relationship with individual devs is really Github’s bread and butter.
Well, I think thats exactly what Microsoft hopes to get; that virtuous cycle of making a product that is loved and widely adopted by individuals and then championed by by those individuals within their organizations. Similar to Slack’s growth model, and also Zoom’s.
Its no secret Microsoft is trying to win back the common developer. At a time when apple is fumbling on caring about devs (re: escape key), and AWS has become the default for cloud production, there is a real opportunity to be the company that makes development better for devs. If Microsoft ever wants to succeed in Cloud, they need to win back developers by having services which are genuinely better and friendlier to use. If they can become the default choice for developers in certain areas (VSCode, Github) and then make it dead simple to integrate with their cloud services, thats a compelling reason for individuals to use their services. And if its actually better (clearly no one is a delighted by the AWS interface) then Azure could become some folks preference for their personal work. And with those services being available where your company already hosts its code and does it developing, Github, then all the better.
Microsoft made a very smart move acquiring Github, and I think they will take great care not to upset the common developer as that is the lifeblood of this whole cycle.
Note, I said common developer. There is a lot of mistrust of Microsoft among the Hacker News and silicon valley crowd. There are definitely valid concerns held by folks at the upper percentile of developers, who tend to both take a longer view and are more cynical (to put it nicely). But thats not the vast majority of devs. Most devs don’t work at FAANG, or live somewhere on the west coast. Most work at smaller companies around the world. Github/Microsoft only need to appeal to most devs.
I wasn’t sure what Microsoft would do to capitalize on their Github acquisition. But this is a great start. There is a lot of drama around npm the company, and their interests are no longer aligned with the common developer. There really are problems there that Github can solve.
GitHub can afford to prioritize the common dev with Microsoft’s help. GitHub already has a great reputation in the open source community, and they are certainly a safer bet for longevity and keeping your package publicly available than npm.
Anyway, I’ve been reading too much Stratechery it seems!
TLDR; This is npm the company’s current business model. Microsoft is way better at enterprise than almost anyone, certainly npm the company. npm’s interests are no longer aligned with common devs, but GitHub’s certainly are and Microsoft is willing to pay to make sure it can stay that way.
Also note: NPM is really at least 3 things. The package registry, which is a public database of all the packages in the JS ecosystem. The website frontend to find packages. The npm cli, which is an open source project. And lastly npm, Inc the company, founded in 2014, who foots the bill for the public registry. I love the npm ecosystem and the people who build the tools, but Im not so hot on the company, since they are essentially rent seeking.