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/e2e-ui

v2.4.1

Published

Cypress plugin for Verdaccio UI e2e tests — run against any registry

Downloads

3,058

Readme

@verdaccio/e2e-ui

Reusable Cypress test suites for the Verdaccio web UI. Targets Verdaccio.

Install

pnpm add -D @verdaccio/e2e-ui cypress

Wire up

cypress.config.ts:

import { defineConfig } from 'cypress';
import { setupVerdaccioTasks } from '@verdaccio/e2e-ui';

const registryUrl = process.env.VERDACCIO_URL || 'http://localhost:4873';

export default defineConfig({
  e2e: {
    baseUrl: registryUrl,
    supportFile: 'cypress/support/e2e.ts',
    specPattern: 'cypress/e2e/**/*.cy.ts',
    setupNodeEvents(on) {
      setupVerdaccioTasks(on, { registryUrl });
    },
  },
  env: { VERDACCIO_URL: registryUrl },
});

cypress/support/e2e.ts:

import '@verdaccio/e2e-ui/commands';

Spec file (one per suite, or use registerAllTests):

import { createRegistryConfig, homeTests } from '@verdaccio/e2e-ui';

const config = createRegistryConfig({
  registryUrl: Cypress.env('VERDACCIO_URL'),
});

homeTests(config);

Available suites

| Export | Covers | |---|---| | homeTests | Empty-registry landing page, help card, 404 | | signinTests | Login dialog, greeting, logout | | layoutTests | /-/static/ui-options.js health, header chrome, footer | | searchTests | Search input, query fires, empty state, clear | | settingsTests | Settings dialog, language picker, language switch | | publishTests | Publishes via cy.task, asserts readme / sidebar / tabs |

Configuration

createRegistryConfig({
  registryUrl: 'http://localhost:4873',
  credentials: { user: 'test', password: 'test' },    // optional
  testIds: { header: { settingsTooltip: 'my-btn' } }, // optional per-field override
  selectors: { loginDialog: { submitButton: '#go' } },// optional per-field override
});

Every data-testid referenced by the suites is configurable. See src/testIds.ts for the full TestIds + Selectors shapes and defaults. Overrides are merged per section — unspecified fields inherit from DEFAULT_TEST_IDS / DEFAULT_SELECTORS.

publishPackage task

Publishes a throwaway package so downstream specs have something to assert on.

cy.task('publishPackage', {
  pkgName: '@verdaccio/pkg-scoped',
  version: '1.0.0',
  dependencies: { debug: '4.0.0' },
  unique: true, // appends -t<timestamp> so reruns don't collide on 403
}).then((result) => {
  // result: { pkgName, version, tempFolder, stdout, stderr, exitCode }
});

// in after():
cy.task('cleanupPublished', tempFolder);

Under the hood: creates a throwaway user via PUT /-/user/..., scaffolds a temp project with an .npmrc carrying the legacy auth token, spawns npm publish --tag latest.

Verdaccio config requirements

web:
  enable: true
  login: true
  showSettings: true  # required by settingsTests

userRateLimit:
  windowMs: 1000
  max: 10000          # default (1000 / 15min) is too tight for a full suite run

packages:
  '**':
    access: $all
    publish: $anonymous $authenticated
    unpublish: $anonymous $authenticated
    proxy: npmjs

Restart Verdaccio after changing these — it reads them at startup.

Custom commands

  • cy.getByTestId(selector) — shortcut for cy.get('[data-testid=<selector>]')
  • cy.login(user, password, selectors?) — fills + submits the login dialog; pass selectors to override form field IDs for non-default builds

Task calls are strongly typed — cy.task('publishPackage', …) returns Chainable<PublishPackageResult>, unknown task names fail at compile time.

License

MIT