<?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: Simon D</title>
    <description>The latest articles on DEV Community by Simon D (@nomis_d_fde2633c3f3).</description>
    <link>https://dev.to/nomis_d_fde2633c3f3</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3998044%2F2c6577ab-780c-4d9c-b2bf-48e706a754af.png</url>
      <title>DEV Community: Simon D</title>
      <link>https://dev.to/nomis_d_fde2633c3f3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nomis_d_fde2633c3f3"/>
    <language>en</language>
    <item>
      <title>I built a free chess training web app with React + FastAPI + Stockfish - here's how</title>
      <dc:creator>Simon D</dc:creator>
      <pubDate>Tue, 23 Jun 2026 05:53:32 +0000</pubDate>
      <link>https://dev.to/nomis_d_fde2633c3f3/i-built-a-free-chess-training-web-app-with-react-fastapi-stockfish-heres-how-2cmg</link>
      <guid>https://dev.to/nomis_d_fde2633c3f3/i-built-a-free-chess-training-web-app-with-react-fastapi-stockfish-heres-how-2cmg</guid>
      <description>&lt;h1&gt;
  
  
  I built a free chess training web app with React + FastAPI + Stockfish — here's how
&lt;/h1&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6kouir8e1zf87fzucvvx.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6kouir8e1zf87fzucvvx.png" alt=" " width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few months ago I started converting my personal chess training desktop app (Python + tkinter) into a full web application. The result is &lt;strong&gt;PenguinChess&lt;/strong&gt;, a free chess training platform with no ads and no account required.&lt;/p&gt;

&lt;p&gt;Here's what I built and the technical choices behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the app does
&lt;/h2&gt;

&lt;p&gt;The site follows the natural logic of a chess game :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Openings&lt;/strong&gt; : line-by-line interactive training with the ability to create custom openings&lt;/li&gt;
&lt;/ul&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4q4f7ixpr3pcaig5b7w4.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4q4f7ixpr3pcaig5b7w4.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tactics&lt;/strong&gt; : 50k+ puzzles (from Lichess CC0 database) filterable by theme and Elo level, with a competitive mode using a live Elo rating system&lt;/li&gt;
&lt;/ul&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp2asadt8lvtma6l494ug.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp2asadt8lvtma6l494ug.png" alt=" " width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Endgames&lt;/strong&gt; : theory lessons and practical training against Stockfish at variable Elo&lt;/li&gt;
&lt;/ul&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg339uq7hbodnoz6qxkk3.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg339uq7hbodnoz6qxkk3.png" alt=" " width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Analysis&lt;/strong&gt; : full position analyzer powered by Stockfish 16&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything is free, no signup required, no paywall.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Frontend&lt;/strong&gt; : React 19 + Vite, chess.js for move logic, custom SVG pieces rendered inline, i18next for FR/EN internationalization, Recharts for the Elo progression graph.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backend&lt;/strong&gt; : Python FastAPI, python-chess for move validation, Stockfish 16.1 binary downloaded at startup on the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Database&lt;/strong&gt; : PostgreSQL via Supabase + SQLAlchemy ORM. I started with SQLite locally and migrated to Supabase for persistent production data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auth&lt;/strong&gt; : JWT tokens with python-jose, bcrypt password hashing, password reset flow via Resend API (SMTP is blocked on Render's free tier — learned that the hard way).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hosting&lt;/strong&gt; : Vercel for the frontend, Render for the backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Interesting technical challenges
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stockfish on a free server&lt;/strong&gt; : Render's free tier doesn't persist files between deploys, so Stockfish is downloaded at every cold start (~50MB). It works fine but adds a few seconds of latency on the first request after inactivity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SMTP blocked on Render&lt;/strong&gt; : when I implemented the password reset email flow, I discovered that Render's free tier blocks outbound SMTP connections entirely. The fix was switching to Resend's HTTP API instead of smtplib.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Elo rating system for tactics&lt;/strong&gt; : I implemented a soft Elo formula (K=10) with a placement multiplier (x2 for the first 10 puzzles, x1.5 up to the 20th) to speed up initial calibration. Each puzzle only affects the score once — first mistake counts as a loss, clean solve counts as a win.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Opening mastery with EMA&lt;/strong&gt; : instead of tracking a fixed window of the last 10 attempts, I use an exponential moving average (alpha=0.2) so that recent performance is weighted more heavily. Mastery threshold is 75%.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F89hov75x3uptixwkmj23.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F89hov75x3uptixwkmj23.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React was completely new to me — I came from Python desktop development. The learning curve was steep but the ecosystem is great.&lt;/li&gt;
&lt;li&gt;Free hosting tiers have real constraints (no SMTP, ephemeral filesystem, cold starts) that you only discover in production.&lt;/li&gt;
&lt;li&gt;SQLite is great for local dev but migrating to PostgreSQL mid-project requires careful attention to dialect differences.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it / feedback welcome
&lt;/h2&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://penguinchess.vercel.app/" rel="noopener noreferrer" class="c-link"&gt;
            PenguinChess — Entraînement aux échecs gratuit, sans inscription
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Entraîne-toi aux échecs gratuitement et sans inscription : ouvertures, tactiques, finales et analyse avec Stockfish. Plus de 50 000 puzzles disponibles en français.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpenguinchess.vercel.app%2Ffavicon.svg" width="100" height="100"&gt;
          penguinchess.vercel.app
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;I'm looking for honest feedback, especially from chess players and developers. What's missing? What would you improve?&lt;/p&gt;

&lt;p&gt;Happy to answer any technical questions in the comments!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>react</category>
      <category>chess</category>
    </item>
  </channel>
</rss>
