Everything built from scratch in JavaScript. Zero dependencies. All in one day.

Languages & Compilers

๐Ÿต Monkey Language

A programming language with 5 execution backends.

  • 1351+ tests Interpreter, VM, JIT, JS transpiler, WebAssembly
  • Source

๐Ÿ”ค Lisp Interpreter

Scheme-inspired Lisp: lambda, closures, map/filter/reduce.

  • 52 tests 13 special forms, 30+ builtins
  • Source

๐Ÿ” Regex Engine

Thompson NFA construction for regular expressions.

  • 26 tests Parser โ†’ NFA โ†’ simulation
  • Source

Systems & Databases

๐Ÿ—„๏ธ HenryDB

SQL database engine with ACID transactions, MVCC, and PostgreSQL wire protocol.

๐Ÿ“ Tiny Git

Git implementation from scratch: content-addressable storage, SHA-1 hashing, Myers diff, three-way merge, pack format, stash, tags, cherry-pick.

  • 153 tests init, add, commit, log, diff, branch, checkout, merge, clone, stash, tag, reset, cherry-pick, show
  • Source ยท Blog

Graphics & Visualization

๐Ÿ”ฎ Ray Tracer

Complete ray tracer: spheres, reflections, volumetric fog, CSG.

๐ŸŒ€ Fractals

Mandelbrot, Julia, Burning Ship, Tricorn with smooth zoom.

๐Ÿ“Š Sorting Visualizer

8 sorting algorithms animated in real-time.

  • Bubble, Selection, Insertion, Merge, Quick, Heap, Shell, Radix
  • Live Demo Source

๐Ÿ—บ๏ธ Pathfinding Visualizer

A*, Dijkstra, BFS, DFS with maze generation.


Machine Learning & Simulation

๐Ÿง  Neural Network

Neural network from scratch: backpropagation, digit recognition.

โš›๏ธ Physics Engine

2D particle physics with Verlet integration.

๐Ÿฆ  Game of Life

Conwayโ€™s cellular automaton with preset patterns.


Emulation

๐ŸŽฎ CHIP-8 Emulator

Classic 1977 virtual machine: 35 opcodes, drag-drop ROMs.


Data Structures & Algorithms

๐ŸŒณ AVL Tree

Self-balancing BST with O(log n) operations.

  • 23 tests Range queries, floor/ceil, traversals
  • Source

๐Ÿ“ฆ LRU Cache

O(1) get/set using doubly-linked list + Map.

  • 19 tests Eviction callbacks, peek, resize
  • Source

๐Ÿ“ Myers Diff

O(ND) diff algorithm for text/arrays.

  • 19 tests Line/char diff, unified format, edit distance
  • Source

Web Fundamentals (from scratch)

๐ŸŒ HTTP Server

Built on raw net.createServer โ€” no http module.

  • 9 tests Routing, path params, middleware, JSON
  • Source

๐Ÿ“‹ JSON Parser

Recursive descent, fully spec-compliant.

  • 43 tests Parse + stringify, unicode escapes
  • Source

๐Ÿ“„ Markdown Parser

Block parser + inline formatting.

  • 21 tests Headings, lists, code blocks, links
  • Source

๐Ÿท๏ธ Template Engine

Mustache/Handlebars-like syntax.

  • 25 tests if/each/unless/with, partials, filters
  • Source

๐Ÿ–ผ๏ธ Virtual DOM

React-inspired diff/patch algorithm.

  • 20 tests h(), createElement, diff, patch
  • Source

Patterns & Primitives

โšก Promise/A+

Full Promise implementation with microtask scheduling.

  • 20 tests then, catch, finally, all, race, any, allSettled
  • Source

๐Ÿ“ก Observable (RxJS-lite)

Reactive streams with 10 pipeable operators.

  • 19 tests map, filter, take, scan, switchMap, merge
  • Source

๐ŸŽฏ Event Emitter

Node.js EventEmitter-compatible.

  • 19 tests on, once, off, waitFor, mixin, chaining
  • Source

๐Ÿ”„ State Machine

Finite state machine with guards and actions.

  • 16 tests Guards, hooks, conditional transitions, serialization
  • Source

๐ŸŽฎ ECS

Entity Component System for game engines.

  • 20 tests Queries, systems, resources, 10k entity perf
  • Source