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!