Skip to content
BENIBIX Learn

Package Registry vs Package Manager

People think the package manager and the package registry are one thing, since both are often called npm. They are not. The registry is the website that stores the packages. The package manager is the tool on your computer that downloads them and puts them in your project.

Development🛠️ Editors & Tools

Package Registry

A website that keeps packages so anyone can get them by name.

A package registry is a website that stores packages so anyone can download them. Each language has its main one. JavaScript has the npm registry. Python has the Python Package Index, called PyPI. Your package manager asks it for a name and a version, then gets it. Companies also run their own, kept private.

Example
Jack types pip install requests. pip asks PyPI for the requests package and downloads the newest version.
Why it matters
It is where almost every package comes from. If a bad package gets in, every project that installs it gets the bad code too.
Full entry
Development🛠️ Editors & Tools

Package Manager

A tool that fetches and updates the code packages your project needs.

A package manager fetches, installs and updates the code your project needs. You type one command with a package's name, and it fetches the right version. It also fetches everything that package needs in turn. It writes down what it installed, so a teammate can get the exact same set. Most languages have their own, like npm for JavaScript and pip for Python.

Example
Emma joins a team and clones its project. One install command fetches all 240 packages the project lists.
Why it matters
Without one, you would copy code by hand. You would track each version on your own too.
Full entry

In one line

Package Registry
A website that keeps packages so anyone can get them by name.
Package Manager
A tool that fetches and updates the code packages your project needs.