CorexPM is a secure, disk-efficient native package manager for the JavaScript and TypeScript ecosystem. It combines npm ecosystem compatibility, an immutable global content-addressed store (CAS), strict dependency isolation, deterministic lockfile resolution, and explicit lifecycle-script trust.
Run CorexPM instantly without global installation:
npx corexpm doctor
npx corexpm migrateInstall CorexPM globally across your machine:
npm install -g corexpm
corexpm --helpmacOS & Linux (POSIX Shell):
curl -fsSL https://corex.dev/install.sh | shWindows (PowerShell):
iwr -useb https://corex.dev/install.ps1 | iexPrerequisites: Rust toolchain (>=1.80).
cargo build --workspace --release
./target/release/corexpm --helpResolves package.json requirements, downloads missing packages to the global CAS store, and materializes isolated node_modules:
corexpm install- Frozen Mode (CI/CD): Fails if
package.jsonandcorex.lock.jsondisagree without mutating files.corexpm install --frozen
- Offline Mode: Operates strictly using cached store tarballs without network requests.
corexpm install --offline
- Linker Strategy: Select between isolated symlinks (default), hoisted
node_modules, or hardlinks.corexpm install --linker=isolated
Adds package requirements to package.json and updates node_modules:
# Add runtime dependency
corexpm add express
# Add development dependency
corexpm add typescript --dev
# Add optional dependency
corexpm add @swc/core-darwin-arm64 --optionalRemoves package entries from package.json and cleans up node_modules:
corexpm remove expressEquivalent to corexpm install --frozen for production deployment scripts:
corexpm ciMigrate existing projects to CorexPM without losing existing resolution state:
corexpm migrateImportant
Non-Destructive Guarantee: corexpm migrate auto-detects package-lock.json, pnpm-lock.yaml, yarn.lock, or bun.lock, converts dependencies into corex.lock.json, and preserves your original foreign lockfile untouched.
For machine-readable JSON output:
corexpm migrate --jsonScan project dependency graphs against advisory databases:
# Audit all security advisories
corexpm audit
# Filter by minimum severity level
corexpm audit --severity high
# Ignore specific advisory IDs
corexpm audit --severity critical --ignore CX-ADV-2026-001Lifecycle scripts (preinstall, postinstall, build) are denied by default for security:
# List effective script permissions
corexpm trust list
# Approve lifecycle script execution for a package
corexpm trust approve esbuild
# Deny lifecycle script execution for a package
corexpm trust deny suspicious-packageSchedule and execute commands across monorepo package graphs:
# List all workspace member packages
corexpm workspace list
# Run build script across all workspaces
corexpm run build --all
# Run test script only in changed workspace packages
corexpm changed
corexpm run test -w @app/web --concurrency 4Inspect physical disk space savings and manage the global store:
# Display CAS store statistics and physical vs logical disk savings
corexpm store status
# Reclaim unreferenced package objects
corexpm store prune --grace-period 86400
# View or clean HTTP metadata cache
corexpm cache status
corexpm cache cleanCorexPM provides a programmatic JavaScript/TypeScript SDK for build tool integrations:
const { install, migrate, audit, doctor } = require("corexpm");
// 1. Programmatically run deterministic install
const result = install({ frozen: true });
console.log("Install status:", result.code);
// 2. Import foreign lockfiles
const migration = migrate();
console.log("Migrated packages count:", migration.data.packages_migrated);
// 3. Audit vulnerabilities
const auditReport = audit({ severity: "high" });
console.log("Security report:", auditReport.data);The CorexPM data path is designed for determinism, immutability, and security:
package.json -> resolver -> dependency graph -> corex.lock.json
|
registry -> fetch -> verify SHA-512
|
Global Corex CAS Store
|
isolated node_modules
|
approved scripts
Read the complete Architecture Overview, Lockfile Policy, and Migration Guide.
assets/ Project brand assets and logo
crates/ Native Rust crates (cli, core, store, lockfile, policy, workspace)
packages/ NPM distribution package and Node.js/TypeScript SDK
scripts/ Universal install.sh, install.ps1, and local test automation
docs/ Specifications, ADRs, RFCs, and roadmap documentation
examples/ Supported JavaScript and TypeScript project examples
CorexPM is open-source software available under the MIT License.
