Package
ELI5 — The Vibe Check
A package is a bundle of code someone else wrote and published so you don't have to reinvent the wheel. Need to parse dates? There's a package for that. Need to send emails? Package. Need to validate forms? Still a package. Just install and use.
Real Talk
A package is a distributable unit of software published to a registry (npm, PyPI, RubyGems). It contains reusable code, metadata, and a manifest (package.json, setup.py) describing its name, version, and dependencies.
Show Me The Code
# Install a package from npm
npm install date-fns
# Install a Python package from PyPI
pip install requests
When You'll Hear This
"There's an npm package that already does that." / "Keep packages updated to avoid security vulnerabilities."
Related Terms
Dependency
A dependency is a package your project relies on to work. Your app depends on React to render UI, axios to make requests, and dotenv to read config.
Lock File
A lock file is a snapshot of the exact versions of every package your project is using right now.
node_modules
node_modules is the folder where npm dumps all the packages you install. It can grow to hundreds of megabytes instantly and contains thousands of files.
Open Source
Open source means the recipe is public. Anyone can read it, copy it, tweak it, and share their version. It's the opposite of a secret sauce.
SDK (SDK)
An SDK is a toolkit a company gives you so you can build stuff that works with their platform.
Semver (Semver)
Semver is the numbering system for software versions: MAJOR.MINOR.PATCH.