Raw Mode

Build a high-performance Node.js backend framework

Construct a complete web framework from node:net up, use no node:http anywhere, and tune every measurable cost out of the hot path.

Most Node.js frameworks begin above the connection engine and HTTP parser. This capstone removes that box. You build the layer beneath the framework - a byte-level HTTP/1.1 parser, a radix-tree router, a middleware pipeline, the full application surface, production hardening, and a hot path tuned through measurement until it becomes super blazingly fast. You build it on your own machine, one lesson at a time, and every claim is something you can reproduce.

10 of 23 chapters live · 50 lessons

The build, chapter by chapter

FreeLockedUpcoming
CA framework apps can useChapters 09–15
09

Cookies, Redirects, and Content Negotiation

5 lessonsLocked

Cookies, redirects, and a response that can label its own bytes - the application surface every web app touches.

10

Streaming Bodies and Backpressure

5 lessonsLocked

Hand the handler the request before the body arrives, decode chunked framing byte by byte, and pause socket reads when a consumer falls behind.

11

Body Parsers and Multipart

Upcoming

Turn raw body bytes into structured data - JSON, forms, query strings, and multipart uploads that stream to disk.

Released to everyone when ready
12

Streaming Responses

Upcoming

Chunked encoding, honest backpressure, and the one streaming spine every later feature reuses.

Released to everyone when ready
13

Static Files, Ranges, and Conditional Requests

Upcoming

Serve files without serving your filesystem - traversal defense, range requests, ETags, and the 304 flow.

Released to everyone when ready
14

CORS and Compression

Upcoming

Preflights answered at the middleware layer, origins reflected with Vary discipline, and compression that pays for itself.

Released to everyone when ready
15

Server-Sent Events, Hooks, and Validation

Upcoming

Live event streams over plain HTTP, lifecycle hooks with deterministic order, and validators compiled once per route.

Released to everyone when ready
DHardened for productionChapter 16
16

Hardening - Limits, Slowloris, and Graceful Shutdown

Upcoming

Caps on everything, per-phase timeouts that starve slowloris, and a shutdown that drains instead of drops.

Released to everyone when ready
EMake it fastChapters 17–21
17

Measure First - Benchmarking Discipline and Lazy Headers

Upcoming

The measurement protocol every number rides on, then the first hot-path win - headers that never become strings.

Released to everyone when ready
18

The Write Path - Cached Date, Precomputed Buffers, One Syscall

Upcoming

Make the response head nearly free - a per-second date cache, prebuilt status lines, and one syscall per response.

Released to everyone when ready
19

Compiling JSON

Upcoming

A schema-compiled serializer that builds the exact string a route already knows the shape of.

Released to everyone when ready
20

Hidden Classes and the Monomorphic Pipeline

Upcoming

Fixed object shapes, monomorphic call sites, and a middleware chain compiled once per route instead of per request.

Released to everyone when ready
21

Feeding the GC Nothing

Upcoming

Pooled request contexts with full-field reset - the hot path stops allocating and the collector goes quiet.

Released to everyone when ready
FProve and scaleChapters 22–23
22

The Performance Gauntlet

Upcoming

Four workloads, a disciplined harness, a correctness gate, and a reproducible performance report.

Released to everyone when ready
23

Every Core - SO_REUSEPORT and the Cluster Fallback

Upcoming

The same hot path on every core - kernel socket sharding where the platform has it, cluster round-robin where it does not.

Released to everyone when ready
10 of 23 chapters live · 50 lessonsBuild a high-performance Node.js backend framework