Lenny (software)
Lenny is a free, open-source plug-and-play digital library lending system. Inspired by the concept of "Little Free Libraries®", Lenny allows any individual, community, archive, or institution to set up their own online lending library infrastructure.
History
[edit]The Lenny software was founded from scratch by Roni Bhakta in collaboration with the Internet Archive's Open Library team (spearheaded by Michael E. Karpeles). Bhakta worked heavily on the backend architecture using FastAPI and Python as part of his 2025 Google Summer of Code project under ArchiveLabs. It acts as an answer to the information-freedom vision initially championed by figures like Aaron Swartz. You can interact with the live demo on reader.archive.org.
During its inception, Bhakta developed a one-step installation script (lennyforlibraries.org/install.sh) that successfully bootstrapped over 800 open-access ebooks for instant deployment, effectively bringing sidewalk libraries online globally.
Philosophy
[edit]Lenny is built on the belief that libraries should own their digital infrastructure, rather than merely renting access to it from commercial vendors. It envisions a federated future for libraries, empowering individual institutions to join a global network of sovereign, interoperable digital collections. By providing a "Library-in-a-Box", Lenny ensures universal access to knowledge mirroring the mission of the Internet Archive and Open Library.
Deployment options
[edit]Lenny is designed to be highly versatile, offering three main deployment capabilities tailored to different library needs:
- Self-Hosted: Libraries can run Lenny as a Docker container on their own standard Linux servers, providing full control, flexibility, and deep Open Library integration.
- Plug & Play: Lenny can be pre-installed on hardware (such as a Raspberry Pi). This allows schools or remote libraries to physically plug it in and start lending immediately, making it completely offline-ready.
- Hosted: A fully-managed cloud instance equipped with a web-based admin dashboard, designed for libraries wanting zero-maintenance scalable infrastructure.
Features
[edit]- Frictionless Lending: Out-of-the-box infrastructure intended to be quickly set up without complex digital rights management configuration overhead. It natively supports content from Standard Ebooks and OpenLibrary.press.
- OPDS Feeds Engine: Generates Open Publication Distribution System (OPDS) feeds natively. Bhakta architected a standalone OPDS backend using this technology to serve millions of catalog items, which now acts as the core engine powering the new reader.archive.org book explorer.
Architecture
[edit]Lenny is fundamentally a microservices ecosystem orchestrated via Docker. Backend services are handled by FastAPI in Python, utilizing SQLAlchemy connected to a PostgreSQL database. Asset management leverages an S3/Minio object store. Readium LCP is supported for encrypted/authenticated lending models.