npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

verdaccio-ingest-middleware

v1.2.5

Published

Verdaccio middleware plugin for recursive package ingestion with multi-platform support

Readme

verdaccio-ingest-middleware

English | 中文

A Verdaccio middleware plugin for recursive package ingestion with multi-platform support. Designed for environments where you need to download npm packages and their dependencies from an upstream registry for later offline use.

Features

  • Recursive Dependency Resolution: Automatically analyzes and downloads all dependencies of cached packages
  • Multi-Platform Binary Support: Downloads platform-specific binaries (linux-x64, win32-x64, darwin-arm64, etc.)
  • Differential Export: Export only new/modified packages since last export for efficient offline sync
  • Web UI: Built-in management interface for easy operation
  • Metadata Sync UI (New): Integrated metadata sync card in Web UI, supports syncing all packages metadata from upstream
  • Single Package Sync (New): Sync metadata for individual packages, supports scoped packages like @types/node
  • Package List Browsing (New): View all local packages and sync from the list with one click
  • Sync Progress Display (New): Real-time sync progress with processed count, total, and failure statistics
  • Sibling Version Completion (New): Automatically downloads the latest patch version within the same minor series and the latest minor version within the same major series for each cached version
  • Async Task Management: Long-running operations run in background with progress tracking
  • Analysis-Confirm-Download Workflow: Preview what will be downloaded before actually downloading
  • Dependency Chain Completion (v1.2.5): Analyze/sync starts from locally cached versions and recursively resolves transitive dependencies (for example A -> B -> C)
  • Scoped Tarball Filename Compatibility (v1.2.5): /rebuild-index now supports both scoped tarball formats: package-x.y.z.tgz and scope-package-x.y.z.tgz
  • Metadata Rebuild & Sync Hardening (v1.2.5): /sync now persists metadata for newly downloaded packages, and /rebuild-index can create missing package.json and refresh local dist-tags.latest

Installation

npm install verdaccio-ingest-middleware
# or
yarn add verdaccio-ingest-middleware

Configuration

Add the plugin to your Verdaccio config.yaml:

middlewares:
  ingest-middleware:
    # Upstream registry URL (optional, defaults to first uplink)
    upstreamRegistry: https://registry.npmjs.org
    # Processing concurrency for download/scan/analyze/export (default: 5)
    concurrency: 5
    # Target platforms for binary packages
    platforms:
      - os: linux
        arch: x64
      - os: win32
        arch: x64
      - os: darwin
        arch: arm64
    # Sync options
    sync:
      updateToLatest: false
      completeSiblingVersions: true
      includeDev: false
      includePeer: true
      includeOptional: true
      maxDepth: 10

API Endpoints

All endpoints are prefixed with /_/ingest/.

Package Analysis & Download

| Method | Endpoint | Description | |--------|----------|-------------| | POST | /analyze | Analyze dependencies (returns task ID) | | GET | /analysis/:analysisId | Get analysis results | | POST | /download | Download packages based on analysis | | POST | /retry | Retry failed downloads |

Metadata Management

| Method | Endpoint | Description | |--------|----------|-------------| | POST | /refresh | Refresh metadata for cached packages | | POST | /sync | Full sync: refresh + download missing deps | | POST | /rebuild-index | Rebuild local metadata index |

Platform Binaries

| Method | Endpoint | Description | |--------|----------|-------------| | POST | /platform | Download multi-platform binaries |

Differential Export

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /export/history | Get export history | | POST | /export/preview | Preview files to export | | POST | /export/create | Create export package | | GET | /export/download/:exportId | Download export package |

Status & UI

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /status/:taskId | Query task status | | GET | /cache | View local cache status | | GET | /ui | Web management interface |

Usage Examples

Analyze and Download Missing Dependencies

# Start analysis
curl -X POST http://localhost:4873/_/ingest/analyze \
  -H "Content-Type: application/json" \
  -d '{"platforms": [{"os": "linux", "arch": "x64"}]}'

# Response: {"success": true, "taskId": "task-xxx"}

# Check task status
curl http://localhost:4873/_/ingest/status/task-xxx

# When analysis completes, get results
curl http://localhost:4873/_/ingest/analysis/analysis-xxx

# Download packages
curl -X POST http://localhost:4873/_/ingest/download \
  -H "Content-Type: application/json" \
  -d '{"analysisId": "analysis-xxx"}'

Export for Offline Transfer

# Preview what will be exported (since last export)
curl -X POST http://localhost:4873/_/ingest/export/preview \
  -H "Content-Type: application/json" \
  -d '{"since": "last"}'

# Create export package
curl -X POST http://localhost:4873/_/ingest/export/create \
  -H "Content-Type: application/json" \
  -d '{"since": "last"}'

# Download the export file
curl -O http://localhost:4873/_/ingest/export/download/export-xxx

Web UI

Access the management interface at http://localhost:4873/_/ingest/ui for a visual way to:

  • View cached packages
  • Analyze dependencies
  • Download missing packages
  • Create differential exports
  • Monitor task progress
  • Sync all packages metadata (calls verdaccio-metadata-healer sync API)
  • Sync single package metadata with scoped package support
  • Browse local package list and sync from list
  • View sync progress and results

Requirements

  • Node.js >= 18.0.0
  • Verdaccio >= 5.0.0

License

MIT