Skip to content
SPECIFICTION
Get listed

cnpm vs JSPM

cnpm

github.com

JSPM

jspm.org

Side by side

FigurecnpmJSPM
Price from—Free
Free plan—Yes
Free trial——
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published01
Spec score · JavaScript Package Managers7.6 (#11)8.7 (#2)
Compatibilitycnpm supports npm commands, and npmmirror says it supports commands such as install, info, and view, except write-related operations.Import maps are supported in the latest versions of Firefox, Safari and Chrome, and in Deno.
Purposecnpm is an npm client for the npmmirror.com China mirror of npm.JSPM is an open source project for dependency management via browser import maps.

Plans

cnpm

No plans published.

cnpm pricing →

JSPM

  • JSPM (open-source project)Free

JSPM pricing →

In their own words

cnpm

cnpm is an npm client for the China mirror of npm. It supports npm commands for package installation and synchronization, and can open package documentation or a Git web URL. Global installation uses `npm install cnpm -g`, and the minimum Node.js version is 20, with LTS recommended. Users can configure a custom registry, registry web address, and user configuration file to create a private-registry npm CLI. cnpm uses npminstall by default, though the original npm installer can be selected at the stated cost of losing the fastest install speed. The mirror is read-only and aims to synchronize with the official service in real time, so write-related operations are excluded. npminstall accepts folders, tarballs, URLs, registry packages, and Git URLs. Its options include ignoring lifecycle scripts, omitting optional dependencies, enforcing registry-only installs, and forbidding specified licenses. It cannot install from shrinkwrap files, and failed installs are best retried after cleaning `node_modules`. The project is MIT licensed and recommends migrating to utoo, described as a modern npm package manager. cnpm runs on Linux, macOS, Windows, and self-hosted environments.

Visit github.com

JSPM

JSPM is an open-source project for managing browser dependencies through import maps. Its CLI is the main package-management tool for import maps, while the jspm.io CDN loads optimized npm dependencies directly, without a separate build step. The development server can install packages automatically, hot-reload, and strip TypeScript types. For production, jspm build uses RollupJS to bundle package entry points and dependencies. JSPM supports native ES modules and standards-based browser workflows, and can add Subresource Integrity hashes across an application's static and dynamic module graph. Built-in providers include jspm.io, nodemodules, esm.sh, unpkg, skypack, and jsdelivr; custom providers can also be configured. Integrations include an online generator, VSCode web extension, Vite plugin, experimental Node.js loader, Import Map Rails, and Symfony AssetMapper. The hosted API generates import maps and dependency graphs, though JSPM recommends running its Generator library directly when possible. Import maps are supported in recent Firefox, Safari, and Chrome, and in Deno. The project costs nothing; CDN services are described as free and donation-supported. Its publish command is experimental and has no reliability guarantees for publishing on jspm.io.

Visit jspm.org