Two hand-typed copywork curricula for internalizing web standards — no frameworks, no TypeScript, plain JS + JSDoc. The method (K&R / C-primer style): you read a complete, correct program and retype it by hand until the syntax lives in your fingers. You already know how to program — the goal is to internalize the surface: idioms, quirks, the runtime, the web platform.
- a-fundamentals/ — modern JavaScript: runtime, values & coercion, objects/prototypes, modern syntax, iteration, async, the web platform, metaprogramming, JSDoc/testing. 149 verified programs across 9 phases plus capstone projects. Start here.
- b-web-platform/ — the web platform: real-time 3D graphics (Canvas 2D → WebGL2 → WebGPU + compute) and real-time communication (WebSockets → WebRTC → Web Audio → recording). ~90 programs across Track A, Track B, and 2 capstones. ✅ complete.
Candidate future tracks — more of the web platform, then beyond it. Not committed, just the map; pick whatever's interesting and we can scope it the same way (discuss → curriculum doc → generate module-by-module).
- Track C — platform & systems: Service Workers / PWA (offline, installable),
WebAssembly (run C/Rust/Zig/… in the browser — the bridge beyond JS),
Web Crypto (
crypto.subtle), WebAuthn / passkeys, deeper Streams (TransformStream+ backpressure), File System Access + OPFS. - Track D — networking & data: WebTransport (HTTP/3), Server-Sent Events, Media Source Extensions (adaptive streaming), Background Sync / Push.
- Track E — immersive & motion: WebXR (VR/AR, on top of WebGL/WebGPU), SVG, Web Animations API, View Transitions, CSS Houdini paint worklets.
- Track F — devices & sensors: Geolocation, Device Orientation/Motion, Gamepad, WebUSB / WebSerial / WebHID / Web Bluetooth, Screen Wake Lock.
- Track G — input & UX glue: Clipboard, Drag & Drop, Web Share, Web Speech (STT/TTS), Performance API + Web Vitals, the Navigation API, BroadcastChannel.
Beyond the web: the same copywork method extends to other languages and runtimes (systems, native, …) — a separate effort from these web tracks, with WebAssembly as a natural on-ramp.
a-fundamentals/
curriculum.md the plan: phases, topics, checkboxes
reference/ the listings you READ and copy FROM
phase-0-env/ phase-1-values/ ...
practice/ where YOU type your hand-written copies (mirror)
b-web-platform/
curriculum.md graphics & realtime plan
reference/ practice/ servers/ assets/
serve.js static dev server for the browser pages — `bun serve.js`
.vscode/settings.json "copywork mode" — autocomplete/AI/lint off
Within each curriculum, reference/ and practice/ mirror each other file-for-file.
- Open a
reference/listing. Read it until you understand why each line is there (the comments explain the quirks — those margin notes are the lesson). - Open the matching empty file under
practice/and type it by hand. No copy-paste. The typing is the point. - Run it (see below) and predict the output before you read it.
- Self-check by output, not by source text. The reference's
// expectednotes are your answer key — run your copy and confirm it prints the same:To compare mechanically, diff the output (comments don't matter this way):bun a-fundamentals/practice/phase-1-values/01-typeof.js
(A byte-exactdiff <(bun a-fundamentals/practice/phase-1-values/01-typeof.js) \ <(bun a-fundamentals/reference/phase-1-values/01-typeof.js)
diffof the two files is a stricter, optional check — it asks "did I transcribe every character," and only then do comments count.) - Then change it. Break it on purpose. Make 3–5 small variations. Check the box in the curriculum only when you can write it again from memory.
On the comments: you don't have to type them to "pass" — they don't affect output. But typing the why-notes makes you read them, which is half the lesson. Recommended: type them anyway, but grade yourself on what the program prints.
For the :reimplement: exercises (rebuild map, new, a tiny Promise…),
try writing them from the description before peeking at the reference. Those
reward a struggle-first pass.
-
Phases 1–5, 7, 8 are plain
.jsand run in any standalone runtime:bun a-fundamentals/reference/phase-1-values/01-typeof.js # or: node <file> / deno run <file>Every file ends by
console.log-ing its result, with aconsole.assertwhere it sharpens the point. -
Phase 6 and the projects run in the browser (DOM, Web Components, canvas…). Those are
.htmlfiles. ES modules do not load overfile://— serve the folder first with the included static server:bun serve.js # prints a URL (auto-rolls to a free port if 8000 is busy)Then open, e.g.,
http://localhost:8000/a-fundamentals/reference/phase-6-platform/17-my-counter.html(or the projects under/a-fundamentals/reference/projects/).serve.jsserves files plainly — no bundling — so the browser loads your modules exactly as you typed them.Ctrl-Cto stop;PORT=3000 bun serve.jsto choose a starting port.
The curriculum code is portable web-standard JS — no Bun.* APIs — so anything
in Phases 1–5/7/8 also runs unchanged under Node and Deno. (serve.js itself is a
dev tool and does use Bun.serve on purpose; it isn't part of the copywork.)
- Keep a REPL open for one-liners:
bun repl,node, or the browser console. - Progress and personal notes: jot them right in the curriculum file under each phase, or keep a scratch file here.
MIT — free to use, copy, and adapt. If you find it useful for your own re-learning, go for it.