Publications catalog and contact sheet
Publications catalog and contact sheet
One list of everything the Factory has published (stories and datasets on DataHub, the DataPressr site and drafts sites), with URL, data, GitHub source, first-published date, licence, upkeep and status, plus a contact sheet of screenshots of every live page and every chart. Bead: factory-but.10.25.
- Rebuild:
catalog/build.sh(about 5 minutes). Re-shoot only some pages:catalog/build.sh <url-substring>. - Weekly: launchd runs
scripts/catalog-run.shin~/src/datasets/factoryevery Sunday at 06:00 (a missed run fires on wake). It pulls, runsbuild.sh, commitscatalog/catalog.csvif it changed, pushes, then republishes the page. Republishing needs the Artifact tool, whichclaude -placks, so it starts a short interactive Claude Code session in tmux (factory-catalog-publish) and ends it when that session writes/tmp/factory-catalog-published. Log:/tmp/factory-catalog.log. Install or reinstall:launchctl bootout gui/$(id -u)/org.datahub.factory-catalog 2>/dev/null; cp ops/org.datahub.factory-catalog.plist ~/Library/LaunchAgents/ && launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/org.datahub.factory-catalog.plist. Stop:launchctl bootout gui/$(id -u)/org.datahub.factory-catalog. - Live page: https://claude.ai/artifact/JgE553mFUtDDio2ZckKnoF (private claude.ai artifact).
- Output:
catalog/catalog.csv(committed),catalog/out/index.html+catalog/out/shots/(not committed). Republish with the Artifact tool:file_pathcatalog/out/index.html,urlabove,rootcatalog/out,filesfromcatalog/out/manifest.json(only the images the page uses; at most 255 per publish).build.py renderexits non-zero if a live page has no screenshot or does not return 200. - Sources:
publications.csv(canonical; fix it there, not in the catalog), the DataHub sitemap (finds blog posts missing from the log), the latest commons-check report (datasets/datapressr, branchcommons-check) for dataset status and upkeep, each dataset'sdatapackage.jsonfor licence and upkeep, and storyPROVENANCE.mdfiles for source licence terms. - Dates:
first_publishedcomes from the blog page's<time datetime>(date_sourcepage), the GitHub repo creation date for/coredatasets (repo), or else theupdateddate inpublications.csv(log). Dataset pages only show a last-updated date, so it isn't used. - Scope: every row of
publications.csv. Stories and datasets get page and chart screenshots; other blog posts (platform and tutorial posts, mostly pre-Factory) get a page thumbnail only. The ~140 older/coredatasets are not in the log; see the commons-check report for those. - Screenshots: Playwright headless Chromium, version pinned in
package.jsonto the build cached in~/Library/Caches/ms-playwright; no desktop needed.