Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I Built a Wordle for Chinese Idioms with 7,200+ Words, Pinyin & Audio (and achieved a 100 Lighthouse score)

说明与用途

EasyIdiom 是一款基于 Wordle 的免费中文成语猜谜游戏。它使用 Preact、pinyin-pro 和动态键盘,提供汉字和拼音反馈。通过代码优化和延迟加载第三方脚本,获得 100/100 Lighthouse 分数,移动端运行流畅。

问题

Adapting Wordle to Chinese idioms required handling non-alphabetic characters, pronunciation (pinyin), and providing meaningful feedback without spoiling the game.

结果

EasyIdiom achieved a 100 Lighthouse score, runs offline on mobile, and provides a rich learning experience with pinyin and cultural hints.

工作流

  • 1. Build a lightweight frontend with Preact + Vite.
  • 2. Use pinyin-pro to generate tones and handle polyphones.
  • 3. Implement a virtual keyboard that highlights character correctness (green/amber/gray).
  • 4. Add progressive clues: definition, pinyin of first character, mystery character location.
  • 5. Optimize performance: replace heavy polyfills, split code with dynamic imports, defer third‑party trackers until first interaction.
  • 6. Deploy on Vercel CDN for zero cold starts.
  • 7. Test on mobile and desktop to confirm 100 Lighthouse score.

证据

achieved a flawless 100/100 Core Web Vitals score on Mobile & Desktop.

来源

We built an interactive virtual keyboard that aggregates pinyin initials and finals dynamically based on candidate idioms, highlighting…

来源

By auditing JavaScript chunks… deferred third‑party trackers until first user interaction…

来源

  • 记录日期: 2026-09-11T04:15:31.970Z