Skip to content
mybibli
v1.29.0 · current

Your home library, properly cataloged.

mybibli is a self-hosted web app to catalog, locate, and loan your personal library. Barcode-first, multi-media, multi-role — and your data never leaves your network.

140+
volumes in prod
~900
tests green
8
metadata providers
4
languages (EN/FR/DE/IT)
In the wild

Live in production.

Screenshots of v1.24.0 on a small sample library — the same code that runs on the household NAS that drives the project, and that's on Docker Hub right now.

mybibli home page — the expanded sidebar on the left (Home, Catalog, Locations, Series, Borrowers, Loans, Wish list, Labels, Proposals, Admin; language, theme, log out and Collapse menu at its foot), and on the right the search bar, genre filters and dashboard counters.
Home. The sidebar, grouped by role and collapsible to a column of icons; search, genre filters, dashboard counters and the recent additions, with cover thumbnails fetched through the metadata-provider chain.
mybibli locations page — hierarchical tree of rooms, bookcases and shelves with their L-codes and per-node volume counts, next to the sidebar.
Locations. Configurable hierarchy (room → bookcase → shelf …) with per-node volume counts, inline create / edit / delete, and a barcode-on-shelf workflow.
mybibli shelf-audit page — list of volumes flagged for physical verification, with resolved location and V-code per row.
Shelf-audit. Volumes flagged "À contrôler" — single or in bulk for an entire shelf — sorted by location → V-code with a one-click clear affordance once they're back in place.
mybibli admin Health tab — entity counts, MariaDB version, disk usage, and per-provider reachability probes.
Admin > Health. Entity counts, MariaDB version, disk usage, and per-provider reachability probes refreshed every 5 minutes in the background.

More than a spreadsheet.

Built for collectors who want their library to actually work. Scan a barcode, find a book on a shelf, lend it to a friend — and see what's missing in a series.

Barcode-first cataloging

Scan an ISBN or EAN-13. Title metadata resolves asynchronously through a chain of nine providers — BnF, Google Books, Open Library, Library of Congress, K10plus, MusicBrainz, OMDb, TMDb, BDGest — with cover-image download.

Multi-media support

Books, BD/comics with multi-position omnibus volumes, audio releases, films and series — each typed correctly with the right provider chain selected automatically.

Series & gap detection

See which volumes are missing in your series at a glance, and name the ones you do not own yet as expected tomes — one click puts them on the wish list, scanning the book fills the gap. Dewey-based browsing and a similar-titles section too.

Storage-location tracking

Configurable hierarchy — room → shelf → row, or whatever fits your home. Each shelf gets a barcode; scan the shelf, scan the volume, done.

Loan management

Borrower CRUD, loan registration, automatic location restoration on return, admin-configurable overdue threshold, per-borrower history.

Multi-role access

Anonymous (read-only), Librarian (catalog + loans), Admin (everything). Session inactivity timeout with keep-alive toast. Four interface languages (EN / FR / DE / IT), per-user.

AI agents, under supervision

A built-in MCP server lets an AI agent on your network — Claude Code or any MCP client — read the catalog and propose series, missing tomes, metadata and covers, citing its sources. It can also flag a doubtful title or copy with a management label, correct a series — its name, open or closed, its total — and estimate what a volume is worth, following the skills an admin writes for it. It never changes the catalog: a librarian compares, edits, accepts or rejects each proposal on the Proposals page.

In production. mybibli's own catalog was the first to try it. One afternoon, an AI agent went through the household library looking for what was missing, and came back with 352 suggestions, each with its sources. Reviewing them over a cup of tea, the librarian accepted 245: 190 books gained a description, a publisher, a year, their authors and illustrators, or a cover. Most were titles the usual library catalogs had never heard of, the kind of gaps that would otherwise have waited years for someone to fill them by hand.

Backups built in

One file holds the whole library — the database and every cover. mybibli writes it when you click Back up now, or every hour when something changed, keeps the last day and one backup per day for two weeks, and restores any of them from the same admin tab, writing a safety backup of the current state first. A cover check finds the cover files no title owns and the titles whose cover is missing, and repairs both — but refuses when the covers folder looks unmounted.

Hardened by construction

Security that sleeps next to your front door.

Self-hosted means your home network. So mybibli is built defensively from day one — not as an afterthought.

  • CSP

    Strict Content Security Policy

    No unsafe-inline, no unsafe-eval. Every template — server-rendered or HTMX fragment — is audited for inline script and style attributes.

  • CSRF

    Per-session synchronizer token

    Constant-time compare on every state-changing request. Forms inject the token automatically; HTMX inherits via a small JS listener. Exempt-route allowlist is frozen and policed by tests.

  • Scanner-guard

    A USB barcode burst that arrives while a modal is open is intercepted at document-capture phase — no leakage into background scan fields, no accidental Cancel/Confirm activation.

  • Data stays at home

    No cloud sync, no telemetry, no analytics. Argon2 password hashing, HttpOnly + SameSite cookies, soft-delete with 30-day auto-purge.

Boring stack, on purpose.

Server-rendered HTML, type-checked templates, no SPA framework. The whole UI talks to the server with HTMX over the same routes that serve the pages.

Backend
Rust 2024 + Axum 0.8

Compiled binary, async tokio runtime, zero-cost middleware tower stack.

Database
MariaDB + SQLx 0.8

Compile-time query checking via the offline cache. Versioned migrations checked into the repo.

Templates
Askama 0.15

Compile-time type-checked Jinja-style templates. Auto HTML-escaping, no surprises.

Frontend
HTMX 2 + Tailwind 4

No build step beyond Tailwind. Server-rendered HTML; small ES modules where the UX needs it.

Auth
Sessions + Argon2

Cookie-based sessions, per-session CSRF synchronizer token, role-based access control.

i18n
rust-i18n

English + French today, key-by-key parity enforced by tests. New languages drop in as a single YAML file.

Testing
cargo + Playwright

~1,650 unit, ~800 DB integration, ~440 Playwright E2E across two CI lanes (seeded + wizard).

CI/CD
GitHub Actions

Rust tests + clippy + sqlx-prepare check, DB integration, Playwright E2E and wizard E2E — gated on every PR.

v1.29.0 is live.

v1.29.0 — fewer bugs, built-in backup, and daily-use fixes: mybibli now backs itself up — the whole database and every cover in one file, on demand or every hour, rotated, and restored from the admin page behind a safety backup (#657); a cover check repairs orphan and missing cover files (#658); the Health tab watches slow statements and refusals (#708). Daily use: remove a book from the wish list (#714), send a missing series tome to it (#715), describe a storage location (#716), go through the location tree with the keyboard (#700) — and fewer bugs. Four additive migrations and one new folder to mount, ./backups: see the release notes.