finds.dev

ThePrimeagen/kata-machine

View on GitHub

★ 1,481TypeScriptupdated Aug 2024

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,481
Forks
1,433
Language
TypeScript
Last commit
7 Aug 2024

// nearby

If kata-machine isn't quite it.

All repos →