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.sh in ~/src/datasets/factory every Sunday at 06:00 (a missed run fires on wake). It pulls, runs build.sh, commits catalog/catalog.csv if it changed, pushes, then republishes the page. Republishing needs the Artifact tool, which claude -p lacks, 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_path catalog/out/index.html, url above, root catalog/out, files from catalog/out/manifest.json (only the images the page uses; at most 255 per publish). build.py render exits 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, branch commons-check) for dataset status and upkeep, each dataset's datapackage.json for licence and upkeep, and story PROVENANCE.md files for source licence terms.
  • Dates: first_published comes from the blog page's <time datetime> (date_source page), the GitHub repo creation date for /core datasets (repo), or else the updated date in publications.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 /core datasets are not in the log; see the commons-check report for those.
  • Screenshots: Playwright headless Chromium, version pinned in package.json to the build cached in ~/Library/Caches/ms-playwright; no desktop needed.
Built with LogoFlowershow