Installable Fitness PWA With a Non-Scrolling Viewport Layout
Apps & experiments · Creator, sole engineer · shipped
Fitness tracking on mobile web is ruined by scroll. The page scrolls, the list scrolls, browser chrome appears and disappears, and the layout shifts under your thumb mid-set.
Code: https://github.com/vasu-devs/Health-os
The detail
This locks the entire page to the viewport so it never grows a scrollbar - only the workout and meal lists scroll internally. It uses dynamic viewport units rather than the older fixed unit, which is what makes mobile browser chrome behave instead of causing the classic jump.
Installable to the home screen and runs like a native app. The service worker is generated only in production builds, deliberately - a caching service worker in development produces stale-asset bugs that cost hours to diagnose.
Next.js, TypeScript, Tailwind, Supabase.
What I did
- Built an installable progressive web app with offline-capable service worker generation
- Solved the mobile viewport problem using dynamic viewport units so browser chrome does not shift the layout
- Locked the page so only internal panes scroll, eliminating layout shift mid-interaction
- Configured service worker generation for production builds only to avoid stale-asset bugs in development
Stack
Next.js, TypeScript, PWA, Service Workers, Supabase, Mobile Web
Case study: https://www.siddhvasudev.com/projects/installable-fitness-pwa-with-a-non