PkgSteward
{ DOCUMENTATION }

PkgSteward Documentation

Task-based guides, core concepts, and structured configuration reference for running PkgSteward on Windows 11.
01 · Start Here

Getting Started

Check system requirements, install with pnpm/npm/Yarn tabs, configure your scan folders, and launch the console.
02 · Workflows

Task Guides

Follow step-by-step guides for drive scanning, hardlink disk measurement, 4-step Recycle Bin cleanup, and global packages.
03 · Technical Specs

Reference & Concepts

Look up environment variables, supported tool versions, and the Preview → Confirm safety model.

Safety & Trust Summary

Every file deletion or global package change requires Preview → Confirm, and commands execute in native Windows CMD or PowerShell with your user privileges.

Getting Started

4 pages
Check system requirements, install dependencies, configure scan roots, and start the local console in minutes.
System RequirementsVerify Windows 11, Node.js 22.18+, and supported pnpm, npm, and Yarn Classic versions before installing PkgSteward.
InstallationClone the PkgSteward repository and install dependencies at the root using pnpm, npm, or Yarn Classic.
ConfigurationCreate apps/api/.env and apps/web/.env.local from the example templates and choose which Windows folders to scan.
Running PkgStewardStart the PkgSteward API service and Web UI together in development or production mode and open http://localhost:24680.

Task Guides

9 pages
Step-by-step workflows for scanning drives, measuring disk usage, cleaning up safely, and managing packages.
Scan Projects & OrphansDiscover every Node.js project and orphan node_modules folder across your configured scan roots or all Windows fixed drives.
Project Details & Package ChecksInspect package.json manifests, lockfiles, and inert scripts offline, then run opt-in registry update and vulnerability checks.
Run Project CommandsExecute npm 10–12 and pnpm 10–12 installs, updates, and scripts inside a dedicated Windows CMD or PowerShell console window.
Clean Up Files SafelyDelete node_modules and build caches permanently while routing project folders and source files to the Windows Recycle Bin.
Measure Disk UsageMeasure folder and node_modules sizes using unique apparent bytes so hardlinked pnpm packages are never counted twice.
Manage Global PackagesInspect, update, and uninstall global npm 10–12, pnpm 10–12, and Yarn Classic 1.x packages with binary diff previews and npm version repair.
Pin Project packageManagerPreview and write the exact packageManager field (npm@version or pnpm@version) in package.json while preserving file formatting.
Node Runtime InspectorAudit active Node.js compatibility against .nvmrc, .node-version, and engines.node across all scanned projects.
Settings & CustomizationConfigure 3-tier settings.json storage, Liquid Glass translucency, Preview → Confirm server controls, and the Wallpaper Engine plugin.

Core Concepts

3 pages
Understand the 4-step Preview → Confirm safety model, hardlink-accurate disk sizing, and local-first privacy.
Safety Model (Preview → Confirm)Learn how PkgSteward protects your work with 4-step Preview → Confirm tokens, Windows Recycle Bin routing, Binary Guard, and Recovery Hold locks.
How Disk Sizes Are MeasuredUnderstand hardlinks, unique apparent bytes, and why pnpm workspaces require deduplicated disk measurement.
Local-First & PrivacyUnderstand PkgSteward's loopback-only binding, zero background daemon design, inert script reading, and opt-in npm registry policy.

Reference

3 pages
Structured environment variable tables, verified tool versions, and troubleshooting guides.
Environment VariablesComplete reference table for every environment variable in apps/api/.env and apps/web/.env.local with defaults and required status.
Supported Versions MatrixVerified Windows 11, Node.js 22 & 24, pnpm 10–12, npm 10–12, Yarn Classic 1.22.22, and Yarn Berry boundaries.
TroubleshootingResolve common port conflicts, global bin PATH issues, Recovery Hold locks, and Yarn Berry lockfile notices.

Contributing

1 pages
Contributor setup, automated test suites, theme validation, and translation parity checks.
Contributor Setup & TestsRepository structure, unit and e2e test commands, theme token validation, and i18n parity checks for PkgSteward contributors.

Key Terminology Glossary

Preview → ConfirmA 4-step safety check that shows you exactly what will change before any file is deleted or any global package is modified.The API generates a time-limited preview token listing target paths, risk tiers, and disposition (Recycle Bin vs permanent delete) that must be confirmed before execution.
Hardlink-Accurate Sizing (Unique Apparent Bytes)Counting shared pnpm package files only once per scan instead of multiplying them across every project folder.Tracks NTFS file identifiers (device + inode/file index) during traversal so hardlinked files from the global pnpm content-addressable store are deduplicated.
Inert ScriptsDisplaying the scripts section of package.json as plain text so opening a project never executes untrusted code.PkgSteward parses package.json without invoking lifecycle hooks (preinstall/postinstall) on read; scripts only run when you explicitly launch them in the Console Runner.
Binary Guard (Bin Protection)Checking which terminal commands (binaries) a global package owns before updating or removing it so you do not break your shell.Diffs global bin shims before mutation, blocks self-destructive changes to @pnpm/exe, and verifies shared global manifests on pnpm 10 and Yarn Classic.