Parent process runner
Parse recorder flags, launch another Node script with the same Node binary, preserve exit status, and keep target arguments separate from recorder options.
Build a local recorder that launches another Node program, observes the process boundary, injects a small probe when internal data is needed, and writes reports a developer can inspect after the run.
$ npm run flight -- fixtures/hello.jsProves the parent runner and child exit path.
$ npm run flight -- --sample-ms 100 fixtures/cpu-loop.jsCaptures the hot window without extra dependencies.
$ npm run flight -- --timeout-ms 1500 fixtures/hanging-server.jsTurns a stuck process into recorded evidence.
$ npm run flight -- --html reports/flight.html fixtures/mixed-load.jsWrites the reviewable run report.
$ npm run flight -- compare reports/copy.json reports/view.json --markdown reports/comparison.mdShows how two recordings diverge.
Parse recorder flags, launch another Node script with the same Node binary, preserve exit status, and keep target arguments separate from recorder options.
Forward stdout and stderr live, count bytes, keep bounded previews, forward SIGINT/SIGTERM, and record the signal path before the recorder exits.
Inject an ESM preload into the child process when internal runtime counters are needed: memory, CPU, event loop delay, active resources, warnings, rejections, and exceptions.
Write JSON timeline data, focused metric files, HTML and Markdown reports, then compare multiple runs from existing report files.
The build starts with command parsing and ends with multi-run comparison. Each phase ships one observable capability and one artifact to inspect.
A project shell with package metadata, folders, help output, parsed target data, and strict flag handling.
A parent process wrapper that launches a child Node process and returns the same success or failure result.
Live output passthrough plus a structured stdio report for stdout and stderr evidence.
A lifecycle report with pid, startedAt, exitedAt, exitCode, signal, and elapsedMs.
A report that shows the full interrupt path from terminal signal to child process shutdown.
A child process that starts with recorder instrumentation and emits a first structured probe event.
A memory time series that shows Buffer-heavy behavior beyond V8 heap usage.
A CPU report that places synchronous CPU pressure next to the rest of the runtime evidence.
An event loop report that captures delay from synchronous work through histogram data and interval drift.
Handle evidence that explains why an otherwise idle child process remained alive.
Failure evidence with timestamps, stacks, event types, and the original failing child exit result.
Startup configuration evidence that explains which runtime flags and environment sources shaped the child.
reports/flight.json with one ordered timeline and stable top-level sections for every observed subsystem.
HTML and Markdown reports with summary cards, metric sections, timeline evidence, and escaped target output.
A comparison report that turns separate recordings into memory, timing, and correctness deltas.
Lab 01 treats reports as first-class artifacts: raw metric files, a combined timeline, readable HTML, Markdown for review notes, and a comparison report for multiple recordings.
stdio.jsonstdout/stderr byte totals and previewslifecycle.jsonspawn, close, signal, and elapsed datamemory.jsonRSS, heap, external, and ArrayBuffer samplescpu.jsonCPU time windows and hottest sampleevent-loop.jsondelay histogram and timer driftflight.jsonone ordered runtime timelineflight.htmlhuman-readable run reportcomparison.mdmulti-run memory and timing deltasBuy a single volume or lock in every volume at once. Switch between one-reader pricing and team licenses for up to 25 members.
Volume I as EPUB, light and dark PDFs, slides, cheatsheets, and future updates.
Volume I Labs plus its downloadable bundle in one purchase. Save $9.99 vs buying the Digital Bundle and Labs separately.
Volume I long-form builds with checkpoints, hints, debugging notes, and expected output.
The bundle includes seven runtime projects covering process observation, binary storage, streams, module resolution, file watching, async orchestration, and custom protocols.
Lab 01 is included in the Labs bundle and in NodeBook Pro, alongside six more complete runtime projects.