<?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: Gottfried Genin</title>
    <description>The latest articles on DEV Community by Gottfried Genin (@gottfried_genin).</description>
    <link>https://dev.to/gottfried_genin</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%2F4282569%2Fb4a25a6e-1f61-4fda-9353-b340a2a96378.png</url>
      <title>DEV Community: Gottfried Genin</title>
      <link>https://dev.to/gottfried_genin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gottfried_genin"/>
    <language>en</language>
    <item>
      <title>I built Japanese flashcards that fight back: Nuxt 4, Go, FSRS and a self-hosted Kubernetes cluster</title>
      <dc:creator>Gottfried Genin</dc:creator>
      <pubDate>Fri, 04 Dec 2026 11:58:14 +0000</pubDate>
      <link>https://dev.to/gottfried_genin/i-built-japanese-flashcards-that-fight-back-nuxt-4-go-fsrs-and-a-self-hosted-kubernetes-cluster-j4b</link>
      <guid>https://dev.to/gottfried_genin/i-built-japanese-flashcards-that-fight-back-nuxt-4-go-fsrs-and-a-self-hosted-kubernetes-cluster-j4b</guid>
      <description>&lt;p&gt;Plain flashcards get boring. I kept skipping mine, so I built &lt;a href="https://yamiyomi.com" rel="noopener noreferrer"&gt;yamiyomi&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It's a Japanese reading site where words you save turn into pixel-art decks, complete with levels and boss fights for vocabulary you thought you'd already mastered.&lt;/p&gt;

&lt;p&gt;I'm a DevOps engineer in Germany and this is a solo side project. This post is the build story: the stack, the parts that were harder than expected, and the one bug that kept killing my pods.&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%2Fb1v2apt3u6endr0cvaey.jpg" 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%2Fb1v2apt3u6endr0cvaey.jpg" alt="Homepage" width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read real Japanese.&lt;/strong&gt; About 480 news stories and long-form articles, with furigana over every kanji and a JLPT tag under every word. No account needed to read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Click any word&lt;/strong&gt; to see its reading and meaning, then add it to a deck with an example sentence and audio. You can follow a word down a rabbit hole: look up its kanji, explore the radicals, find similar words, or discover other kanji with the same reading.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review with spaced repetition&lt;/strong&gt;, but in themed decks: weather, tech, music and arts, dialects. Each deck is a pixel-art world with levels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Boss fights.&lt;/strong&gt; Words you already know get pulled back as challenges: fill the gap, pick the right kanji, read it aloud.&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%2F11t7jbou7177sp6db2od.jpg" 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%2F11t7jbou7177sp6db2od.jpg" alt="News page" width="799" height="561"&gt;&lt;/a&gt;&lt;br&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%2F46f5gr66sl20q9pf20qk.jpg" 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%2F46f5gr66sl20q9pf20qk.jpg" alt="Reading with furigana and a word lookup" width="800" height="561"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Choice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;Nuxt 4 (Vue 3.5), SSR, Tailwind CSS v4, Pinia, reka-ui&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;Go 1.26, chi v5, Postgres via pgx v5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data access&lt;/td&gt;
&lt;td&gt;sqlc (no ORM), goose migrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API contract&lt;/td&gt;
&lt;td&gt;OpenAPI first: &lt;code&gt;openapi.yaml&lt;/code&gt; -&amp;gt; oapi-codegen, validated with kin-openapi&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SRS&lt;/td&gt;
&lt;td&gt;FSRS via go-fsrs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infra&lt;/td&gt;
&lt;td&gt;arm64 Docker images, self-hosted Kubernetes, GitOps with ArgoCD, Cloudflare Tunnel in front&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI&lt;/td&gt;
&lt;td&gt;GitHub Actions on self-hosted runners&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I'm a DevOps engineer, so naturally I spent quite a bit of time on the infrastructure. No managed platform, no Vercel. Images are built for arm64, ArgoCD syncs the cluster from Git, and a Cloudflare Tunnel means nothing on the cluster is exposed directly to the internet.&lt;/p&gt;

