DEV Community

Discussion on: GitHub announces GitHub Package Registry

Collapse
 
andy profile image
Andy Zhao (he/him)

I actually have no idea what a package registry is, or what it does. I read this article on Tech Crunch and still am not really sure what it means: techcrunch.com/2019/05/10/github-g...

An "explain like I'm five" would be greatly appreciated! 🙇‍♂️

Collapse
 
yaser profile image
Yaser Al-Najjar • Edited

Let's say you're working in a restaurant...

You, as a chef, don't wanna take the recipes from other chefs and cook it by yourself everytime you wanna create that delicious plate (that needs many recipes).

You would love if you had a kitchen that serves some ready-to-eat commodity food and compose it into your special plate.

Now, the lovely thing about that kitchen is that it keeps old commidity food with labels because some chefs prefer the old taste of that commodity food, and the kitchen is only allowed to enter for the chefs of that restaurant (because you don't wanna share your trade secrets with other restaurants).

Now change the above story wording:

Restaruant = your organization

Chefs = other developers/teams in your organizations

Recipe = package code (raw)

Kitchen = registry

Commodity food = packages (ready to be consumed)

Plate = your app

Labels = versions of those packages (to ensure new version won't affect apps using previous version of that package)

Collapse
 
jckuhl profile image
Jonathan Kuhl

A good analogy and precisely why I'm looking forward to it.

Collapse
 
hellovietduc profile image
Duc Nguyen

So isn't it like npm registry?

Thread Thread
 
yaser profile image
Yaser Al-Najjar

Yes, it is like npm registry...

But, they say it supports all shapes and colors of registries (npm, maven, nuget... etc).