---
title: Deploy Verdaccio with AI on Blossom
url: "/deploy/verdaccio/"
canonical_url: https://blossom88.com/deploy/verdaccio/
markdown_url: https://blossom88.com/deploy/verdaccio.md
summary: Run a private npm registry, publish a sample package, and install it from
  a Blossom Job with a read-only account.
categories:
- deployment
- nodejs
- developer-tools
stack:
- Node.js
- npm
- Verdaccio
---

# Deploy Verdaccio with AI on Blossom

[Verdaccio](https://verdaccio.org/) is an open-source npm registry for
private packages. Publish a package, install it with a read-only
account, and keep it available through registry updates.

![Open the private workshop package list.](/deploy/assets/images/verdaccio/workshop-packages.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Verdaccio on Blossom and help me publish and install my first private npm package.
>
> Follow this guide: https://blossom88.com/deploy/verdaccio/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

- **Registry accounts** (Required): Create separate package publisher and reader accounts and keep their credentials in Secrets.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Verdaccio | Serve the npm registry and package browser | Persistent Service behind Blossom Account access |
| Volume | Keep packages, user hashes, and registry signing state | Mounted at /verdaccio/storage |
| npm | Publish and install from the private network | Blossom Jobs |

## Deploy Verdaccio

Start the [official image](https://www.verdaccio.org/docs/docker/) on a
Persistent Service. Keep the package browser behind Blossom Account
access. Use Blossom Jobs on the same Environment to reach the registry
over its private address.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

- Mount the Volume at `/verdaccio/storage`. Keep the package directory
  and `htpasswd` file there so Container replacement keeps both.
- Preseed separate bcrypt hashes for the publisher and reader in the
  `htpasswd` file. Use that file in Verdaccio's authentication settings
  and set `max_users: -1` to disable self-registration.
- Give the publisher and reader access to `@workshop/*`. Grant publish
  permission to the publisher only. This example uses the private scope
  directly and needs no upstream npm mirror.
- Listen on port `4873`. Keep the real npm credentials out of the build
  image and provide them only to the Jobs that use the registry.

</details>

## Publish and Install a Package

Create a small scoped package and publish it as the registry publisher.
Start another Job with the reader's npm credentials and install the
package into a fresh project. Open the package page to see its README.

> **Ask your AI agent:** Publish a small private npm package to Verdaccio and install it with the reader account.

> Follow this guide: https://blossom88.com/deploy/verdaccio/



<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    npm publish --access=restricted --registry "$WORKSHOP_REGISTRY_URL"
    npm install @workshop/format-note@1.0.0 --registry "$WORKSHOP_REGISTRY_URL"

Use a separate temporary npm configuration for each account. Keep that
file private and remove it after the Job.

</details>

## Keep It Running

Replace the registry Container. Run another install with a clean npm
cache and confirm its lockfile reports the same package integrity.
The browser should still open the package from the same Volume.

> **Ask your AI agent:** Replace the Verdaccio Container and confirm my private package still installs.

> Follow this guide: https://blossom88.com/deploy/verdaccio/



<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom service:scale --id service-web-100 --desired-size 0 --follow
    blossom service:scale --id service-web-100 --desired-size 1 --follow

</details>

![Reopen the package README after replacing Verdaccio.](/deploy/assets/images/verdaccio/private-package.webp)

## What You Get

- A private npm package registry
- A sample package uploaded by its publisher
- A fresh npm install using the reader account
- The same package after replacing the registry Container

Tested on Blossom: A fresh npm install returned the same package integrity after replacing the registry Container.
