Explain package-lock.json code
Paste a package-lock.json and Vibe explains what it pins: the exact version of every package, where npm downloaded it, the hash that proves the file is the same, and why one package can sit inside another.
Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.
Vibe22 lines selected
Press Explain it for the sample, or paste your own code first.
What this package-lock.json sample shows
- version and resolved
- Each key is a folder npm creates, and
versionis the exact version that goes in it. package.json asks for a range,^2.1.1, meaning 2.1.1 or any newer 2.x. The lock pins one answer,2.1.1, so everynpm ciinstalls that same version.resolvedis the address the file was downloaded from. - integrity
integrityis a fingerprint of the downloaded file: its SHA-512 hash, written in base64. Downloading each of the 3resolvedfiles and hashing it gave exactly these values. With one character of themshash changed and an empty npm cache,npm cistopped withEINTEGRITYandintegrity checksum failed.- nested packages
debug2.6.9 needsms2.0.0exactly, but the project asked for^2.1.1. Both can't sit innode_modules/ms, so npm gave debug its own copy atnode_modules/debug/node_modules/ms. Afternpm ci,mslooked up from the project resolved to 2.1.1, and from debug's folder to 2.0.0.- npm ci and npm install
npm ciinstalls exactly what the lock says, or nothing. Afteris-oddwas added to package.json but not to the lock, it stopped withEUSAGE,Missing: is-odd@3.0.1 from lock fileand exit code 1.npm installwith the same change worked out the new versions and addednode_modules/is-oddandnode_modules/is-numberto the lock.
Good to know
- Run with npm 11.10.1 on Node 25.7.0, against the public npm registry.
lockfileVersion3, at the top of the full file, is the format npm 9 and later write. - The sample leaves out the first 14 lines, which hold the project's own name and version,
lockfileVersionand the ranges copied from package.json, and the 2 closing lines.
Watch out: Deleting the lock to make an error go away quietly changes your versions. With the lock gone, npm install picked ms 2.1.3, the newest version in the ^2.1.1 range, not the 2.1.1 the project had been running. Commit package-lock.json, and use npm ci on servers and in CI so they install what you tested.
Explain package-lock.json code beside your editor
Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).
Install on Mac
curl -fsSL https://unvibe.site/install.sh | bashPaste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.
Or download the .dmg · Intel Mac build · SHA-256 checksums
Opening the .dmg the first time
- Open the .dmg and drag Unvibe to Applications.
- Open it once; macOS says it can't verify it. Click Done.

Real screen, macOS 15 - System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.

Real screen, macOS 15
The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open