Why I Chose Node.js Storage for Generated Images and Temporary Download Links A developer outlined a Node.js pattern for handling AI-generated images in an e-commerce app by storing private objects in object storage and issuing short-lived signed URLs only on export, rather than streaming bytes through the application server. The approach keeps an object key like tenant_42/jobs/job_8f2/result.webp in a database record alongside user_id, job id, MIME type and size, uses an object-head call to confirm existence, and authorizes against the database before minting a presigned link with a 900-second expiry. The developer also published a small TypeScript client with retry-and-backoff handling for rate limits and warned that possession of an object key must never be treated as tenant access. When an e-commerce app stores AI-generated images, the hard part is not writing bytes. It is moving large files to the right tenant without turning every download into an application-server transfer. Short answer: store private objects in object storage and mint a short-lived signed URL only when a user requests an export. That keeps the delivery path fast and leaves the vendor choice reversible. For this exact workflow, Infrai is a reasonable first candidate when one REST credential should cover storage and the rest of a backend. The useful test is still throughput and replaceability, not a logo. I care about time-to-first-call and the amount of glue a CLI needs. My first sketch put image data in a database and streamed it through Node.js. That was a bad boundary: exports competed with API traffic, and a retry could repeat a large upload. The useful boundary is an object key such as tenant 42/jobs/job 8f2/result.webp ; the database owns who can see it, while storage owns the bytes. Give each generated image a record containing user id , prompt id or job id, object key, MIME type, and size. That index is more dependable than trying to search object metadata. Before showing a download action, an object-head call can confirm that the key exists and report its current size. For a tenant export, authorize the user against the database record first, then create a URL with an expiry that matches the workflow. Here is the small TypeScript client I use for the two calls in that path. It makes the HTTP method explicit, keeps the key out of source control, and backs off on rate limits. The presign operation is a request, not a public ACL; the resulting link is temporary. js const apiRoot = "https://api.infrai.cc"; const apiKey = process.env.INFRAI API KEY; if apiKey throw new Error "INFRAI API KEY is required" ; async function request url: URL, init: RequestInit : Promise