Andrey Markin
  • home
  • services
  • projects
  • blog
  • directory
    • Tool
    • Library
    • Repo
    • Article
    • XTweet
    • Guideline
    • Video
  • 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

  • EveOpen-source agent framework from Vercel — define agents as directories of TypeScript and Markdown config and deploy them as standard Vercel projects.
  • FlueTypeScript framework for building durable AI agents and workflows with no vendor lock-in — write once, deploy anywhere, run on any LLM.
  • fffThe fastest and most accurate file search toolkit for AI agents, Neovim, Rust, C, and Node. Keeps an in-memory index for sub-10ms queries instead of spawning ripgrep/fzf per search.
  • InfisicalOpen-source security platform for developers and AI agents — secrets management, certificate management (PKI), and privileged access (PAM) under a single identity model with unified auditing.