Sample project · recap

FerryLog: a 32-line sample, built in one pass

A ferry departure board with no server and no dependencies. One planned item is missing: the service worker.

ferrylog sample · 4 files · tested 2026-11-17

Files4
Lines total32
Weekday sailings11
Dependencies0
README13board.js9app.js8schedule2
Fig. 1The docs outweigh the code: 13 of 32 lines are the README.

Files

Each file does one job

FileJobStatus
src/board.jsNext 3 departures from the current timedone
src/app.jsRenders the board, refreshes every 30 sdone
src/schedule.json11 weekday sailings, Sausalito to San Franciscodone
Service workerOffline cache, plan step 3missing

Verdict

Done, except the offline claim

Steps 1 and 2 of the plan are built and read correctly. Step 3 is not started, so “works offline” is false for a cold open today. Next actions, in order: add the service worker, then add the weekend schedule, which the data file does not cover.

Sources

sample-project/ — file line counts from wc -l, 2026-11-17