<?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: Atul Maurya</title>
    <description>The latest articles on DEV Community by Atul Maurya (@typinggame).</description>
    <link>https://dev.to/typinggame</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%2F4260455%2Fce0ff171-b2d5-43f7-9f73-627fbe9ad55b.jpg</url>
      <title>DEV Community: Atul Maurya</title>
      <link>https://dev.to/typinggame</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/typinggame"/>
    <language>en</language>
    <item>
      <title>How I Built an Open Online Typing Game Platform with Real-Time 1v1 Multiplayer in React</title>
      <dc:creator>Atul Maurya</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:48:14 +0000</pubDate>
      <link>https://dev.to/typinggame/how-i-built-an-open-online-typing-game-platform-with-real-time-1v1-multiplayer-in-react-2bp5</link>
      <guid>https://dev.to/typinggame/how-i-built-an-open-online-typing-game-platform-with-real-time-1v1-multiplayer-in-react-2bp5</guid>
      <description>&lt;p&gt;How I Built an Open Online Typing Game Platform with Real-Time 1v1 Multiplayer in React&lt;/p&gt;

&lt;p&gt;Over the past few months, I set out to build TypingGame.in  (&lt;a href="https://typinggame.in" rel="noopener noreferrer"&gt;https://typinggame.in&lt;/a&gt;) — an interactive, completely free online typing academy and arcade game portal.&lt;/p&gt;

&lt;p&gt;While platforms like Monkeytype and TypeRacer dominate the market, I wanted to build something that blended educational touch-typing curriculums, real-time 1v1 PvP racing, and arcade gameplay (car racing, bubble popping, and zombie defense) into a single cohesive web application.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of how the architecture works, how WPM is calculated accurately, and how real-time 1v1 sync is handled.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Calculating Standardized WPM &amp;amp; Accuracy in Real-Time&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A common issue in novice typing tests is treating each space-separated word as a single unit. In professional and government certification standards (such as SSC CGL and RRB), typing speed is universally standardized to 5 keystrokes = 1 standard word.&lt;/p&gt;

&lt;p&gt;Here is the exact formula implemented in the speed test engine:&lt;/p&gt;

&lt;p&gt;Gross WPM = (Total Characters Typed / 5) / Time Elapsed in Minutes&lt;/p&gt;

&lt;p&gt;Net WPM = max(0, (Correct Characters / 5) / Time Elapsed in Minutes)&lt;/p&gt;

&lt;p&gt;Accuracy % = (Correct Characters / Total Characters Typed) * 100&lt;/p&gt;

&lt;p&gt;By evaluating velocity against Date.now() timestamps rather than relying on setInterval tick counts, the speedometer remains immune to browser background throttling or tab switches.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dual-Engine Architecture: Desktop Keyboard vs. Mobile Virtual Keyboards&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the trickiest challenges when building an interactive typing game online (&lt;a href="https://typinggame.in/" rel="noopener noreferrer"&gt;https://typinggame.in/&lt;/a&gt;) is handling smartphone virtual keyboards (like Android Gboard or iOS Safari).&lt;/p&gt;

&lt;p&gt;On desktop keyboards, pressing any key fires a standard KeyboardEvent with e.key.length === 1. On mobile devices, however, virtual keyboards use Input Method Editors (IME) with predictive composition, which often emit e.key = 'Unidentified' and keyCode: 229.&lt;/p&gt;

&lt;p&gt;To support both seamlessly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We track keystrokes via direct input interception overlaying the paragraph stage.&lt;/li&gt;
&lt;li&gt;If a desktop single-character keydown fires, sound effects and velocity update immediately.&lt;/li&gt;
&lt;li&gt;If a mobile virtual keyboard inserts characters via input / onChange, the engine compares the delta between userInput and targetText on the fly, starting the wall-clock timer automatically.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can try the live test on mobile or desktop at TypingGame.in Speed Test  (&lt;a href="https://typinggame.in/typing-test" rel="noopener noreferrer"&gt;https://typinggame.in/typing-test&lt;/a&gt;)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real-Time 1v1 Multiplayer Racing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the competitive arena at TypingGame.in/multiplayer, players can generate a 6-digit room code and race side-by-side.&lt;/p&gt;

&lt;p&gt;Every keystroke emits a lightweight telemetry payload:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current character index&lt;/li&gt;
&lt;li&gt;Live WPM&lt;/li&gt;
&lt;li&gt;Accuracy percentage&lt;/li&gt;
&lt;li&gt;Progress completion ratio&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A lightweight WebSocket relay synchronizes player cars on the track with interpolation, providing that nail-biting arcade racing sensation without heavy server overhead.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lessons Learned &amp;amp; What's Next&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Pre-rendering matters: Static pre-rendering of 250 routes allowed the site to load in under 500ms with 0 Cumulative Layout Shift (CLS).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Accessible inputs: Transparent focus interception provides a distraction-free experience while preserving native screen reader support.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feel free to play a few rounds on TypingGame.in (&lt;a href="https://typinggame.in" rel="noopener noreferrer"&gt;https://typinggame.in&lt;/a&gt;) and share your fastest WPM score! If you have suggestions or questions about the architecture, let's discuss in the comments below!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>gaming</category>
      <category>react</category>
    </item>
    <item>
      <title>I built a free, zero-ad typing game &amp; speed test to fix finger hesitation (includes mechanical switch audio) — would love your honest feedback!</title>
      <dc:creator>Atul Maurya</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:21:20 +0000</pubDate>
      <link>https://dev.to/typinggame/i-built-a-free-zero-ad-typing-game-speed-test-to-fix-finger-hesitation-includes-mechanical-157j</link>
      <guid>https://dev.to/typinggame/i-built-a-free-zero-ad-typing-game-speed-test-to-fix-finger-hesitation-includes-mechanical-157j</guid>
      <description>&lt;p&gt;Hey everyone,&lt;/p&gt;

&lt;p&gt;I’ve been practicing touch typing for a while, and one thing that always frustrated me about standard typing tests was that once you hit a 60–70 WPM plateau, staring at random paragraphs gets mentally draining.&lt;/p&gt;

&lt;p&gt;To fix my own hesitation habit, I ended up building &lt;a href="https://typinggame.in" rel="noopener noreferrer"&gt;https://typinggame.in&lt;/a&gt; — a free web app designed to train reactive reflexes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;🎮 8 Keyboard Arcade Games (Nitro Car Racer, Meteor Blast space defense, Zombie survival, and 1v1 quick-draw duels)&lt;/li&gt;
&lt;li&gt;⚡ Standard Speed Tests (15s, 30s, 60s, 120s) with live WPM velocity, weak-key diagnosis, and mechanical key sounds (Cherry MX Blue, Red, Brown)&lt;/li&gt;
&lt;li&gt;🎯 100 free touch typing lessons with ergonomic hand guides&lt;/li&gt;
&lt;li&gt;🆓 100% free — no sign-up, no subscriptions, no paywalls.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'd really appreciate any feedback from the community:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How does the caret responsiveness and input feel compared to Monkeytype/Typeracer?&lt;/li&gt;
&lt;li&gt;Does the weak-key diagnosis accurately spot your slowest fingers?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check it out if you have a spare minute: &lt;a href="https://typinggame.in/typing-games" rel="noopener noreferrer"&gt;https://typinggame.in/typing-games&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/typinggame.in" 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/typinggame.in" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

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