&lt;p&gt;OpenAPI-first with oapi-codegen plus sqlc means both ends of the Go service are generated: the HTTP handlers from the spec, the queries from SQL. I maintain the OpenAPI spec and SQL queries myself. The generated code keeps the handlers and database layer in sync.&lt;/p&gt;
&lt;h2&gt;
  
  
  Furigana: no tokenizer at runtime
&lt;/h2&gt;

&lt;p&gt;The obvious approach would be to run a morphological analyser over each article and generate furigana automatically. But Japanese readings can depend heavily on context, and the analyser won't always get them right. A wrong reading is arguably worse than no reading at all, because learners will trust it.&lt;/p&gt;

&lt;p&gt;So readings are part of the content. Every compound is written inline in the Markdown source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[投資]{とうし:investment}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A validator fails the build if any kanji in an article isn't covered. A dictionary (UniDic) is only used offline, to find new words worth curating. Never to decide what the reader sees.&lt;/p&gt;

&lt;p&gt;JLPT levels per word come from Jonathan Waller's JLPT lists (CC BY). Learners can hide furigana globally, or only for levels they already know: hide N5 and N4 readings, keep N3 and up.&lt;/p&gt;

&lt;p&gt;Content lives in its own Git repo. The API shallow-clones it and reloads on an HMAC-signed webhook, with polling as a fallback. Publishing an article is a &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Spaced repetition: FSRS, with one guard rail
&lt;/h2&gt;

&lt;p&gt;Reviews run on &lt;a href="https://github.com/open-spaced-repetition" rel="noopener noreferrer"&gt;FSRS&lt;/a&gt; via go-fsrs, with default parameters. The rating buttons show Anki-style previews of the next interval.&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%2F1yaruw8wvc8fzs9gyfr3.jpg" 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%2F1yaruw8wvc8fzs9gyfr3.jpg" alt="Review card, weather deck" width="800" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also added a small safeguard of my own. A card that keeps landing in short, sub-day steps is clearly not sticking yet, but FSRS will still offer a 4-day interval after three 10-minute reviews in a row. So I cap the jump by how many sub-day reviews it took: after one, &lt;em&gt;Good&lt;/em&gt; can go at most 3 days out; after two, 2 days; from three on, 1 day (&lt;em&gt;Easy&lt;/em&gt; gets one extra day each time). It's ten lines of Go, and it stopped words I was clearly struggling with from vanishing for half a week.&lt;/p&gt;

&lt;p&gt;Each deck has its own look. The tech deck is a cyberpunk city, music and arts is an old Edo-style street:&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%2Fvithkd332r835l62vn9x.jpg" 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%2Fvithkd332r835l62vn9x.jpg" alt="Tech deck review" width="799" height="378"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F94a039ktxubitwnu59vt.jpg" 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%2F94a039ktxubitwnu59vt.jpg" alt="Music and arts review card" width="799" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decks with levels
&lt;/h2&gt;

&lt;p&gt;A deck is split into levels of 25 words, easiest and most common first. Every fifth level has no new words. It's a boss.&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%2F2pe04ufc00wqf8algkxp.jpg" 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%2F2pe04ufc00wqf8algkxp.jpg" alt="Music and arts deck map with levels" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The boss's HP scales with how many weak words you have in that deck, with a floor of 20. You start with 3 hearts, plus one for every level you've fully learned, up to 7. Learning the earlier levels properly literally makes the boss easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boss fights inside normal reviews
&lt;/h2&gt;

&lt;p&gt;The second kind of boss shows up in normal reviews. When a word you know comes due, it may come back as a challenge instead of a plain card. The longer its current interval, the more likely: 0% under 5 days, 15% at 5 days, rising to 50% at 30 days and beyond. Words you "know" are exactly the ones you stop paying attention to, so those are the ones that get tested.&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%2Fpakcz85nyezh5u2z69m5.jpg" 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%2Fpakcz85nyezh5u2z69m5.jpg" alt="Boss: pick the right kanji" width="800" height="437"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkvh7d5rgx599i2lnwvc4.jpg" 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%2Fkvh7d5rgx599i2lnwvc4.jpg" alt="Boss: fill the gap" width="799" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also wanted to prevent two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The roll is seeded&lt;/strong&gt; by card and due time. Reloading the page doesn't reroll which cards are challenges, so you can't refresh your way out of a boss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A miss counts as &lt;em&gt;Again&lt;/em&gt;.&lt;/strong&gt; Fail the challenge and the word goes back into short-term review, the same as forgetting it on a normal card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some bosses are drawn on paper scrolls:&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%2Fgmmsk17qzcglq9d6cskn.jpg" 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%2Fgmmsk17qzcglq9d6cskn.jpg" alt="Boss scroll, read the word" width="799" height="344"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbqn0ngismgh6a1s1pvvz.jpg" 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%2Fbqn0ngismgh6a1s1pvvz.jpg" alt="Boss scroll, read the word" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A dialect deck on a real map
&lt;/h2&gt;

&lt;p&gt;The dialects deck sits on a 3D-looking map of Japan with 9 regions. It's not a live WebGL scene. At build time a script renders the map in headless Chromium with WebGL, from OpenStreetMap and elevation data, and exports AVIF/WebP layers. The same step generates the polygons you tap. The browser gets images and a few drifting wave and cloud sprites, so it stays light on phones.&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%2Fscv3ykokxi8w1dvuyqaz.jpg" 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%2Fscv3ykokxi8w1dvuyqaz.jpg" alt="Dialect map of Japan" width="800" height="456"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feqlvc98xt1zqdtp79pav.jpg" 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%2Feqlvc98xt1zqdtp79pav.jpg" alt="Kansai region, zoomed" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every dialect form in the deck needs a real web source. The rule in the brief is "never invent forms".&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug: crawlers ate my memory
&lt;/h2&gt;

&lt;p&gt;I didn't notice a memory problem during normal use. It started when search engine crawlers began discovering the site: the web pods kept getting OOM-killed.&lt;/p&gt;

&lt;p&gt;Nuxt's SWR route cache and the payload cache were unbounded. Every page a crawler visited added roughly 80 KB, and a kanji page is about 180 KB. There are thousands of kanji pages. Users never visit all of them; crawlers do. Memory climbed until the pod hit its 396 MB heap limit and died.&lt;/p&gt;

&lt;p&gt;The fix was boring: both caches are now LRU caches capped at 500 entries. The lesson is the one I give other people at work: &lt;strong&gt;a cache with no size limit is a memory leak with good intentions.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where AI is used
&lt;/h2&gt;

&lt;p&gt;AI does a lot of the content work, and I'd rather say so plainly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;News articles&lt;/strong&gt; are drafted by an AI agent from the last 24 hours of news, including furigana, English per paragraph and a quiz. The furigana validator and my own review sit after it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example sentences, similar words and dialect cards&lt;/strong&gt; are curated by an agent from written briefs, then checked by a second agent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The podcast&lt;/strong&gt; is built from an AI audio overview, with intro and outro read by synthetic voices, and Whisper for the word-level transcript timings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The code, infra and game design&lt;/strong&gt; are mine, built with AI coding assistants along the way.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What AI does &lt;em&gt;not&lt;/em&gt; do is decide readings on the fly. Every reading a learner sees is stored in the content and validated.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;More decks, more bosses, and a proper mobile app. If you're learning Japanese from N3 upward, especially if you use it at work, I'd love feedback: &lt;a href="https://yamiyomi.com" rel="noopener noreferrer"&gt;yamiyomi.com&lt;/a&gt;. Reading needs no account.&lt;/p&gt;

&lt;p&gt;If you've built something with FSRS, or have opinions about generating vs. storing furigana, tell me in the comments.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>go</category>
      <category>vue</category>
      <category>kubernetes</category>
    </item>
  </channel>
</rss>
