Andrey Markin
  • home
  • services
  • projects
  • blog
  • directory
    • Tool
    • Library
    • Repo
    • Article
    • XTweet
    • Guideline
  • courses
  • resume
  • about
  • contact
  • meet

Mark Life Ltd

  1. Home
  2. Directory
  3. Tfjs Zero To Hero
Meet

Mark Life Ltd

BG208147965

HomeContactPrivacyLLM-friendlyBlog RSSDirectory RSS
  1. Directory
  2. tfjs-zero-to-hero
RepoMachine LearningOpen Sourcetypescriptmllearning

tfjs-zero-to-hero

Re-implementing classic ML models in TypeScript with @tensorflow/tfjs-node, following Andrej Karpathy's Neural Networks. Zero to Hero. Final destination — a from-scratch two-tower retrieval model on MovieLens.

Added May 16, 2026
Visit repo

Most ML projects, courses, and tutorials are Python — that's the default. I'm taking a different route: following Andrej Karpathy's Neural Networks: Zero to Hero (which is PyTorch) but re-implementing each model in TypeScript against the equivalent TensorFlow.js APIs.

The thing is — the actual ML doesn't happen in Python. It happens in C and CUDA. Python is mostly a thin API layer over native kernels. TF.js is the same story: @tensorflow/tfjs-node binds into the C++ TensorFlow runtime. So the "Python advantage" for ML is more cultural than technical.

Given I write TypeScript day-to-day and most modern application code is TypeScript, doing ML in TS means the model ships in the same stack as the product that consumes it — no Python sidecar, no FastAPI bridge, no language boundary at inference time. Feels like a unique and underexplored angle.

Progression: TF.js fundamentals → MNIST → makemore (bigram → MLP → BatchNorm → WaveNet) → micrograd → nanoGPT → two-tower retrieval on MovieLens with a Next.js + shadcn demo UI.

Related

  • netxjs-monorepoOpinionated Next.js + Turborepo starter with Biome linting, TypeScript, shadcn/ui, and pre-loaded Claude Code agent skills and hooks.
  • MediabunnyTypeScript library for reading, writing, and converting media files directly in the browser — like FFmpeg, but for the web. Zero dependencies, tree-shakable, and hardware-accelerated via the WebCodecs API.
  • SEO LensChrome extension that audits SEO metadata on any webpage with instant scoring, structured data validation, and AI-friendly copyable reports for Claude Code and Cursor.
  • ExecutorOpen-source tool gateway for agents from Rhys Sullivan. Normalizes MCP, OpenAPI, GraphQL, and custom sources into one typed SDK that agents call in a sandbox — built on Cloudflare's Code Mode pattern.