<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fred</title>
    <description>The latest articles on DEV Community by Fred (@fredguerraf1993).</description>
    <link>https://dev.to/fredguerraf1993</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3756502%2Fc739f336-2ffb-4657-88aa-b478f9cd9cda.jpg</url>
      <title>DEV Community: Fred</title>
      <link>https://dev.to/fredguerraf1993</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fredguerraf1993"/>
    <language>en</language>
    <item>
      <title>I built a physics-based PWA because health devices ignore basic geometry</title>
      <dc:creator>Fred</dc:creator>
      <pubDate>Sun, 15 Feb 2026 09:20:00 +0000</pubDate>
      <link>https://dev.to/fredguerraf1993/i-built-a-physics-based-pwa-because-health-devices-ignore-basic-geometry-2e1n</link>
      <guid>https://dev.to/fredguerraf1993/i-built-a-physics-based-pwa-because-health-devices-ignore-basic-geometry-2e1n</guid>
      <description>&lt;h2&gt;
  
  
  The Pain
&lt;/h2&gt;

&lt;p&gt;I got into Red Light Therapy for recovery and quickly realized the hardware market is messy.&lt;/p&gt;

&lt;p&gt;Manufacturers advertise numbers like “100 mW/cm² irradiance”, but that value is almost always measured at the panel surface.&lt;br&gt;
Move even a few inches away and the delivered energy drops sharply due to basic geometry (Inverse Square Law).&lt;/p&gt;

&lt;p&gt;This is high-school physics, yet most manuals never mention it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix
&lt;/h2&gt;

&lt;p&gt;I didn’t want to open Excel before every workout.&lt;/p&gt;

&lt;p&gt;So I built a physics-based dosing calculator that adjusts session time in real-time based on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Distance from the device&lt;/li&gt;
&lt;li&gt;Actual irradiance&lt;/li&gt;
&lt;li&gt;Target energy (J/cm²)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No guessing. Just math.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Equation
&lt;/h2&gt;

&lt;p&gt;Energy (J/cm²) = Irradiance (mW/cm²) × Time (seconds)&lt;/p&gt;

&lt;p&gt;The hard part is that irradiance is not constant — it changes non-linearly with distance.&lt;br&gt;
That’s the entire reason this tool exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a PWA?
&lt;/h2&gt;

&lt;p&gt;I built this as a Progressive Web App for practical reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Offline-first&lt;/strong&gt; — works in gyms and basements&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No app store friction&lt;/strong&gt; — no reviews, no bloat&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast&lt;/strong&gt; — instant load, client-side only&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy-friendly&lt;/strong&gt; — no tracking, no ads&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where I Want to Take This Next
&lt;/h2&gt;

&lt;p&gt;This is still an early tool, but I’m thinking about expanding it in a few directions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Body-zone–aware dosing&lt;/strong&gt;
Different tissue depths (skin, muscle, joints, scalp) need different dose ranges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Device database&lt;/strong&gt;
A community-driven list of real-world measurements for popular panels (instead of marketing specs).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protocol guidance&lt;/strong&gt;
Non-medical, educational suggestions based on use case (recovery, skin, hair), not just raw numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integrated timer &amp;amp; planner&lt;/strong&gt;
Sessions synced with the calculation so you don’t need a second app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Current tool: &lt;a href="https://biohackingtested.com/red-light-therapy-calculator/" rel="noopener noreferrer"&gt;https://biohackingtested.com/red-light-therapy-calculator/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;UX clarity&lt;/li&gt;
&lt;li&gt;Distance handling&lt;/li&gt;
&lt;li&gt;What would make this actually useful long-term&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note: This is not a medical device. Educational / personal-use tool only.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F756ur159ob7px5mixv53.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F756ur159ob7px5mixv53.webp" alt="Red light therapy dosing calculator showing distance, irradiance, and session time" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdbkr5a43du3uoyyqfjm1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdbkr5a43du3uoyyqfjm1.webp" alt="Red light therapy session planner with calendar and automatic scheduling" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhhhmjtra322myz0rj3k9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhhhmjtra322myz0rj3k9.webp" alt="Red light therapy session timer synced with calculated dose" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>pwa</category>
      <category>webdev</category>
      <category>healthtech</category>
    </item>
  </channel>
</rss>
