Product

Overview

How it works Watch it work All 35 features Screenshots How ForgeRepo™ is secured

Keep bad packages out

Malware scanning Typosquat detection Dependency confusion protection Cooling off new releases Allow lists and block lists

When something goes wrong

Kill switch Who has it Lockdown and degraded modes Vulnerability monitoring

Developers and approvals

Requests and auto approve Check, walk and review Waivers Dry run
Formats

Languages

Private npm registry PyPI proxy and private index Private NuGet feed and proxy Maven repository proxy RubyGems mirror Composer and Packagist proxy

Apple, containers and Linux

CocoaPods CDN mirror Swift package registry Docker registry mirror RPM mirror for dnf and yum APT mirror for Debian and Ubuntu

Use it as

An npm firewall Artifacts, SBOMs and lifecycle More than one node SSO, roles and allow lists
Learn

Guides

Learn secure development Secure coding Secure pipelines Unsafe vs safe Security and development

Supply chain

Supply chain attacks, 2016 to 2026 Software supply chain security
Compare Side by side, all four ForgeRepo™ vs JFrog ForgeRepo™ vs Sonatype ForgeRepo™ vs Cloudsmith
Docs

Start

Getting started Download All documentation Questions

For developers

npm setup pip setup docker login Push a Docker image CI basics

For administrators

First setup Rules and their order Six incidents, walked through Backup and upgrade
Pricing Install it

npm, pnpm and Yarn

Set up npm

Point npm at packages.example.com for one project or for your whole machine.

npm reads its settings from a file called .npmrc. Put one in the root of your project so everyone who clones it uses packages.example.com.

.npmrc

registry=https://packages.example.com/
//packages.example.com/:_authToken=${NPM_TOKEN}

The first line sends every install to packages.example.com. The second line gives npm your token, read from the NPM_TOKEN environment variable, so the file is safe to commit.

Careful

A line starting with // is not a comment. In .npmrc, // starts a web address with the https: left off, and it says which registry the setting belongs to. So //packages.example.com/:_authToken=... is the token for packages.example.com, and //google.com/:_authToken=... would be a token for google.com. Delete a // line and your installs stop working.

Comments in .npmrc start with # or ;:

.npmrc

# this is a comment, and so is the next line
; both of these are ignored

# the line below is a setting for one registry host, not a comment
//packages.example.com/:_authToken=${NPM_TOKEN}
Set up a project to use ForgeRepo™
$ cat .npmrc
registry=https://packages.example.com/
//packages.example.com/:_authToken=${NPM_TOKEN}
$ npm config get registry
https://packages.example.com/
$ npm whoami
your-user-name
$ npm ping
npm notice PING https://packages.example.com/
npm notice PONG 33ms

Captured by running these commands against a real ForgeRepo™.

npm whoami printing your user name means the token works. npm ping answering PONG means npm can reach packages.example.com.

For every project on your machine

npm config set registry https://packages.example.com/
npm config set //packages.example.com/:_authToken "$NPM_TOKEN"

This writes to ~/.npmrc in your home folder. A project .npmrc still wins when both exist.

Tip

Using a scope only for your company packages? You can send just the scope to packages.example.com with @acme:registry=https://packages.example.com/. Sending everything is safer, because then every public package is checked too.