All academies

Simulator

Package Manager Explorer

Anatomy of package.json, semver ranges decoded, and a simulated npm terminal — watch installs mutate the manifest in real time.

package.jsonhover or click a field

{
"name": "my-app",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"dev": "nodemon index.js",
"start": "node index.js"
},
"dependencies": { },
"devDependencies": { }
}
"dependencies"

Packages your code needs at runtime in production — express, database drivers, etc. Installed with `npm install <pkg>`. When others install your package, these come along.

Simulated terminal

Click a command above. Start with npm init -y.

Semver range decoder

Version specs in dependencies aren't exact versions — they're ranges. Try ^4.18.2, ~4.18.2, or 4.18.2.

^ caret — allow minor and patch updates. Matches >=4.18.2 and <5.0.0. This is npm's default: new features are OK, breaking changes are not.

4.18.3matches
4.19.0matches
5.0.0rejected

dependencies runtime

Needed when your app runs: express, pg, zod… Installed everywhere, including production. If you require() it in app code, it belongs here.

devDependencies development only

Needed only while building: nodemon, eslint, typescript, test runners. Production installs skip them with npm install --omit=dev — smaller images and fewer moving parts in prod.