How We Built 26 Privacy-First, Zero-Login GLP-1 Web Calculators in Next.js & TypeScript
When people search for GLP-1 reference utilities—like visualizing estimated medication half-life accumulation across weeks, converting 60-click multi-dose pen math, or checking room-temperature travel limits—most tools o
When people search for GLP-1 reference utilities—like visualizing estimated medication half-life accumulation across weeks, converting 60-click multi-dose pen math, or checking room-temperature travel limits—most tools on the web either hide behind aggressive paywalls, load heavy ad trackers, or send health inputs to a remote server.
As part of GlowBack, we decided to build a suite of 26 free, ad-free, no-login GLP-1 browser tools that run 100% client-side in Next.js + TypeScript across up to 17 languages.
Here is a quick engineering breakdown of the three most technically interesting calculators in the suite and the patterns we used to keep them accurate, testable, and privacy-preserving.
1. Pure-Function Pharmacokinetics Modeling (Zero Backend State)
Our flagship GLP-1 Plotter lets users estimate and visualize 1 to 52 weeks of relative medication levels for injectable semaglutide, oral semaglutide, tirzepatide, and retatrutide—with both Accumulate and Compare modes, CSV export, and shareable URL parameters.
Key implementation choices:
- Deterministic pure math modules: All absorption/elimination curve calculations live in pure TypeScript modules decoupled from React state so edge cases can be verified with unit tests.
- Shareable URL state without storing PII: Instead of persisting user dosing histories in a database, schedules serialize cleanly into query parameters—so users can bookmark or share an educational scenario with zero account creation.
2. Encoding Official Label Boundaries as Structured Data
Health-adjacent tools fail when edge cases get hidden inside UI prose. For two newer tools, we modeled regulatory boundaries directly as typed tables:
| Web Tool | Core Engineering Problem | Key Reference Output |
|---|---|---|
| GLP-1 Plotter | Multi-week exponential buildup & half-life overlap | 1–52 week curves, accumulate vs compare mode, CSV export |
| Mounjaro KwikPen Clicks Calculator | 60-click multi-dose pen ratio & off-label warning surfacing | Exact click/mg reference table + EMA labeling disclaimers |
| GLP-1 Travel & Storage Calculator | Presentation-specific stability limits (21 / 28 / 30 / 56 days) | Unrefrigerated countdown, heat/freeze alerts, time-zone planning |
For the GLP-1 Travel & Storage Calculator, every presentation (Ozempic, Wegovy pen, Mounjaro single-dose vs KwikPen, Zepbound pen/vial, Saxenda, Trulicity) is defined in a typed table capturing:
- Maximum unrefrigerated days (e.g., 21 vs 28 vs 30 vs 56 days)
- Upper temperature threshold (
30°C / 86°Fvs25°C / 77°F) - Whether re-refrigeration is explicitly disallowed once warmed
- Automated boundary tests covering freeze exposure (
< 2°C), heat excursions, and trip durations exceeding label limits
3. Accessibility, Mobile Viewports & Multilingual Routing
Because many users check these calculators on phones right before travel or dosing day, every tool goes through automated checks for:
- Zero horizontal overflow at
320pxmobile and1440pxdesktop widths - WCAG AA contrast and screen-reader labels via automated axe-core checks
- Clear separation between 100% free, no-login web utilities and the optional iOS/Android GlowBack companion app
Note: All calculators are built strictly for educational reference alongside official FDA/EMA prescribing information and do not provide medical advice, diagnosis, or treatment.
If you are building privacy-first browser utilities in Next.js or working on structured health/reference calculators, feel free to explore the full directory at glowback.app/tools — feedback on UX or additional edge cases to model is always welcome!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.