FastAPI rejects status_code=204 on routes with a return type annotation. Return an explicit Response(status_code=204) instead.
Collect browser-side worker round-trips, computation times, main-thread operations, and feature counts, batch them client-side, and expose as Prometheus histograms via a new POST /api/perf endpoint.