A playground for JavaScript/TypeScript code challenges, experiments, and quick prototypes.
src/code_challenges/— Self-contained coding challenge folders, each with aREADME.md, solution, and co-located tests.src/experiments/— Ad-hoc scripts, spikes, and quick tests.src/lib/— Shared utilities reused across challenges or experiments.tests/— Integration tests, or tests for experiments that don't fit insidesrc/.
# Install dependencies
pnpm install
# Run all tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Lint code
pnpm run lint
# Auto-fix lint issues
pnpm run lint:fix
# Format code
pnpm run format- Create a new folder under
src/code_challenges/(e.g.,05-new-challenge/). - Add
README.md,solution.ts, andsolution.test.ts. - Export your function from
solution.tsand import it insolution.test.ts. - Run
pnpm testto verify.