Librocco

Librocco is an open-source inventory management system for bookshops. It is also, the system running daily at Il Libraio - Cuneo — the independent Italian bookstore that originally drove its existence.

Silvio first wrote a version of Librocco more than fifteen years ago, while working in Il Libraio. The current rebuild is a continuation of that work, started for three reasons:

  1. The original system had outlived its tooling. The first version was built with ext-gwt, generating JavaScript from Java. Fifteen years of lessons embedded in real shop use were worth preserving — the stack underneath them was not.

  2. We wanted to push the boat out on local-first. Local-first patterns are hard to work in, and that’s exactly why we wanted to. The way software has been built over the last decade has made it easy to lean on a stable connection and someone else’s cloud. We think it’s worth pushing the other way so that the hard parts get easier over time — for ourselves, and for the projects that come after us.

  3. The off-the-shelf options weren’t good enough. Silvio looked at what was on the market for an independent bookshop in Il Libraio’s position, and didn’t rate any of it. The available tools were clunky and slow — and clunky, slow software has a real cost on the shop floor every day, in a job where the next customer is already at the counter. And the two reasons connect: those tools were slow in large part because they were not local-first — every stock action a round-trip to someone else’s server.

Librocco is local-first by design. It runs in the browser on top of CR-SQLite — a CRDT extension to SQLite compiled to WebAssembly — stores its data locally, and resolves conflicts across terminals automatically. It is released under the GNU Affero licence, and is used daily in Il Libraio to manage 100k+ stock and transaction records. You can try it with full production data at libroc.co/demo.

Case Studies

Feeling stuck or unsure how to proceed?

With every project, we follow a fixed-time, variable-scope approach inspired by Basecamp's Shape Up. Book a short 30 minute call with us to help shape and reduce the scope of your problem until a sensible next step emerges. No obligation beyond that. You'll leave with a clearer framing and a concrete next step, whether or not we continue working together.