<?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>Forem: Nico Hirsch</title>
    <description>The latest articles on Forem by Nico Hirsch (@nico_hirsch_87f778e5c4724).</description>
    <link>https://forem.com/nico_hirsch_87f778e5c4724</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%2F3655553%2F50b4a484-da02-4d16-ae96-e82741d540eb.png</url>
      <title>Forem: Nico Hirsch</title>
      <link>https://forem.com/nico_hirsch_87f778e5c4724</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/nico_hirsch_87f778e5c4724"/>
    <language>en</language>
    <item>
      <title>I built a real-time multiplayer typing game (and shipped 2 features in 5 days based on feedback)</title>
      <dc:creator>Nico Hirsch</dc:creator>
      <pubDate>Wed, 10 Dec 2025 13:49:21 +0000</pubDate>
      <link>https://forem.com/nico_hirsch_87f778e5c4724/i-built-a-real-time-multiplayer-typing-game-and-shipped-2-features-in-5-days-based-on-feedback-1379</link>
      <guid>https://forem.com/nico_hirsch_87f778e5c4724/i-built-a-real-time-multiplayer-typing-game-and-shipped-2-features-in-5-days-based-on-feedback-1379</guid>
      <description>&lt;h1&gt;
  
  
  I built a real-time multiplayer typing game (and shipped 2 features in 5 days based on feedback)
&lt;/h1&gt;

&lt;h2&gt;
  
  
  What is TYPECHAMP?
&lt;/h2&gt;

&lt;p&gt;I built &lt;a href="https://typechamp.com" rel="noopener noreferrer"&gt;TYPECHAMP&lt;/a&gt; - a real-time multiplayer typing race game where you compete against friends (or strangers) to see who can type the fastest.&lt;/p&gt;

&lt;p&gt;Think TypeRacer meets modern web tech.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js 16 + React 19 (with the new React Compiler!)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Go 1.25 with WebSocket for real-time communication&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind CSS v4&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The WebSocket connection maintains &amp;lt;100ms latency for real-time cursor position updates, so you can literally see your opponents typing character-by-character.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Launch Story
&lt;/h2&gt;

&lt;p&gt;I launched V1 five days ago on Reddit and got... 2 upvotes. 😅&lt;/p&gt;

&lt;p&gt;But more importantly, I got &lt;strong&gt;feedback&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"This is cool but I lack friends :( Can you add public lobbies so I can race strangers?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Challenge accepted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fast Iteration: V1 → V2 in 5 Days
&lt;/h2&gt;

&lt;p&gt;Within the next few days, I shipped:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Public Lobbies (Dec 5)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Added &lt;code&gt;isPublic&lt;/code&gt; flag to lobby model&lt;/li&gt;
&lt;li&gt;Built &lt;code&gt;/lobbies&lt;/code&gt; page with auto-refresh (every 5s)&lt;/li&gt;
&lt;li&gt;REST API endpoint: &lt;code&gt;GET /api/lobbies/public&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Players can now browse and join public races&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Custom Text Passages (Dec 8)
&lt;/h3&gt;

&lt;p&gt;Another user mentioned using it for &lt;strong&gt;typing exam prep&lt;/strong&gt; in India. They needed to practice specific passages.&lt;/p&gt;

&lt;p&gt;So I added:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Custom" as a 4th language option (alongside English/German/French)&lt;/li&gt;
&lt;li&gt;Textarea for pasting any text (no length limits)&lt;/li&gt;
&lt;li&gt;Full Unicode support (handles emoji, Chinese characters, German umlauts, etc.)&lt;/li&gt;
&lt;li&gt;Text persists across multiple rounds for practice&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Turned a typing game into a &lt;strong&gt;typing exam prep tool&lt;/strong&gt; with one feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Highlights
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Real-time synchronization:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Go backend broadcasts to all clients in a lobby
func (h *Hub) BroadcastToLobby(lobbyCode string, message []byte) {
    h.mu.RLock()
    defer h.mu.RUnlock()

    for client := range h.clients {
        if client.LobbyCode == lobbyCode {
            client.send &amp;lt;- message
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unicode handling on frontend:
// Use Array.from() instead of .split() for proper multi-byte char support
const chars = Array.from(text); // ✅ Works with emoji, ä, ö, ß, 中文
const chars = text.split('');   // ❌ Breaks multi-byte characters
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I Learned&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Launch fast, iterate faster - V1 wasn't perfect, but feedback made V2 way better&lt;/li&gt;
&lt;li&gt;Users will tell you what they need - Both features came from user requests&lt;/li&gt;
&lt;li&gt;Technical choices matter - WebSocket is perfect for this use case&lt;/li&gt;
&lt;li&gt;New use cases emerge - Never expected typing exam prep to be a use case!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://typechamp.com" rel="noopener noreferrer"&gt;https://typechamp.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's free, no signup required. Create a lobby and share the 6-character code with friends (or join a public lobby).&lt;/p&gt;

&lt;p&gt;Would love your feedback - especially from the dev.to community!&lt;/p&gt;

&lt;p&gt;What's Next?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product Hunt launch (once I have more traction)&lt;/li&gt;
&lt;li&gt;Competitive ranked mode with matchmaking (planned for January)&lt;/li&gt;
&lt;li&gt;Leaderboards and user profiles&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Built in public. Shipped fast. Learning as I go.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow along: &lt;a href="https://twitter.com/typechamp" rel="noopener noreferrer"&gt;https://twitter.com/typechamp&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>react</category>
      <category>go</category>
    </item>
  </channel>
</rss>
