Libraries are collections of prescribed, tested code that developers can reuse in their projects. They contain functions, classes and methods that automate common tasks, such as validating forms, editing images or connecting to external services. Instead of programming each function from scratch, you integrate a library and call the required functionality. For an SME online shop, for example, this means that you don't have to build payment processing, product filters or a search function yourself but can build in a proven library.
How libraries work in web projects
You install a library via a package manager such as npm for JavaScript or Composer for PHP. After installation, you import the library into your code and use the functions it contains. An example: the library Lodash offers hundreds of useful functions for working with data arrays. Instead of writing a sort function yourself, call _.sortBy(). The library is separate from your own code and is loaded only where you need it. This keeps your project uncluttered and makes updates easier. Libraries are modular: you choose which components to import. This avoids unnecessary ballast in your website and keeps load times down. For more information on how libraries fit into modern web development, see the Mozilla Developer Network documentation on package management.
Why libraries came into being and why they count now
In the early years of web development, developers rewrote a lot of code for each project. This took time and led to errors. Libraries emerged to combat this repetition. Developers shared their solutions as open source packages so that others did not have to reinvent the wheel. Well-known examples are jQuery for DOM manipulation and Moment.js for date processing. Today, libraries are indispensable in any serious web project. They make complex functionality accessible to small teams and allow you to move quickly. For an SME company, this means that a web developer can build a feature in days that would otherwise take weeks.
What libraries bring to SME companies
Libraries lower the threshold for building professional functionality into your website or online shop. Think of a live-chat widget, an advanced search bar or a dynamic product configurator. By using libraries, you do not need a specialised team in-house. An experienced web developer can switch quickly with the right libraries. In addition, popular libraries are well-documented and tested by thousands of developers, which reduces the chance of bugs. In practice, we at Monkey Vision see that projects that make smart use of libraries deliver 30 to 40 percent faster than bespoke projects from scratch. This saves budget and ensures you can get new features online faster. Maintenance also becomes easier: updates of libraries are often solved with one command.