π Today I Learned: Building a Simple Typing Practice Tool
I built a really small web-based tool to enhance typing skills with real-time feedback.
Itβs just a single HTML file β no backend, no frameworks, no setup. You open it in your browser and start typing π.
π Table of Contents
π Why I Built This
Most typing practice tools I tried donβt support Vietnamese text well:
- Their UI looks broken or ugly when practicing with Vietnamese.
- They rarely offer fresh, real-world Vietnamese content.
- I wanted to auto-generate practice text from news so I donβt get bored.
- I also wanted to customize the metrics I care about (e.g., word accuracy, correct WPM).
- Plus, having a dark mode toggle and a cleaner UI makes practice more enjoyable.
Thatβs why I created this simple tool β just for myself at first β but it turned out useful enough to share.
β¨ Features
- Works everywhere β pure HTML, CSS, and JS.
- Auto-fetches Vietnamese π»π³ or English πΊπΈ news text for practice.
- Customizable reference text (you can paste or write your own).
- Tracks:
- Time (seconds)
- Character Accuracy (%)
- Word Accuracy (%)
- Words Per Minute (WPM)
- Correct WPM
- Progress (typed vs total characters)
- Real-time color coding: β correct, β incorrect, and π― current character.
- Auto-scrolls while typing.
- Completion message when done.
- Dark mode + Reset button.
β‘ How It Works
- You type directly on the displayed reference text.
- Each keystroke updates:
- Character accuracy β (correct chars Γ· total typed).
- Word accuracy β (correct full words Γ· attempted words).
- WPM β counts total words per minute (including mistakes).
- Correct WPM β only correct words per minute.
- A progress bar and completion message keep you motivated.
- You can fetch real news text from VnExpress and practice with something fresh.
π₯οΈ Demo Screenshot
You can try my Simple Typing
You can also visit my repo here π mrzaizai2k/simple-typing.
Just download the typing.html
file, open it in any browser β and youβre ready to practice π.
π‘ Why I Like It
- Minimalistic: no dependencies, just one
.html
file. - Real-time feedback keeps me aware of typing mistakes instantly.
- The news fetch feature means I can always practice with new content, instead of boring lorem ipsum.
- Great for improving not just speed, but also accuracy.
π Reference
All the code is live here on my GitHub:
π mrzaizai2k/simple-typing
Feel free to clone it, star it β, or ask me anything.
Top comments (1)
βFinally a typing tool that works well with Vietnamese β I really need this πβ