Home
← All projects

Web app · Feb 2026 · Working prototype

ShelfSnap

Photograph a bookshelf and get a browsable catalogue of every book on it.

Point your phone at a bookshelf and ShelfSnap identifies the books from their spines, then fills in covers, ratings and genres, ready to export as a spreadsheet.

  • Gemini 2.5 Flash reads titles and authors from one shelf photo
  • 3-tier lookup: Open Library, then Google Books, then Goodreads
  • API keys stay server-side in Vercel functions, with a strict CSP
  • ShelfSnap start screen on a phone with Take Photo and Upload Image buttons

    Start screen

  • ShelfSnap start screen on desktop explaining snap, identify and explore

    On desktop

The itch

Cataloguing a home library by hand takes an afternoon per shelf. A photo should be enough.

What I built

A React app with a few Vercel serverless functions behind it.

  1. You upload a photo of a shelf.
  2. Gemini 2.5 Flash identifies each book’s title, author and, where it can, ISBN.
  3. Each book is looked up in Open Library first, then Google Books as a fallback.
  4. Goodreads enrichment adds ratings, genres and better covers without blocking the list.
  5. You review and select the results, then export them to CSV.

The hard part

Book data is inconsistent across sources, so matching scores each candidate before choosing it. OCR through Google Vision was the first approach; Gemini reading the whole photo turned out more accurate and replaced it.

All API keys live in server-side functions in production, and the site ships a strict Content-Security-Policy that only allows the image and data hosts it needs.

Where it stands

A working prototype, built in February 2026 and updated since.

The video uses “Terry Pratchett collection” by Damien Pollet (Wikimedia Commons, CC BY-SA 2.0) as the shelf photo.