Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Create a free private npm registry with Bytesafe
Daniel Parmenvik
Daniel Parmenvik

Posted on • Edited on

     

Create a free private npm registry with Bytesafe

Bytesafe

Why use a private registry?

Regardless if you are looking for a place to host all your own packages and public packages in one place, reduce business risks, continuously want to monitor packages for vulnerabilities or license issues or require a dependency firewall - using a private registry is the right way to go.

There are different alternatives out there. The benefit of using a hosted service is that you can focus on your code and can get started without having to think of and plan for infrastructure, capacity management, maintenance and such things.

This post describes how you can set up a free private npm registry usingBytesafe in no time.

For me it’s important that the developer experience is great when using a new service. That translates into that the service needs to be well documented, that there is great support if I need it and most importantly that the service needs to be easy to understand and fast to get started. That is why we’ve developed Bytesafe. Btw, I am one of the founders.

How to set up a private registry with minimal effort?

Great! You’ve decided you need a private registry and want to get going. Follow these steps to get your own private registry using Bytesafe

  1. Create workspace. First create your own workspace bysigning up. Just select the workspace name that you would like to use. When you have created your account you can access your workspace by using the workspace name you’ve just create: https://<workspace>.bytesafe.dev

  2. Sign in. Use your GitHub or Google login or sign in using email and password. Congratulations! You now have access to your first private registry called "default". It's ready to be used. Adding more registries is quick and easy!

  3. Configure the npm client. Use the client you are used to (npm, yarn, pnpm) with your new private registry usinglogin credentials from Bytesafe.

/* 1. Login to your registry. Credentials are stored in your local .npmrc file*/$npm--registry'https://example.bytesafe.dev/r/default/'login/* 2. Install your npm packages. Just point out the registry you want to use and install as you normally do*/$npm--registry'https://example.bytesafe.dev/r/default/'install<package>
Enter fullscreen modeExit fullscreen mode

Don’t see your packages in the registry? You might need to force requests tobypass your local npm cache.

That's it!

Hope you'll enjoy your private registries. You have just added a layer of security with your first hosted private registry where packages are continuously scanned for vulnerabilities and license issues. Any issues will be seen in the Bytesafe Dashboard.

If you'd like to watch a video on how to work with secure private registries, then check out this post as well:

From here you can create more registries, enableplugins andpolicies to get the right level of control that you require and optionally you can invite new team members which is a premium feature (as you'll have free trial of the Teams plan).

If you’re interested in reading more about best practices, please visit thenpm security best practices blog post with a downloadable cheat sheet, ourblog or thedocs.

Have any questions or suggestions on features that you would like to see? Comment below or contact us on Twitter@bytesafedev.

Know your dependencies with Bytesafe

Want to know more about npm security best practices?

Creating your own Bytesafe workspace is the first step in improving on security. Here are the top 10 npm security best practices you should consider:

Follow Bytesafe on TwitterBytesafe - A better way to control your software supply chain | Product Hunt

Top comments(4)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
jdnichollsc profile image
J.D Nicholls
Open Source Contributor, Full Stack Developer. Focused on Web, Mobile, Gaming and Cloud Technologies #Ionic #ReactNative #NativeScript #Phaser #Hybrid #NodeJS #Azure #JS #dotnet #Unity ❤️
  • Email
  • Location
    Colombia
  • Education
    Computer Systems Engineer
  • Work
    Software Developer / Team Leader at Seven4n
  • Joined

Are you thinking to create a market place for enterprise private packages?

CollapseExpand
 
danielp profile image
Daniel Parmenvik
Founder of https://bytesafe.dev. Passionate about code that makes a difference.
  • Location
    Stockholm, Sweden
  • Work
    CEO at Bytesafe
  • Joined

Hey there and thanks for showing interest!

Our current focus is to continue building something that is more than just an ordinary package management tool. We aim to offer a service that provides infrastructure for packages and a “dependency firewall”, analysis and problem management within the same service.
This way you will not need to look elsewhere for securing dependencies, managing security, quality & licenses as well as tracking & remediating issues with your packages.

Your question regarding a market place is interesting and is something that we have discussed, but is currently not planned. Do you have a specific use case or thoughts you would like to share?

Also, if you would like to use Bytesafe for your Open Source projects, it's free! Just reach out to me.

CollapseExpand
 
goonerify profile image
Leslie Enwerem
Full stack developer. GIS engineer
  • Location
    Montreal, Quebec
  • Work
    Software Developer at LVL STUDIO
  • Joined

Great product. Please also consider creating/publishing a docker image that can be used to build and install node based containers in order to support a microservices/devops architecture

CollapseExpand
 
danielp profile image
Daniel Parmenvik
Founder of https://bytesafe.dev. Passionate about code that makes a difference.
  • Location
    Stockholm, Sweden
  • Work
    CEO at Bytesafe
  • Joined

@goonerify I am glad you like it and thanks for your feedback regarding docker images! Adding support for more than npm packages in on the roadmap, but first we have a few more things we want to add to bring even more value to the npm ecosystem. 😃

BTW, we've just redesigned Bytesafe with a completely new UX + added new features. Be sure to check it out.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Founder of https://bytesafe.dev. Passionate about code that makes a difference.
  • Location
    Stockholm, Sweden
  • Work
    CEO at Bytesafe
  • Joined

More fromDaniel Parmenvik

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp