Skip to main content

Build Your Own X — Books, Books Tutorials, and Paid Resources

A consolidated guide to books, paid tutorials, and 3rd-party courses that support each of the 26 Build Your Own X projects in this curriculum.

Every project has a free path in its tutorial (Theory & research section). This page is the purchase shortlist — what to buy when you want the polished, paginated, single-source version.

Reading order

Use this page as a shopping list, not a reading list. Pick the project you intend to build, find its row, decide whether the free or paid path fits your style, and stop. Do not buy more than two books at once. The risk of "expensive bookshelf, no shipped code" is real.


The single most direct mapping to our curriculum. James Smith publishes a series of "Build Your Own ___" books, all available with free online Part I + paid eBook/paperback for the complete version. Site: build-your-own.org.

BookMaps to our tutorialNotes
Build Your Own Redis with C/C++Database (Key-Value)C/C++. Network programming + KV data structures. Free Part I on the web.
Build Your Own Database From ScratchDatabase (Relational)Go. From B+ Tree → SQL in 3,000 lines. Free Part I on the web.
From Source Code To Machine CodeCompilerPython. Compiles to x64 ELF executables. Free Part I (interpreter) on the web.
Build Your Own Web Server From Scratch In Node.JSWeb ServerNode.js. Socket → HTTP → WebSocket. Free Part I on the web.

Honest recommendation: if you intend to do the KV/database/compiler/web-server tutorials, James Smith's books are the cleanest single-author throughline you can buy. Otherwise, mix the alternatives below.


codecrafters.io offers paid step-by-step graded challenges with the BYO-X branding. You write code locally; their test suite grades each stage. Subscription-based (~$30–40/month).

Maps to our tutorials:

CodeCrafters challengeMaps to our tutorial
Build Your Own RedisDatabase (Key-Value)
Build Your Own GitGit
Build Your Own SQLiteDatabase (Relational)
Build Your Own InterpreterInterpreter
Build Your Own ShellShell
Build Your Own BitTorrentBitTorrent Client
Build Your Own HTTP ServerWeb Server
Build Your Own DockerDocker / Container Runtime
Build Your Own KafkaKafka-like
Build Your Own DNS Server(no dedicated tutorial; would be a Sem 5 elective)
Build Your Own ReactFront-end Framework
Build Your Own grepRegex Engine

Honest recommendation: CodeCrafters works well if you respond to graded incremental feedback. The challenges are intentionally underspec'd — you're expected to consult external resources. Pair with our tutorials (which name the resources) for the strongest learning loop.


Foundations phase

1. Neural Network from Scratch

ResourceFormatPrice tierWhy
Andrej Karpathy, "Neural Networks: Zero to Hero"YouTube series + GitHubFreeCanonical primary path
Michael Nielsen, Neural Networks and Deep LearningOnline bookFreeBest free print-style coverage of backprop
Goodfellow, Bengio, Courville, Deep LearningFree PDF + MIT Press paperbackFree / $50Textbook depth on theory
Sebastian Raschka, Machine Learning with PyTorch and Scikit-LearnPackt paperback~$50Practical ML companion

2. Build Your Own LLM (GPT from Scratch)

ResourceFormatPrice tierWhy
Karpathy, "Let's build GPT: from scratch" + nanoGPT repoYouTube + GitHubFreeCanonical primary path. 2 hours of video.
Sebastian Raschka, Build a Large Language Model (From Scratch)Manning, paperback + eBook~$40 eBook / ~$50 paperbackPrimary purchase recommendation. 7 chapters, full code on GitHub. Companion free 48-part YouTube series.
Karpathy, "Let's build the GPT Tokenizer"YouTubeFreeBPE tokenizer companion to the GPT lecture
Hugging Face NLP CourseOnline courseFreePractical companion using HuggingFace tooling

3. 3D Renderer (Ray Tracer)

ResourceFormatPrice tierWhy
Peter Shirley, Ray Tracing in One Weekend seriesFree web + Kindle eBookFree / ~$3 Kindle tip⭐ Canonical primary path. Three books.
Pharr, Jakob, Humphreys, Physically Based Rendering: From Theory To Implementation (PBRT)Free online + MIT Press paperbackFree / ~$110 paperback⭐ The textbook for production renderers. Massive but unparalleled.
ScratchapixelFree online textbookFreeFirst-principles derivations
Foley, van Dam, Feiner, Hughes, Computer Graphics: Principles and Practice (3rd ed)Addison-Wesley~$110Comprehensive graphics textbook

Systems phase

4. Memory Allocator

ResourceFormatPrice tierWhy
Bryant & O'Hallaron, Computer Systems: A Programmer's Perspective (CSAPP, 3rd ed)Pearson hardcover~$120⭐ Chapter 9 (Virtual Memory) is the canonical allocator reference
Doug Lea, "A Memory Allocator"Free essayFreeThe dlmalloc design notes — primary technical source
Marwan Burelle, "Malloc Tutorial"Free PDFFree30-page hands-on walkthrough

5. Shell

ResourceFormatPrice tierWhy
Stephen Brennan, "Tutorial - Write a Shell in C"Free blog postFreeCanonical primary path, ~250 lines
Michael Kerrisk, The Linux Programming InterfaceNo Starch Press, hardcover~$100⭐ Definitive Linux systems programming reference. Chapters 27–28, 44 (fork, exec, pipes).
Stevens & Rago, Advanced Programming in the UNIX Environment (APUE, 3rd ed)Addison-Wesley hardcover~$70The Unix systems bible. Chapters 8, 14, 15.
CodeCrafters "Build Your Own Shell"Subscription~$30/moPOSIX-compliance focused graded challenge

6. Interpreter (Tree-Walking)

ResourceFormatPrice tierWhy
Robert Nystrom, Crafting InterpretersFree online + paperback (Genever Benning)Free / ~$40 paperbackPrimary purchase recommendation. The canonical text. Part II = this tutorial.
Thorsten Ball, Writing An Interpreter In GoeBook + paperback~$39 eBookExcellent Go alternative. Smaller, more concentrated.
CodeCrafters "Build Your Own Interpreter"Subscription~$30/moGraded Lox interpreter

7. Compiler

ResourceFormatPrice tierWhy
Robert Nystrom, Crafting InterpretersFree + paperbackFree / ~$40 paperback⭐ Same book, Part III is bytecode VM compiler
Nora Sandler, Writing a C CompilerNo Starch Press paperback~$60⭐ For the "compile to x86 assembly" path. Two-volume book.
Thorsten Ball, Writing A Compiler In GoeBook~$29 eBook (or $50 bundled with interpreter book)Go bytecode VM, builds on Ball's interpreter book
James Smith, From Source Code To Machine Codebuild-your-own.orgFree Part I + eBook/paperbackPython, compiles to x64 ELF.
Aho, Sethi, Ullman, Compilers: Principles, Techniques, and Tools (Dragon Book, 2nd ed)Pearson hardcover~$100The standard reference. Encyclopedic.

8. Text Editor (kilo-style)

ResourceFormatPrice tierWhy
Snaptoken, "Build Your Own Text Editor"Free tutorialFree⭐ Canonical primary path. 184 incremental steps.
Philipp Flenker, "Hecto" (Rust port)Free tutorialFreeRust alternative, same structure

No major paid book exists for terminal text editors. The free tutorials are sufficient.

9. Git

ResourceFormatPrice tierWhy
James Coglan, Building GiteBook + paperback~$30 eBookPrimary purchase recommendation. The single best book on Git internals. Ruby.
Scott Chacon & Ben Straub, Pro Git (2nd ed)Free + Apress paperbackFree / ~$45 paperbackChapter 10 (Git Internals) is the canonical free reference
Thibault Polge, "Write yourself a Git!"Free tutorialFreePython walkthrough
CodeCrafters "Build Your Own Git"Subscription~$30/moGraded challenge

10. Emulator (CHIP-8 / Game Boy)

ResourceFormatPrice tierWhy
Cowgod's CHIP-8 Technical ReferenceFreeFreeCanonical spec
Tobias V. Langhoff, "Guide to making a CHIP-8 emulator"FreeFreeBest modern guide
Pan Docs (Game Boy)FreeFreeThe Game Boy reverse-engineering bible
Steven Hugg, Making 8-bit Arcade Games in CPaperback~$25For 8-bit / NES-adjacent retro game programming
Patterson & Hennessy, Computer Organization and DesignMorgan Kaufmann~$110The CPU architecture textbook. Chapter 4.

11. Operating System

ResourceFormatPrice tierWhy
Phil Opp, "Writing an OS in Rust"Free blog seriesFree⭐ Canonical primary path. Modern x86_64 + Rust.
Arpaci-Dusseau, Operating Systems: Three Easy Pieces (OSTEP)Free + paperbackFree / ~$60 paperback⭐ The best modern OS textbook. Read in parallel with Phil Opp.
Tanenbaum & Bos, Modern Operating Systems (5th ed)Pearson hardcover~$220Classic. Less hands-on.
Silberschatz, Operating System Concepts (10th ed)Wiley hardcover~$150"Dinosaur book". Widely used in CS curricula.

12. Network Stack (TCP/IP)

ResourceFormatPrice tierWhy
Saminiir, "Let's code a TCP/IP stack"Free 5-part blogFree⭐ Canonical primary tutorial
Beej, Guide to Network ProgrammingFree online + KindleFree / ~$3 KindleSockets fundamentals
Stevens, Fenner, Rudoff, Unix Network Programming, Volume 1 (3rd ed)Addison-Wesley hardcover~$80The canonical sockets book
Stevens & Wright, TCP/IP Illustrated, Vol. 1: The Protocols (2nd ed)Addison-Wesley hardcover~$70⭐ Packet-by-packet protocol walkthrough
Peterson & Davie, Computer Networks: A Systems ApproachFree + paperbackFree / ~$80 paperbackModern undergraduate networking textbook

13. Docker / Container Runtime

ResourceFormatPrice tierWhy
Liz Rice, "Containers from Scratch"Free YouTubeFree⭐ The canonical 30-minute live-coded intro
Liz Rice, Container SecurityO'Reilly paperback~$50⭐ Definitive book on container internals + security
Liz Rice, Learning eBPFO'Reilly paperback~$50Companion for the kernel-side of container observability

14. BitTorrent Client

ResourceFormatPrice tierWhy
Jesse Li, "Building a BitTorrent client from the ground up in Go"Free blogFree⭐ Canonical primary tutorial. No paid alternative needed.
BEP 3: BitTorrent Protocol SpecificationFreeFreeThe 6-page protocol spec
CodeCrafters "Build Your Own BitTorrent"Subscription~$30/moGraded challenge

15. Regex Engine

ResourceFormatPrice tierWhy
Russ Cox, "Regular Expression Matching" seriesFree articlesFree⭐ Canonical technical source. 4 articles.
Jeffrey Friedl, Mastering Regular Expressions (3rd ed)O'Reilly paperback~$50Best book on using regex deeply (less about building an engine, but illuminates internals)
CodeCrafters "Build Your Own grep"Subscription~$30/moGraded regex-engine-flavored challenge

Architecture phase

16. Database (Key-Value)

ResourceFormatPrice tierWhy
James Smith, Build Your Own Redis with C/C++build-your-own.orgFree Part I + paid eBook/paperbackPrimary purchase recommendation. Step-by-step Redis-from-scratch.
Martin Kleppmann, Designing Data-Intensive Applications (DDIA)O'Reilly paperback (2nd ed available on Early Release)~$60⭐ Chapter 3 (Storage and Retrieval) is canonical for KV design. Useful across every Architecture project.
Alex Petrov, Database InternalsO'Reilly paperback~$50Storage engine deep dive
CodeCrafters "Build Your Own Redis"Subscription~$30/moGraded Redis-protocol-compliant server

17. Database (Relational / SQL)

ResourceFormatPrice tierWhy
James Smith, Build Your Own Database From Scratchbuild-your-own.orgFree Part I + paid eBook/paperbackPrimary purchase recommendation. Go. B+ tree → SQL in 3,000 lines.
Connor Stack, "Let's Build a Simple Database"Free tutorialFreeCanonical C-based sqlite-clone walkthrough
Alex Petrov, Database InternalsO'Reilly~$50B+ tree, transactions, MVCC depth
Martin Kleppmann, DDIAO'Reilly~$60Chapter 7 (Transactions)
Garcia-Molina, Ullman, Widom, Database Systems: The Complete BookPearson hardcover~$200Stanford's textbook. Comprehensive.
CodeCrafters "Build Your Own SQLite"Subscription~$30/moGraded SQLite-clone challenge

18. Search Engine

ResourceFormatPrice tierWhy
Manning, Raghavan, Schütze, Introduction to Information RetrievalFree online + Cambridge paperbackFree / ~$70 paperback⭐ The canonical IR textbook
Doug Turnbull & John Berryman, Relevant SearchManning paperback~$50⭐ Practical book on real-world relevance with Lucene/Solr/Elasticsearch
Bart de Goede, "How to Build a Search Engine"Free GitHub repoFreePython walkthrough

19. Web Server (HTTP from scratch)

ResourceFormatPrice tierWhy
James Smith, Build Your Own Web Server From Scratch In Node.JSbuild-your-own.orgFree Part I + paid eBook/paperbackPrimary purchase recommendation. Node.js. Network programming + HTTP + WebSocket.
Ruslan Spivak, "Let's Build A Web Server"Free 3-part blogFreeCanonical Python tutorial on concurrency model progression
David Gourley & Brian Totty, HTTP: The Definitive GuideO'Reilly paperback~$60HTTP protocol reference
CodeCrafters "Build Your Own HTTP Server"Subscription~$30/moGraded HTTP server challenge

20. Web Browser Engine

ResourceFormatPrice tierWhy
Pavel Panchekha & Chris Harrelson, Web Browser EngineeringFree online + Oxford University Press paperbackFree / ~$50 paperbackPrimary purchase recommendation. The book on building browser engines. Python.
Matt Brubeck, "Let's build a browser engine!"Free 8-part blogFreeRust alternative. Predecessor of Servo.

21. Kafka-like Distributed Log

ResourceFormatPrice tierWhy
Travis Jeffery, Distributed Services with GoPragmatic Bookshelf~$50Primary purchase recommendation. Builds a Kafka-like service with gRPC + Raft + service discovery.
Shapira, Palino, Sivaram, Petty, Kafka: The Definitive Guide (2nd ed)O'Reilly paperback~$60Real Kafka reference
Jay Kreps, "The Log: What every software engineer should know about real-time data's unifying abstraction"Free essayFreeThe foundational essay by Kafka's co-creator
CodeCrafters "Build Your Own Kafka"Subscription~$30/moGraded Kafka challenge

22. Consensus / Raft

ResourceFormatPrice tierWhy
Diego Ongaro, "Consensus: Bridging Theory and Practice" (PhD thesis)Free PDFFreeThe Raft thesis. 250 pages. Section 4 covers every corner case.
Eli Bendersky, "Implementing Raft"Free 5-part blogFree⭐ Canonical Go tutorial
Martin Kleppmann, DDIAO'Reilly paperback~$60Chapter 9 (Consistency and Consensus)
MIT 6.5840 Distributed SystemsFree course + labsFree⭐ The graded Raft labs. Free video lectures on YouTube.

23. Blockchain

ResourceFormatPrice tierWhy
Andreas Antonopoulos, Mastering Bitcoin (3rd ed)O'Reilly paperback + free on GitHubFree / ~$55 paperbackPrimary purchase recommendation. The definitive Bitcoin book.
Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System"Free 9-page paperFreeThe original whitepaper
Daniel van Flymen, "Learn Blockchains by Building One"Free articleFreeCanonical Python tutorial
Jeiwan, "Building Blockchain in Go"Free 7-part blogFreeMost thorough free tutorial
Princeton, "Bitcoin and Cryptocurrency Technologies"CourseraFree (audit)Strong CS foundations course

Production phase

24. Front-end Framework (React-like)

ResourceFormatPrice tierWhy
Rodrigo Pombo, "Build your own React"Free tutorialFree⭐ Canonical primary path. 15 steps.
Tejas Kumar, Fluent ReactO'Reilly paperback~$60Primary purchase recommendation. Deep dive into React internals — VDOM, reconciliation, fibers.
Dan Abramov, "Overreacted"Free blogFreeMany posts on React internals by a core contributor
CodeCrafters "Build Your Own React"Subscription~$30/moGraded React-like framework challenge

25. 2D Game Engine

ResourceFormatPrice tierWhy
Robert Nystrom, Game Programming PatternsFree online + paperback (Genever Benning)Free / ~$30 paperbackPrimary purchase recommendation. Same author as Crafting Interpreters.
Jason Gregory, Game Engine Architecture (3rd ed)CRC Press hardcover~$80⭐ The industrial game engine textbook. Comprehensive.
Glenn Fiedler, "Fix Your Timestep!"Free essayFreeThe canonical game-loop article
Roguelike Dev "Complete Roguelike Tutorial" (Python)FreeFreeSubstantial roguelike walkthrough
bracketproductions, "Roguelike Tutorial in Rust"Free bookFreeRust alternative
Casey Muratori, Handmade HeroFree videosFreeThe deepest "build everything from scratch" series; 1,000+ episodes

26. Physics Engine

ResourceFormatPrice tierWhy
Randy Gaul, "How to Create a Custom Physics Engine"Free 6-part tutorialFree⭐ Canonical primary path
Ian Millington, Game Physics Engine Development (2nd ed)CRC Press / Routledge paperback~$65Primary purchase recommendation. The only book on building a complete physics engine from scratch.
Christer Ericson, Real-Time Collision DetectionMorgan Kaufmann hardcover~$95⭐ The collision algorithm reference
Erin Catto's Box2D papers & GDC talksFree PDFsFreeBehind-the-scenes of the canonical 2D physics engine
Glenn Fiedler, "Gaffer on Games"FreeFreeNetworking + physics + prediction articles

General-purpose CS textbooks (apply across multiple projects)

These reward purchase because they're referenced by many of our tutorials:

BookCovers projectsPrice
Kleppmann, Designing Data-Intensive ApplicationsDatabase KV, Database Relational, Kafka-like, Consensus, Search Engine~$60
Petrov, Database InternalsDatabase KV, Database Relational, Kafka-like~$50
Kerrisk, The Linux Programming Interface (TLPI)Shell, Docker, Network Stack, OS~$100
Bryant & O'Hallaron, Computer Systems: A Programmer's Perspective (CSAPP)Memory Allocator, OS, Emulator, Compiler~$120
Nystrom, Crafting InterpretersInterpreter, Compiler~$40
Arpaci-Dusseau, Operating Systems: Three Easy Pieces (OSTEP)OS, Memory Allocator, DockerFree / ~$60
Aho/Sethi/Ullman, Compilers (Dragon Book)Interpreter, Compiler, Regex Engine~$100
Stevens et al., Unix Network ProgrammingNetwork Stack, Web Server, BitTorrent~$80
Nystrom, Game Programming PatternsGame Engine, Physics Engine~$30
Manning et al., Introduction to Information RetrievalSearch Engine, LLM (for RAG)Free / ~$70

Suggested purchase tiers

If you want to start with a small budget and grow:

Tier 1 — Starter ($0–50)

  1. Crafting Interpreters (paperback ~$40) — covers Interpreter + Compiler
  2. OR the equivalent free online version + one James Smith book of your choice from build-your-own.org

Tier 2 — Foundational shelf (~$200)

Add the books that unlock multiple tutorials:

  1. Designing Data-Intensive Applications (Kleppmann) — Architecture-phase backbone
  2. Operating Systems: Three Easy Pieces (OSTEP paperback) — Systems-phase backbone
  3. The Linux Programming Interface (TLPI) — Systems-phase reference

Tier 3 — Project-specific deep dives

For each tutorial you actively work on, add the ⭐-marked book from that tutorial's row above. Add one at a time, not all at once.

Tier 4 — Subscription

CodeCrafters (~$30/month) if you respond well to graded feedback. Cancel between projects to control cost.


What this guide does not recommend

For the sake of honesty:

  • Bootcamps that promise to teach you "to build your own X" in 4 weeks. Most ship surface-level material. The free + book combination above is better.
  • YouTube series with no GitHub repo. The repo is the contract. If the code is missing, the tutorial is theatre.
  • Anything called "Build Your Own X in 30 Minutes." 30 minutes is enough to learn what X is. Not enough to build it.
  • Books on "system design" or "software architecture" as a substitute for building. Those books are useful alongside projects, not instead of them.

The Feynman quote that opens build-your-own-x's README"What I cannot create, I do not understand" — is the entire pedagogy. Buy a book; build the thing; understand it.


Maintenance note

Prices and editions change. URLs are current as of the time of writing. If a book is out of print, check Amazon used or eBay; most of these have long shelf lives.

If you find a paid resource you'd recommend that isn't listed, the addition criteria are:

  1. Maps to one of our 26 tutorials, or is a general CS reference that supports 3+ of them.
  2. Has a clear author and publisher (no "AI-generated farm" books).
  3. Has an actual code repository or is a textbook of recognized standing.