Show HN: Codesprint – A typing game for practicing coding interview syntax
2 points by cwkcwk | 2 commentsI built Codesprint because I realized my raw WPM on standard typing tests didn't translate to coding. My muscle memory for prose was fine, but I was slow with brackets, semicolons, and indentation; the stuff that actually matters in a technical interview.
Codesprint is a typing tool specifically for code syntax. Instead of random words, it uses real LeetCode snippets (Two Sum, LRU Cache, etc.) so you're practicing realistic patterns.
The Tech: It’s built with Next.js, TypeScript, Chakra UI, and Framer Motion.
One interesting challenge was the scoring logic (lib/scoring.ts). Standard WPM assumes a word is 5 characters, but code is dense with symbols. I had to tweak the engine to handle indentation and "perfect word" streaks correctly to give a metric that actually feels fair for code.
I currently support Python, Java, C++, and JS. I’m looking to add Rust and Go next.
I’d love feedback on the typing "feel", specifically how the engine handles auto-indentation vs manual tabbing.
Thanks!
Loading...