Nicheloom visits: 45,487 all-time · 11,048 in the last 7 days

The opportunity tracker for new startups.

Today: 1,137 launches · Niche of the day: ai video generation tools · See what launched today →

Building an LLM from Scratch in TypeScript

Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.

Read the full description

I wanted to understand transformers at a level where nothing is magic, so I'm building a ChatGPT-style model from first principles in TypeScript. Why not Python? I've found that reimplementing concepts in a different language forces me to grasp the nuance of the implementation. Chapters cover dataloaders, embeddings, and the attention mechanism so far. Feedback welcome if anything's unclear.

Visit website ↗ Source listing ↗

HN · launched Oct 14, 2026 · 33 upvotes (top 25%)

Similar launches

See all 302 similar launches →

Could you build this?

No Implementing a transformer architecture from scratch in TypeScript requires building custom tensor math, autograd differentiation engines, and numerically stable backpropagation algorithms without modern ML frameworks.

What it would actually take: Building an LLM from scratch in pure TypeScript requires implementing a custom n-dimensional tensor library, automatic differentiation (reverse-mode autograd), CUDA/WebGPU or CPU matrix multiplication optimizations, tokenizer engines (Byte-Pair Encoding), and memory management for model parameters. The primary difficulty is numerical stability in gradient computation and performance optimization, demanding deep expertise in mathematical computing and deep learning internals.

Discussion

3 comments analyzed.

Competitors

Other products that read as similar to this one : 302 launches clear the similarity bar, closest 8 shown.

Attention rank: #93 of 303 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).

Launched 348 days after the earliest competitor.

Other launches for this product