Giovanni Gasperini
← Projects

LENS

The management tool that replaced spreadsheets and scripts.

Role
Analysis, architecture, development
Period
2026
Status
In use
4 ways to upload: web, Lightroom, Finder, terminal
6 roles: admin, editor, designer, photo, video, drone
1 h maximum lifetime of a signed download link

The problem

The business ran on Google Sheets and Google Apps Script: one sheet for events, one for venues, one for photographers, plus scripts for emails and deliveries. It worked, but every new need became another column or another script, and files travelled through links and shared folders.

Who it is for

The team working at events — photographers, videographers, designers, editors — and the client venues, who need to receive photos and graphics in an orderly way.

The solution

LENS brings together event calendar, venues and people, reports and deliveries, plus a file cloud organized by venue and event. Each event creates its own folders (year / event / photos, graphics), and venues only see what concerns them.

The migration was gradual: the old system stayed live while LENS ran alongside it and then replaced it, without stopping the work.

Architecture and technical choices

  1. 01 Clients Web app (PWA), Lightroom plugin, Mac agent, CLI
  2. 02 Edge Functions JWT check and role-based permissions
  3. 03 Postgres + RLS Events, venues, people, folders, files
  4. 04 Backblaze B2 Private bucket, prefix-scoped tokens
One backend, four ways to use it
  • Private bucket, prefix-scoped access. No file is public: Edge Functions issue B2 download tokens limited to one folder and valid for an hour, cached both in memory and in the database.
  • Direct uploads to B2 from the browser (6 in parallel, reusing the upload URL) and thumbnails generated client-side on a canvas, so the server never processes images.
  • Video streaming through a proxy that supports Range requests, so you can seek through videos without downloading them.
  • Lightroom Classic plugin in Lua: export from Lightroom straight into the right event folder.
  • macOS agent in Python that mounts the cloud in Finder with rclone + macFUSE and syncs changes back to the database.
  • Virtual folders: they only exist in the database; renaming or moving means a controlled copy-and-delete on B2, never a bulk operation on the whole bucket.

What I learned

Replacing a system that works is harder than building a new one: the key was letting them coexist and migrating one piece at a time. And a management tool only gets used if it lives inside the tools people already open every day — hence the Lightroom plugin and Finder.