Skip to content

abhayvatsa/vatsagram

Repository files navigation

📸 Vatsagram

A minimalistic, unbranded, performant web application for photos. Written in React, TypeScript and Next.js. Using Sharp for image processing. Deployed on Vercel.

The purpose of this application is to render a photo site with optimal speed. The layout and initial HTML load are optimized for a fast user experience. Images are processed using Sharp to generate various responsive sizes, with a minimal number of low-resolution, blurred versions injected into the initial HTML as base64-encoded strings. The remaining base64-encoded images are loaded progressively to enhance performance.

To balance speed with varied photo aspect ratios, consistently sized images with content-aware cropping are used for the list view, while variably sized images are used for the detail view. This approach ensures a fast-loading list view and full image display in the detail view.

See it live at vatsagram.com.