Skip to content

typer

All projects
Typing test · Odin / WebAssembly

The browser can show a score as soon as a test ends. To decide whether that score belongs on the leaderboard, the server replays the target text and every keystroke, checks the rules for the chosen test and saves the result in SQLite.

Follow a typing run

A test in progress

The Odin engine draws the words on a canvas. Each keystroke repaints the words it changed.

A 30-second typing test with a mistyped word underlined
Light theme · typer project documentation. Full size

What happened at second 18?

The result gives the final speed and accuracy. The chart lets the typist inspect the pace and mistakes at each second.

Result showing 80 WPM, 97% accuracy and the readout for second 18
Light theme · typer project documentation. Full size

Which runs count?

The leaderboard takes each typist’s best valid result for a given mode, length and language. The server computes the score by replaying the submitted record through the same engine that ran the test.

Ten typists ranked in the 30-second English leaderboard
Light theme · typer project documentation. Full size

A run on a phone

The phone capture pairs an active test with its result. The per-second speed chart fits the same narrow screen.

Phone layouts of a test in progress and its finished result
Light theme · typer project documentation. Full size

One engine, two builds

The 46 KB Brotli-compressed WebAssembly typing module includes the English word list. JavaScript and CSS add 18 KB compressed. The same Odin engine also compiles into the 1.3 MB server executable, which embeds the web assets.

The browser sends the test setup, target text and keystrokes. For a timed run, the server checks the elapsed time. For a words test, it checks the word count. For a quote, it checks the text against the chosen quote.

The scoring rules, word lists and quotes come from Monkeytype. Monkeytype and typer are both licensed under GPL-3.0.