Directory inventory
Create a scanner that walks the watched tree, applies ignore policy, records relative paths, counts files and directories, and writes repeatable scan reports.
Build a watch-mode CLI that treats filesystem events as prompts to verify state. It scans a directory, fingerprints inputs, persists cache data, normalizes noisy saves, queues rebuilds, and writes reports that explain the session.
$ npm run scan -- watched --metadata --hashCaptures file identity, content hash, and cache input.
$ npm run watch -- watchedStarts the native watcher path.
$ npm run watch -- watched --poll --poll-interval 1000Exercises the fallback watcher with measured work.
$ npm run watch -- watched --debounce 50 --concurrency 2 --rebuild-delay-ms 500Makes rebuild batching and queue limits observable.
$ npm run scan -- watched --metadata --hash --follow-symlinksCompares link treatment with the default scan.
Create a scanner that walks the watched tree, applies ignore policy, records relative paths, counts files and directories, and writes repeatable scan reports.
Store file type, size, timestamps, permissions, device and inode identity, symlink targets, SHA-256 hashes, and persistent cache data.
Receive native watcher events, add polling fallback, normalize uncertainty, group atomic writes, debounce bursts, and verify state through rescans.
Classify added, changed, deleted, and unchanged paths, queue rebuild jobs with bounded concurrency, skip cache hits, clean deleted outputs, and report the session.
The build starts with a tiny command surface and ends with a complete watch-session report. Each phase adds one observable mechanism and one artifact to inspect.
A project shell with package metadata, folder boundaries, help output, directory parsing, and strict input handling.
A scan report that describes every regular file under watched plus ignored paths and traversal errors.
A metadata-rich inventory that can separate content changes, permission changes, identity changes, and symlink state.
A content fingerprint layer that gives the cache a stable input hash for ordinary files.
An atomic cache file that survives between runs and becomes the previous inventory for later diffs.
A diff report that explains rebuild decisions with added, changed, deleted, and unchanged classifications.
A live watch session that records raw filesystem events without pretending they are final logical changes.
A polling observation mode whose latency and filesystem cost are visible in the watch-state report.
Logical atomic-replace events that preserve raw event evidence while reporting one target-file change.
Batch records that show how raw and logical events become verified rebuild cycles.
A rebuild queue that exposes pressure, enforces the concurrency cap, and records job state changes.
A build cache that can prove when work was skipped and when one changed file caused one rebuilt output.
An edge-case policy report that makes skipped, followed, errored, and platform-specific filesystem behavior visible.
A shutdown report that records how the watcher stopped and what state was preserved for the next run.
A final watch report that connects raw events, verified diffs, rebuild work, cache results, and shutdown state.
Lab 05 treats reports as build output. The learner can inspect the scan baseline, cache load, diff reasons, raw events, logical groups, queue pressure, rebuild decisions, shutdown state, and the final watch report.
scan.jsonbaseline inventory, metadata, hash, cache timing, and scan errorsdiff.jsonadded, changed, deleted, unchanged, and reason fieldsevents.jsonlraw native or polling watch events in append orderlogical-events.jsonatomic write groups and verified final statebatches.jsonldebounced rebuild batches with affected pathsqueue.jsonlactive and pending rebuild queue samplesrebuilds.jsonlcache hits, misses, rebuilt paths, and deleted outputswatch-state.jsonwatch mode, poll counters, registrations, and event totalsshutdown.jsonsignal, cleanup, cache save, and queue state at exitwatch-report.mdthe final session report from scan through shutdownBuy 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 05 is included in the Labs bundle and in NodeBook Pro, alongside six more complete runtime projects.