How to run your own npm repository server original

by Freek Van der Herten – 1 minute read

At Spatie we're constantly improving our application template called Blender. We love using packages to pull in functionality. Creating and using packages has many benefits. Though we try to create public packages that benefit the community, there are some packages that are very specific to Blender. Public repositories such as Packagist and npm are not intended for registering such custom packages.

To serve private php packages you can set up your own private packagist with Satis. A while ago my colleague Sebastian set up the Satis equivalent for the npm world. It's called Sinopia and it's easy to install. Our installation is running at npm.spatie.be. Using this we can now pull in our custom javascript packages.

Interested using Sinopia yourself? Here's a good tutorial to get started.

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.