<?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: Eleftherios Papadopoulos</title>
    <description>The latest articles on DEV Community by Eleftherios Papadopoulos (@sellinios).</description>
    <link>https://dev.to/sellinios</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%2F3832158%2Fd26b4e4b-c28e-417c-aad8-fbdb2e344cb4.png</url>
      <title>DEV Community: Eleftherios Papadopoulos</title>
      <link>https://dev.to/sellinios</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sellinios"/>
    <language>en</language>
    <item>
      <title>I built a 6.6KB embeddable weather widget — here's how it works</title>
      <dc:creator>Eleftherios Papadopoulos</dc:creator>
      <pubDate>Wed, 18 Mar 2026 18:16:03 +0000</pubDate>
      <link>https://dev.to/sellinios/i-built-a-66kb-embeddable-weather-widget-heres-how-it-works-aa</link>
      <guid>https://dev.to/sellinios/i-built-a-66kb-embeddable-weather-widget-heres-how-it-works-aa</guid>
      <description>&lt;p&gt;I've been building &lt;a href="https://www.wfy24.com" rel="noopener noreferrer"&gt;wfy24.com&lt;/a&gt; solo for the past couple of years — a weather platform covering 5M+ locations in 51 languages. I just shipped a free embeddable weather widget and wanted to share how it works under the hood.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Most weather widgets are bloated (100KB+), look ugly, break your CSS, and require paid subscriptions. I wanted something that's tiny, beautiful, and genuinely free.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Widget
&lt;/h2&gt;

&lt;p&gt;One script tag, that's it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://www.wfy24.com/widget.js"&lt;/span&gt;
  &lt;span class="na"&gt;data-key=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_API_KEY"&lt;/span&gt;
  &lt;span class="na"&gt;data-city=&lt;/span&gt;&lt;span class="s"&gt;"london-gb2643743"&lt;/span&gt;
  &lt;span class="na"&gt;data-theme=&lt;/span&gt;&lt;span class="s"&gt;"auto"&lt;/span&gt;
  &lt;span class="na"&gt;data-lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What you get:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Real-time temperature from 23,000+ weather stations&lt;/li&gt;
&lt;li&gt;Lightning detection within 100km radius&lt;/li&gt;
&lt;li&gt;Rain nowcast (minutes until rain/dry)&lt;/li&gt;
&lt;li&gt;3-day forecast with min/max temps&lt;/li&gt;
&lt;li&gt;50+ languages, metric/imperial&lt;/li&gt;
&lt;li&gt;Light/dark/auto theme&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Details
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Size:&lt;/strong&gt; 6.6KB gzipped. No dependencies, no frameworks, no jQuery.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shadow DOM:&lt;/strong&gt; The widget renders inside a Shadow DOM, so it won't interfere with your styles and your styles won't interfere with it. Zero CSS conflicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto-refresh:&lt;/strong&gt; Updates every 5 minutes automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Location detection:&lt;/strong&gt; Supports GPS (if permitted) or IP-based geolocation, or you can set a fixed city.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Data Pipeline
&lt;/h2&gt;

&lt;p&gt;This is the part I'm most proud of. The backend runs a system called Hyperion — a trust-scored data blending engine that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Collects readings from 23,000+ weather stations across 12 networks&lt;/li&gt;
&lt;li&gt;Assigns trust scores to each station based on historical accuracy&lt;/li&gt;
&lt;li&gt;Blends the data using inverse distance weighting&lt;/li&gt;
&lt;li&gt;Fuses it with radar, satellite, and NWP (numerical weather prediction) data&lt;/li&gt;
&lt;li&gt;Validates against ERA5 reanalysis data&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The result is real-time weather data that's more accurate than any single source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Go&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; PostgreSQL&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CDN:&lt;/strong&gt; BunnyCDN&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web server:&lt;/strong&gt; nginx&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Free API key, no credit card, no account needed — just your email and domain.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://www.wfy24.com/en/widgets" rel="noopener noreferrer"&gt;https://www.wfy24.com/en/widgets&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love your feedback — what features would you want in an embeddable weather widget?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>performance</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
