[ about ]

$typefn --help

What this is, how the numbers work, and where the code comes from.

What this is

A typing trainer for software engineers. Your fingers know English. They don't know ];.

Prose trainers rarely ask for => or ::. typefn does, using real code, docs, and prompts from open-source projects, then shows you which keys cost you time.

Start typing

How scoring works

CPM
Correct characters per minute, not counting newlines. This is the headline number.
KPM
Every keystroke per minute, right or wrong. The gap between KPM and CPM is what your typos cost.
Accuracy
Correct keystrokes divided by all keystrokes.
Consistency
How steady your pace stayed across two-second intervals. Worked out in your browser and never saved. The leaderboard board of the same name is different: it averages CPM across sessions.
Symbols, bigrams
A bigram is two keys in a row. Results list your slowest symbols and bigrams by latency and error rate, which is usually where the time went.

Why not WPM? WPM assumes five letters make a word. ]; disagrees. CPM counts the correct characters you type per minute, symbols included.

House rules

Indentation
In code, leading indentation is on us, same as your editor. In Markdown, you type it.
Mistakes
Wrong keys get marked and the caret moves on. Backspace is there if you want it. There is no lockout.
Difficulty
Measures typing effort, not how clever the code is. Length, nesting, symbols, and awkward characters count. Algorithmic brilliance does not.
Tiers
Easy, medium, and hard are percentile cutoffs within each language, so a hard Go snippet is only hard compared with other Go.

Where the code comes from

Curated, permissively licensed open-source repositories. Nobody wrote these for a typing test. Every snippet keeps its repository, file path, license, author, and commit, and the trainer credits its source while you type.

FAQ

Is typefn free?
Yes, and practice needs no account. Signing in adds saved history, progress, adaptive drills, and a place on the leaderboard.
Which runs get saved?
Completed timed library sessions, when you are signed in. Untimed runs and pasted code stay out of your history. A signed-out run only adds to an anonymous usage count, with no score attached.
Can I practice on my own code?
Yes. Paste it in. It stays in your browser: nothing is uploaded or saved to history.
Why don't I type the indentation?
Your editor does it for you, so drilling it would train a habit you never use. Markdown is the exception, because there the whitespace is the syntax.
Does it check that I use the right finger?
No. Browsers report which key was pressed, not which finger pressed it. Finger lessons show you the path. The honesty is on you.
Which languages can I practice?
TypeScript, JavaScript, Go, PHP, Python, Rust, Java, C, C++, C#, Kotlin, Swift, Ruby, Bash, Markdown, and AI Prompt.