a fast, modern browser for the npm registry
A fast, modern browser for the npm registry.
The goal of npmx.dev is to build a fast, modern browser for the npm registry.
We're not replacing the npm registry, but instead providing an elevated developer experience through a fast, modern UI.
What npmx offers:
npmjs.com with xnpmjs.com or npmx.dev in any URL and it just works.@types/* links), and engine constraints/ to focus search, . to open code viewer, arrow keys to navigate results^1.0.0) resolve to actual installed versions/~username/@orgname| Feature | npmjs.com | npmx.dev |
|---|---|---|
| Package search | ✅ | ✅ |
| Package details & README | ✅ | ✅ |
| Version history | ✅ | ✅ |
| Dependencies list | ✅ | ✅ |
| Dependents list | ✅ | 🚧 |
| User profiles | ✅ | ✅ |
| Organization pages | ✅ | ✅ |
| Package compar |
bug: npm download sum doesn't match chart
https://github.com/npmx-dev/npmx.dev/issues/3512
Labels: pending triage
Thank you for your interest in contributing! ❤️ This document provides guidelines and instructions for contributing.
[!IMPORTANT] Please be respectful and constructive in all interactions. We aim to maintain a welcoming environment for all contributors. 👉 Read more
The goal of npmx.dev is to build a fast, modern and open-source browser for the npm registry, prioritizing speed, simplicity and a community-driven developer experience.
npmx is built for open-source developers, by open-source developers.
Our goal is to create tools and capabilities that solve real problems for package maintainers and power users, while also providing a great developer experience for everyone who works in the JavaScript ecosystem.
This focus helps guide our project decisions as a community and what we choose to build.
Please use the version pinned in the engines.node and packageManager field of package.json.
fork and clone the repository
install dependencies:
pnpm install
start the development server:
pnpm dev
start the connector with mock data:
pnpm mock-connector
or with real data (requires npm login):
pnpm npmx-connector
# Development
pnpm dev # Start development server
pnpm build # Production build
pnpm preview # Preview production build
# Connector
pnpm npmx-connector # Start the real connector (requires npm login)
pnpm mock-connector # Start the mock connector (no npm login needed)
# Code Quality
pnpm vp run lint # Run linter (oxlint + oxfmt)
pnpm lint:fix # Auto-fix lint issues
pnpm test:types # TypeScript type checking
pnpm vp run zizmor # GitHub Actions security analysis
# Testing
pnpm test # Run all Vitest tests
pnpm test:unit # Unit tests only
pnpm test:nuxt # Nuxt component tests
pnpm test:browser # Playwright E2E tests
pnpm test:a11y # Lighthouse accessibility audits
pnpm test:perf # Lighthouse performance audits (CLS)
CI runs zizmor against the repository's GitHub Actions workflows. The shared policy lives in .github/zizmor.yml, and the zizmor task uses the same pedantic persona as CI.
You may run it locally by installing zizmor and running:
pnpm vp run zizmor
Some audits resolve action refs and vulnerability metadata through GitHub. To run those online checks locally, authenticate with the GitHub CLI and pass its token:
GH_TOKEN="$(gh auth token)" pnpm vp run zizmor
To fix audit findings automatically, run:
GH_TOKEN="$(gh auth token)" pnpm vp run zizmor:fix
Nitro persists defineCachedEventHandler results to disk at .nuxt/cache/nitro/. This cache survives dev server restarts. If you're iterating on a cached API route and want fresh results, delete the relevant cache directory:
# Clear all Nitro handler caches
rm -rf .nuxt/cache/nitro/handlers/
# Clear a specific handler cache (e.g. picks)
rm -rf .nuxt/cache/nitro/handlers/npmx-picks/
Alternatively, you can bypass the cache for a specific API entirely in development by adding shouldBypassCache: () => import.meta.dev to yo