library
A library is a pre-written, reusable collection of program code (mostly work by others) that the developer integrates into their own program to avoid writing everything from scratch.
In plain terms
Imagine you are cooking, but you buy the pasta, tomato sauce, and spice mix ready-made from the store. The dinner is yours, yet you did not grind the flour yourself. A program library is the same in the world of software: a ready, tested component that the developer integrates into their own work.
A library usually solves a well-defined task: handling dates, drawing graphs, resizing images, encrypting, or conversing with an AI model. The developer does not need to know exactly how it works internally; it is enough to know what can be requested from it and what will be returned.
The vast majority of modern software consists of such pre-built components, with custom code often serving merely as the glue between them. This is why a small team, or even a coding agent, can assemble a working application in days.
Watch your words: in Hungarian IT terminology, "library" also refers to a computer folder. This article is not about a folder storing files, but about a code collection.
How it works
- Someone writes code for a frequently needed task and publishes it, typically as open source, in a public repository (such as PyPI for Python or npm for JavaScript).
- The developer or coding agent downloads and adds the library to the project with a single command using a package manager.
- It "imports" the library into its own code and then uses the library's ready-made functions by name, for example: "draw a bar chart from this dataset".
- A library often builds on other libraries itself, so a single installation can bring along dozens of additional packages. This is called a dependency chain.
- Libraries receive new versions with bug fixes and new features, so programs built on them must also be updated regularly.
An everyday example
You ask an AI assistant to create a chart from your Excel spreadsheet. In the background, it does not write a drawing program from scratch. Instead, it calls in a spreadsheet library and a charting library, and solves the task with a few lines of code.
Who is affected
A common misconception
Limits and risks
- A security flaw in a popular library can make countless programs vulnerable simultaneously; the Log4j flaw discovered at the end of 2021 affected numerous organizations worldwide.
- Coding agents sometimes invent non-existent library names, and attackers can publish malicious packages under such names; therefore, verify what the agent calls before installation.
- Libraries are often maintained by volunteers, so they may become outdated or lose support while your program still depends on them.
- Open source does not mean unlimited freedom: some licenses (for example, the GPL) require that if you distribute a program containing the library, you must also publish your own code under the same conditions.
Similar, but not the same
- folder (file directory) – A folder is a storage location for files on your machine, while a library is a collection of code intended for use. In Hungarian, both are called 'könyvtár'.
- keretrendszer – Your code calls the library when needed, while the framework provides the program skeleton and calls your code.
- API – The API is the interface describing the rules of use, while the library is the code itself that performs the work behind that interface.
Related concepts
szoftver, programming, source code
standard library, machine learning library
keretrendszer, API, SDK, Package manager, dependency, open source
A brief history
The idea of a collection of reusable program parts originates from the early days of computing. Maurice Wilkes, David Wheeler, and Stanley Gill first described the subroutine library of the Cambridge EDSAC machine in detail in their 1951 book.
Where things stand
As of late 2026, practically all software is built on libraries, and public package repositories offer millions of packages. With the spread of coding agents, libraries are increasingly selected and installed not by a human but by an agent, which has made supply chain security a priority issue.
In the news
- Students say AI companies are targeting under-resourced schoolsNov 7, 2026 · Education & Family
- Oxford University Press links its content to ChatGPT Edu in three-month pilotNov 4, 2026 · Education & Family
- Claude reportedly proves safety properties in compiled code of 123 open-source librariesOct 26, 2026 · Code
- Harvey adds integrations and Intake product for in-house legal teamsOct 19, 2026 · Jog
- Moms for Liberty uses AI to monitor decisions in 13,000 school districtsOct 13, 2026 · Education & Family
- California leads in regulating lawyers' use of generative AIOct 12, 2026 · Jog
- Hungarian AI training for lawyers: Edulex course and Wolters Kluwer Libra AcademySep 15, 2026 · Jog
- Raiffeisen launches AI business coach in Romania; Libra Bank chatbot insults a customerSep 14, 2026 · Money
Also known as
library · software library · software library · function library · library · software library · lib · csomag (package)
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.