// the find
ThePrimeagen/kata-machine
A TypeScript kata machine for practicing data structures and algorithms, built live on Twitch by ThePrimeagen. The core idea: run a generator script each day to scaffold fresh empty implementations alongside pre-written tests, so you're forced to rewrite from scratch rather than just reading your old solution. Aimed at developers grinding interview prep or solidifying fundamentals.
The day-based scaffolding is genuinely clever — `yarn generate` creates a new folder and rewires tsconfig paths so you always test today's code without touching config manually. Test coverage is solid for what's there: BFS, DFS, Dijkstra, tree traversals, LRU, Trie, MinHeap all have dedicated test files. The repo covers more algorithms than the outdated README suggests — the `__tests__` directory tells the real story. Using TypeScript with strict paths means you get real type errors during practice, not just runtime failures.
The README is embarrassingly stale — it lists five algorithms while the repo has 25+ test files, and the 'help wanted' section was never resolved. There's only one golden reference implementation (`PrimList.ts`) in `src/golden`, so you have nowhere to check your work after struggling. The config is a flat string array in a JS file with no validation — typos silently skip algorithms. Last meaningful commit was mid-2024 and the issues list is largely unaddressed, so don't expect maintenance.