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.
Files4
Lines total32
Weekday sailings11
Dependencies0
Files
Each file does one job
| File | Job | Status |
|---|---|---|
src/board.js | Next 3 departures from the current time | done |
src/app.js | Renders the board, refreshes every 30 s | done |
src/schedule.json | 11 weekday sailings, Sausalito to San Francisco | done |
| Service worker | Offline cache, plan step 3 | missing |
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