Skip to content
Join our email list to get $80 off Ally in November →
R for the Rest of Us Logo

Ally Livestream Free

Build an election results website with Quarto

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

I used a livestream on US election day to build an auto-updating Quarto website for North Carolina results, working the way I normally do with Claude Code rather than the way I build lessons. It went in a few unplanned directions, including a side agent for an interactive map and Claude changing my Cloudflare settings through the browser.

You'll learn:

  • How to plan a project with AI before building it, using a one-question-at-a-time interview skill and a plan document you can comment on
  • How a GitHub Action loop can refresh election data and rebuild and publish a Quarto site, and why a scheduled cron job is unreliable at a five-minute cadence
  • A way to test an election site before real results arrive by previewing it locally with 2024 data and publishing only 2026
  • How to ask AI to explain code it wrote, such as the HTML cards and the data fetching, and how to have it document a workflow with a Mermaid diagram in a README
  • How to run several agents at once, using one for a mapgl interactive map in a separate work tree, and then merge and clean up the branch

Tools mentioned:

Key moments:

  • 00:54 Idea: an auto-updating Quarto election website
  • 01:41 North Carolina chosen for its public data
  • 04:18 Starting Claude in Solo and prompting from a Linear issue
  • 07:33 Invoking the grill me skill
  • 10:06 Concerns about GitHub's cron timing for five-minute updates
  • 14:45 Scoping to US Senate and US House races
  • 16:42 Plan to preview with 2024 data and publish only 2026
  • 24:02 Dictation tools: Raycast and Handy
  • 25:26 Asking for a README with Mermaid diagrams
  • 29:08 Reviewing the generated files and 2024 test data
  • 35:39 Walking through the README workflow diagram
  • 37:36 Running the GitHub Action manually
  • 38:33 Second Claude session to explain how the House cards are made
  • 41:33 New agent to make the Senate map interactive with mapgl
  • 42:37 Cloudflare worker created and site live
  • 45:16 Claude in Chrome adjusting Cloudflare settings
  • 47:25 Asking what data is fetched (102 JSON files)
  • 50:53 Merging the map pull request from the work tree
  • 55:18 Deciding when to start the update loop
  • 57:47 Checking the Cloudflare branch and page build
  • 01:00:29 Wrap-up and pointer to the live site