News for hackers. Stuff that matters.

Show HN: Codesprint – A typing game for practicing coding interview syntax

https://github.com/cwklurks/codesprint

I 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!

( 2 comments | 2 points | on HN )
Re:Show HN: Codesprint – A typing game for practicing coding... by jimmydin7 on Friday December 05, 2025 @04:22PM (#46167484)
pretty cool! i recommend buying a domain. I think its pretty cool for people interviewing others!
Re:Show HN: Codesprint – A typing game for practicing coding... by cwkcwk on Friday December 05, 2025 @05:22PM (#46168151)
sounds good, thanks for the feedback!