Socket
Socket
Sign inDemoInstall

verdaccio

Package Overview
Dependencies
Maintainers
6
Versions
347
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verdaccio

A lightweight private npm proxy registry


Version published
Weekly downloads
191K
increased by2.04%
Maintainers
6
Weekly downloads
 
Created

What is verdaccio?

Verdaccio is a lightweight private npm proxy registry that allows you to host your own npm registry and cache npm packages. It is useful for speeding up npm installs, working offline, and hosting private packages.

What are verdaccio's main functionalities?

Private Registry

This configuration sets up Verdaccio as a private npm registry with authentication and proxying to the official npm registry.

const config = {
  storage: './storage',
  auth: {
    htpasswd: {
      file: './htpasswd'
    }
  },
  uplinks: {
    npmjs: {
      url: 'https://registry.npmjs.org/'
    }
  },
  packages: {
    '@*/*': {
      access: '$all',
      publish: '$authenticated',
      proxy: 'npmjs'
    },
    '**': {
      access: '$all',
      publish: '$authenticated',
      proxy: 'npmjs'
    }
  }
};

module.exports = config;

Caching

This configuration allows Verdaccio to cache packages from the official npm registry, speeding up subsequent installs.

const config = {
  storage: './storage',
  uplinks: {
    npmjs: {
      url: 'https://registry.npmjs.org/'
    }
  },
  packages: {
    '**': {
      access: '$all',
      proxy: 'npmjs'
    }
  }
};

module.exports = config;

Offline Mode

This configuration sets up Verdaccio to work in offline mode, using only the locally cached packages.

const config = {
  storage: './storage',
  uplinks: {},
  packages: {
    '**': {
      access: '$all'
    }
  }
};

module.exports = config;

Other packages similar to verdaccio

Keywords

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc