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. Hungarian uses the same word for both concepts.
- 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
- Microsoft and Public Library Association launch free AI training for US public librariesNov 30, 2026 · Education & Family
- Open-source maintainer reports a surge in AI-generated contributionsNov 30, 2026 · Code
- Wolters Kluwer launches Libra legal AI workspace in France and SpainNov 30, 2026 · Law
- New York hearing to examine students’ AI use in classrooms, libraries and homesNov 25, 2026 · Education & Family
- LibreOffice tightens rules for AI-generated codeNov 25, 2026 · Code
- Tansegéd.hu relaunches with more than 1300 vetted teaching resourcesNov 24, 2026 · Education & Family
- Java4Shell: AI found a critical Java vulnerability; CISA requests immediate patch.Nov 17, 2026 · Code
- Google AI training in 10 states; PwC certifies 85,000 employees in AINov 16, 2026 · Work & HR
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.