What is a package?
A package is a reusable bundle of code, written by someone else, that you can drop into your project to save yourself work.
Almost no real software is built from scratch. Most projects are stitched together from packages, also called libraries or modules. A package solves a specific problem, like reading a CSV file, sending an email, or showing a calendar. You install it, call its functions, and skip writing all that plumbing yourself.
Packages are distributed through registries. In the JavaScript world the registry is npm. In Python it is PyPI. Each project lists its packages in a config file like package.json so anyone can install the exact same set of code and get a working copy of your project.
When AI coding tools build something new, they often reach for well-known packages instead of reinventing the wheel. Your job as the human is to sanity-check that the package is widely used, actively maintained, and a reasonable fit for the job.
Example
npm install zod # add the "zod" package to your project
import { z } from "zod" # use it in your codeRelated terms
Want to use Package in real work?
WeCode workshops are built around AI coding tools. Pick a tier, or browse more glossary entries to get the lay of the land.
