saturn
- 187 commits
- 2 branches
- 0 tags
- updated
- CI 2/2
wip: commit sync
SignedGitea couldn't verify the signature.
Showing 12 changed files with 1321 additions and 7 deletions.
.gitea/workflows/sync-posts.yaml
+6 −2
@@ -1,7 +1,8 @@11name: Sync223# run by hand (from the gitea app too): copies my bluesky posts into the4# html, publishes my writing to standard.site, and commits the result. the3# run by hand (from the gitea app too): copies my bluesky posts and recent4# project commits into the html, publishes my writing to standard.site, and5# commits the result. the56# push is made with SYNC_TOKEN, a personal access token, because pushes made67# with the built-in actions token don't trigger other workflows, and Mirror78# and Deploy has to run after this.@@ -22,6 +23,9 @@ jobs:2223 node --version2324 node scripts/sync-posts.mjs242526 - name: Sync commits27 run: node scripts/sync-commits.mjs282529 - name: Publish to standard.site2630 env:2731 ATPROTO_APP_PASSWORD: ${{ secrets.ATPROTO_APP_PASSWORD }}
README.md
+3 −0
@@ -18,6 +18,8 @@ then open localhost:8080.18181919it shows up on the home page, /blog/ and /posts/ a minute or two later. `git pull` before working on the site again.202021the same button refreshes the recent commits on /projects/ and /projects/holonet/ (locally: `mise run sync-commits`).222123## new blog post222423251. `git pull`@@ -40,3 +42,4 @@ reviews go in the same writing list, tagged #game, #movie, #show, #book or #albu4042## good to know41434244- `internal/` never gets deployed. `internal/styles.html` shows every style on the site.45- `internal/site-guide.md` is the long version of all this, written for an llm to read before helping out.
global.css
+170 −2
@@ -1278,11 +1278,13 @@ article:has(> .page-header--post) + .pager {12781278 color: var(--text-secondary);12791279}128012801281/* muted "view all" variant */1281/* muted "view all" variant: a centred bar under the grid */12821282.card--more {12831283 border-style: dashed;12841284 opacity: 0.65;12851285 justify-content: center;1286 align-items: center;1287 padding-block: 1.1rem;12861288}1287128912881290.card--more:hover {@@ -1295,6 +1297,50 @@ article:has(> .page-header--post) + .pager {12951297 transform: scale(1.03);12961298}129712991300/*============================*/1301/* components - pills */1302/*============================*/13031304.pills {1305 display: flex;1306 flex-wrap: wrap;1307 gap: 0.4rem;1308 margin-top: 0.6rem;1309}13101311.pill {1312 display: inline-flex;1313 align-items: center;1314 gap: 0.45rem;1315 padding: 0.2rem 0.6rem;1316 border: 1px solid var(--borders);1317 border-radius: 999px;1318 font-size: 0.68rem;1319 letter-spacing: 0.08em;1320 line-height: 1.4;1321 color: var(--text-secondary);1322 white-space: nowrap;1323}13241325/* in development: a slow pulsing dot (reduced motion stops it).1326 switched off for now; uncomment to bring it back */1327/*1328.pill--dev::before {1329 content: "";1330 width: 0.4rem;1331 height: 0.4rem;1332 border-radius: 50%;1333 background: currentColor;1334 animation: pill-pulse 2.4s ease-in-out infinite;1335}13361337@keyframes pill-pulse {1338 50% {1339 opacity: 0.25;1340 }1341}1342*/134312981344/*============================*/12991345/* components - table */13001346/*============================*/@@ -1957,6 +2003,125 @@ figure:has(.img-scaled) figcaption {19572003 }19582004}195920052006/*============================*/2007/* projects - commit log */2008/*============================*/20092010/* recent commits, written by scripts/sync-commits.mjs. stands in for a2011 screenshot: in the project banner and on the /projects/ card */2012.commit-log {2013 position: relative;2014 width: 100%;2015 max-width: 40rem;2016 margin: 0 auto;2017 padding: 1rem 1.25rem;2018 border: 1px solid #3a4a3d;2019 border-radius: 0.5rem;2020 background: var(--surface);2021 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);2022}20232024.commit-log-head {2025 display: flex;2026 justify-content: space-between;2027 gap: 1rem;2028 margin-bottom: 0.6rem;2029 padding-bottom: 0.6rem;2030 border-bottom: 1px dashed var(--borders);2031 font-size: 0.72rem;2032 letter-spacing: 0.08em;2033 color: var(--text-secondary);2034}20352036.commit-log-list {2037 list-style: none;2038 margin: 0;2039 padding: 0;2040}20412042.commit-log-row {2043 display: grid;2044 grid-template-columns: auto minmax(0, 1fr) auto;2045 gap: 1rem;2046 margin: 0;2047 padding: 0.3rem 0;2048 font-size: 0.82rem;2049 line-height: 1.5;2050}20512052.commit-log-hash,2053.commit-log-date {2054 color: var(--text-secondary);2055 font-variant-numeric: tabular-nums;2056}20572058.commit-log-msg {2059 color: var(--text-headings);2060 overflow: hidden;2061 text-overflow: ellipsis;2062 white-space: nowrap;2063}20642065/* banner: grows to fit the log instead of a fixed height */2066.project-banner--log {2067 display: flex;2068 align-items: center;2069 height: auto;2070 min-height: 20rem;2071}20722073/* /projects/ card: takes the screenshot's spot and shrinks like it */2074.project-card-right:has(> .commit-log) {2075 flex: 0 1 30rem;2076 min-width: 0;2077}20782079.project-card .commit-log {2080 box-shadow: none;2081}20822083/* no room for the hash next to the card text */2084.project-card .commit-log-row {2085 grid-template-columns: minmax(0, 1fr) auto;2086}20872088.project-card .commit-log-hash {2089 display: none;2090}20912092/* card stacks: the 30rem basis would become its height */2093@media (max-width: 768px) {2094 .project-card-right:has(> .commit-log) {2095 flex: none;2096 }2097}20982099/* phones: banner rows put hash and date on one line, the message under them */2100@media (max-width: 600px) {2101 .project-banner--log {2102 padding: 1rem;2103 }21042105 .commit-log {2106 padding: 0.875rem 1rem;2107 }21082109 .project-banner .commit-log-row {2110 grid-template-columns: auto 1fr;2111 gap: 0.1rem 1rem;2112 }21132114 .project-banner .commit-log-date {2115 text-align: right;2116 }21172118 .project-banner .commit-log-msg {2119 grid-column: 1 / -1;2120 grid-row: 2;2121 white-space: normal;2122 }2123}212419602125/*============================*/19612126/* photos - photo wall */19622127/*============================*/@@ -2479,7 +2644,10 @@ footer nav a,24792644.archive-tag,24802645.archive-date,24812646.post-card-meta,2482.post-card-extra {2647.post-card-extra,2648.pill,2649.commit-log-head,2650.commit-log-date {24832651 text-transform: uppercase;24842652}24852653
index.html
+11 −1
@@ -186,6 +186,17 @@186186 <h2 class="section-label">projects</h2>187187188188 <div class="card-grid">189 <a class="card" href="/projects/holonet/">190 <p class="card-type">Sep '26 · game backend</p>191 <p class="card-title">Holonet</p>192 <p class="card-desc">193 A multiplayer video game backend in Go194 </p>195 <div class="pills">196 <span class="pill">#new</span>197 <span class="pill pill--dev">#in-development</span>198 </div>199 </a>189200 <a class="card" href="/projects/saturn/">190201 <p class="card-type">Jan '26 · re-design</p>191202 <p class="card-title">Saturn</p>@@ -195,7 +206,6 @@195206 </a>196207 <a class="card card--more" href="/projects/">197208 <p class="card-title">all projects →</p>198 <p class="card-desc">More coming soon</p>199209 </a>200210 </div>201211 </section>
internal/site-guide.mdadded
+266 −0
@@ -0,0 +1,266 @@1# saturn: how my site works23A guide for an assistant helping me with danieldaum.net. Read all of it before changing anything. When this guide and the code disagree, the code wins. Tell me about the mismatch.45## the basics67- Handwritten HTML and one stylesheet (`global.css`). No framework, no build step, and no JavaScript on public pages.8- Hosting is Cloudflare Pages. Pushing to `main` on my Gitea runs `.gitea/workflows/deploy.yaml`. It copies every tracked file except `internal/`, `scripts/`, `workers/`, `.gitea/`, `.gitignore` and `mise.toml`, and deploys them.9- Images live on R2, served from `https://assets.danieldaum.net/img/...`. Photos are `img/photos/<name>.webp`.10- Likes and comments come from `functions/_middleware.js` and a D1 database. They work on `/about/`, `/now/`, `/now/<slug>/` and `/blog/<slug>/`, with no setup per post.11- My Bluesky account runs on my own PDS: `https://pds.danieldaum.net`, DID `did:plc:e3z5gj5iyuwgqao562bo4bdf`, handle `danieldaum.net`.12- Local preview: `mise run serve`, then open http://localhost:8080.1314## rules that matter1516- **CSP.** Every public page has a `Content-Security-Policy` meta tag with `style-src 'self'`. That means no `style=""` attributes and no `<style>` blocks. Only files in `internal/` may use inline styles. If a page loads images from a new host, add that host to its `img-src`.17- **Caps are CSS only.** Write normal case in HTML. Elements that show in caps are listed in the caps rule near the end of `global.css`, and the `.caps` class does the same for anything else.18- **Links.** Internal links end in a slash (`/now/sep-2026/`). Underlines only apply to links without a class inside `p`, `li`, `td`, `dd`, `blockquote` and `figcaption`. Links with a class style themselves.19- **Colour.** Lime (`--accent`) is for navigation and actions only. Labels, tags and dates are grey.20- **Don't edit between sync markers.** `<!-- posts:all -->`, `<!-- posts:highlight -->`, `<!-- commits:holonet:6 -->` and the matching closing comments are rewritten by a script on every sync.21- **Style guide.** `internal/styles.html` shows every component. Update it when a component changes.22- **Never commit or push for me.** Show me the changes and I'll commit them.2324## my voice2526First person, casual and plain. Short sentences, the odd exclamation mark, and dry asides ("yay."). Headings and labels are short and lowercase in the source (CSS capitalises some of them). No marketing language. Example: "I built this site to practice writing, share my thoughts, and publish things I find interesting."2728## folders2930```31index.html home: latest post card, recent writing, projects32blog/index.html posts card, then the writing list (ol.archive)33posts/index.html every bluesky post (written by scripts/sync-posts.mjs)34now/index.html a copy of the newest now post35now/<slug>/ now posts (now/jan-2026/, now/sep-2026/)36about/ about page (a post, with a 3-photo banner row)37photos/ photo wall + photos/<name>/ pages38games/ movies/ shows/ books/ music/ trackers + one page per entry39projects/ project cards + projects/<name>/ pages (saturn, holonet, rhea)40garden/ ratings/ changelog/ privacy/41feed.xml atom feed, long-form posts only42internal/ never deployed: template.html, example.html, styles.html, this guide43scripts/ sync-posts.mjs, sync-commits.mjs, sync-standard.mjs, word-count.py44.well-known/ atproto-did, site.standard.publication45```4647---4849## 1. posting on bluesky50511. Post on Bluesky.522. Gitea → Actions → **Sync** → Run.5354That's it. The workflow runs `scripts/sync-posts.mjs`, commits "chore: sync" and pushes, which deploys. It takes a few minutes. Afterwards, `git pull` before editing locally.5556What the sync does:5758- Copies my top-level posts and reposts into `/posts/`. Replies are skipped.59- Puts the newest post in a card on `/` and `/blog/`.6061How things show up:6263- Links, mentions and tags are clickable.64- Images show as a single image or a 2-across grid.65- Video shows Bluesky's thumbnail and links to Bluesky to play.66- A quote or repost shows the other person's post in a card.67- If the PDS returns zero posts while the site still has some, the script stops without changing anything. Run it with `-- --force` only if I really deleted everything.6869Linking to my site from a post: put the full `https://danieldaum.net/...` URL in the text. A post can have images or a link card, not both. With images attached, the link in the text is still clickable.7071Run it locally: `mise run sync-posts`.7273## 2. publishing a new blog post or now post7475Work out the slug (`now/oct-2026`, `blog/some-title`) and the date first.76771. `git pull`.782. **Copy the template:** `internal/template.html` → `<section>/<slug>/index.html`. Replace everything in CAPS:79 - `<title>`, `og:title` and `twitter:title`: `daniel daum - Post Title`.80 - `description`, `og:description` and `twitter:description`: one sentence, the same in all three (it's also the feed summary and the standard.site description).81 - `og:url`: the full URL.82 - The kicker: `now` or `blog`.83 - The title in `<h1>`.84 - The date: `<time datetime="2026-10-01">1 October 2026</time>`.853. **Structure.** Follow `internal/example.html`:86 - one short intro note in a blockquote87 - 2–4 `h2.caps` groups, and never a heading over fewer than two paragraphs88 - paragraphs of 3–6 sentences89 - media as `h4` labels over lists, one title per line90 - end on a plain paragraph with no heading914. **Banner (optional):** see section 3.925. **Pager:** the post's pager links to the previous post in date order across all writing (now posts and about mixed). Give the new post a `← previous` card pointing at the current newest post. Then add a `next →` card to that older post, and to `/now/index.html` if it's a copy of it. Remove any card with nothing to point to.936. **`/blog/`:** add a row at the top of `ol.archive` in `blog/index.html`:94 ```html95 <li>96 <a class="archive-row" href="/now/oct-2026/">97 <span class="archive-title">Post Title</span>98 <span class="archive-tag">#now</span>99 <time class="archive-date" datetime="2026-10-01">01 Oct 26</time>100 </a>101 </li>102 ```1037. **Home page:** add it to the top of "recent writing" in `index.html`. The list currently shows the two newest, so ask me before removing the oldest. Get the word count with `mise run words now/oct-2026/index.html`.104 ```html105 <li class="recent-writing-item">106 <p class="recent-writing-tag">#now</p>107 <h3 class="recent-writing-title">108 <a href="/now/oct-2026/">Post Title</a>109 </h3>110 <ul class="recent-writing-meta">111 <li>512 words</li>112 <li>113 <time datetime="2026-10-01">1 October 2026</time>114 </li>115 </ul>116 </li>117 ```1188. **`feed.xml`:** add an `<entry>` at the top (newest first) and set the feed's top-level `<updated>` to match. Copy an existing entry's shape:119 - `title`, `link`, `id` (the full URL), `published` and `updated` as `2026-10-01T09:00:00-07:00`, `<category term="now" />`.120 - `summary`: the meta description, word for word.121 - `content type="html"` in CDATA: the post body. Banner first, as `<figure><img ... /></figure>`. Absolute URLs, no `class`/`aria-*`/`target`/`rel` attributes, one block per line, indented 6 spaces.1229. **Now posts only:** replace the article in `now/index.html` with the new post's article. Keep its likes section as `data-social="/now/<slug>/"` so likes and comments are shared with the dated page.12310. Check it locally, then show me the diff for me to commit and push.12411. After it's deployed: Gitea → Actions → **Sync** → Run. That publishes it to standard.site (see section 6) and adds a `<link rel="site.standard.document">` tag to the page.125126When an existing post changes, also update its word count on the home page and its `<content>` in `feed.xml`.127128## 3. banners129130A banner is an optional photo across the top of a post. It must already be on `/photos/` and have its own photo page, and the banner links to that page.131132```html133<a class="post-banner" href="/photos/lake-tahoe-boat/" aria-label="photo details: Boat on Lake Tahoe">134 <img src="https://assets.danieldaum.net/img/photos/lake-tahoe-boat.webp" alt="a boat crossing Lake Tahoe" />135</a>136```137138It goes first inside `<article>`, before the post header. Use the photo's title and alt text exactly as they are on `/photos/`.139140**How it crops.** Don't edit the file. The CSS crops it live:141142- Desktop shows a **2:1** strip, phones (≤480px) show **4:3**. The image fills the box (`object-fit: cover`), centred by default.143- A portrait photo (3:4) only shows a band about 3/8 of its height on desktop. A landscape photo (4:3) shows about 2/3 of its height.144- To move the visible area, add a class to the `<a>`:145 - `post-banner--high` shows nearer the top (30%)146 - `post-banner--low` shows nearer the bottom (70%)147 - `post-banner--left` shows nearer the left (30%)148 - `post-banner--right` shows nearer the right (70%)149150How to choose: picture a horizontal strip half as tall as the photo is wide. A good banner has its subject inside that strip, with plain space (sky, water, sand) above and below that can be lost. Horizons, skylines and wide landscapes work well. Faces and tall subjects don't, because they get cut. If the subject sits outside the 30/50/70% positions, choose another photo rather than editing the file, because the same file is used full size on its photo page.151152**Three photos side by side** (like `/about/`):153154```html155<figure class="post-banner post-banner--row">156 <img src=".../a.webp" alt="..." />157 <img class="post-banner--left" src=".../b.webp" alt="..." />158 <img src=".../c.webp" alt="..." />159</figure>160```161162No link here. Phones show only the middle photo, so put the best one in the middle.163164**Sizes.** On the site, any size works. For standard.site the cover has to be under 1 MB. The sync script handles that itself: it uses a Cloudflare-resized copy (`/cdn-cgi/image/width=1600,quality=80,format=webp/...`) when the original is too big. Nothing to do.165166## 4. adding photos167168For each photo I give you: file name, title, location, date, mood (film simulation, may be blank), and the camera (always the same unless I say otherwise).1691701. I upload `<name>.webp` to R2 under `img/photos/`. Check the URL loads before using it.1712. Look at the photo and write lowercase alt text that describes it plainly. Don't identify people.1723. **`photos/index.html`, the wall.** Newest first. The tile id is the page name, and its lightbox is `#view-<name>`:173 ```html174 <figure class="photo-tile photo-tile--new" id="NAME">175 <a class="photo-link" href="#view-NAME" aria-label="view full size: TITLE">176 <img src="https://assets.danieldaum.net/img/photos/FILE.webp" alt="ALT" loading="lazy" />177 </a>178 <figcaption class="photo-caption">179 <span class="photo-caption-name">TITLE <span class="new-tag">New!</span></span>180 <span class="photo-caption-location">City, California</span>181 <span class="photo-caption-date">7 October 2026</span>182 </figcaption>183 </figure>184 ```185 Only the newest batch gets `photo-tile--new` and the `New!` tag. Remove both from the previous batch.1864. **The lightboxes**, in the same order under `<!-- ===== LIGHTBOXES ===== -->`:187 ```html188 <div class="lightbox" id="view-NAME" role="dialog" aria-label="TITLE, full size" tabindex="-1">189 <a class="lightbox-backdrop" href="#NAME" tabindex="-1" aria-hidden="true"></a>190 <figure class="lightbox-content">191 <img src="https://assets.danieldaum.net/img/photos/FILE.webp" alt="ALT" loading="lazy" />192 <figcaption class="lightbox-meta">193 <p class="lightbox-meta-name">TITLE</p>194 <a class="lightbox-details" href="/photos/NAME/">details →</a>195 </figcaption>196 </figure>197 <a class="lightbox-nav lightbox-prev" href="#view-PREVIOUS" aria-label="previous photo">‹</a>198 <a class="lightbox-nav lightbox-next" href="#view-NEXT" aria-label="next photo">›</a>199 <a class="lightbox-close" href="#NAME" aria-label="close full size photo">×</a>200 </div>201 ```202 Prev and next follow wall order and **loop**: the first photo's prev is the last photo, and the last photo's next is the first. Fix the neighbours' links too.2035. **The photo page:** copy any `photos/<name>/index.html`, then replace the title, description, `og:` and `twitter:` tags, image `src` and alt (it appears in several places), the date, location and mood line. Leave out the `MOOD:` line if there's no mood. The camera line is `iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV`.2046. **Pager:** `← newer` and `older →` follow wall order, with no looping. The first photo has no newer card and the last has no older card. Update the photo pages next to the new ones.2057. Check that every `#view-...` and `/photos/.../` link points at something that exists.206207## 5. notes (reviews)208209Every game, movie, show, book and album has a page (`games/<slug>/` and so on) with a review section:210211```html212<section class="entry-review" aria-label="review">213 <h2 class="section-label">review</h2>214 <p>Review text.</p>215</section>216```217218- **Ratings** are out of 5 and link to `/ratings/`. Use the class for the score:219220 | Score | Class |221 |---|---|222 | 1 | `rating--terrible` |223 | 2 | `rating--below-average` |224 | 3 | `rating--good` |225 | 4 | `rating--above-average` |226 | 5 | `rating--great` |227228 Example: `<a class="rating rating--great" href="/ratings/" aria-label="rated 5 out of 5, see my rating scale">(5/5)</a>`. Unrated: `class="rating"`, `(?/5)`, `aria-label="not yet rated, see my rating scale"`.229- When a review is written, add it to the `/blog/` writing list like a post. Link it to the entry page and tag it `#game`, `#movie`, `#show`, `#book` or `#album`.230- Notes **never** go in `feed.xml`, and the standard.site sync skips those tags.231- The ~130 empty entries are a backlog. Don't list them on `/blog/` until they have a review.232233## 6. standard.site (atproto)234235My long-form posts are published as `site.standard.document` records on my PDS, so atproto reading apps can find and follow them. It's metadata only (title, description, path, date, tag and a cover image). The post itself stays on the site.236237- `scripts/sync-standard.mjs` runs as part of the **Sync** button, and locally with `mise run sync-standard`. Locally it needs the app password:238 ```bash239 read -s -p "app password: " ATPROTO_APP_PASSWORD && echo && export ATPROTO_APP_PASSWORD && mise run sync-standard240 ```241- **What gets published:** every row of the `/blog/` writing list, except note tags.242- **Record IDs** come from the post's date, so changing a date creates a new record. The script never deletes records.243- **Only changed records are written,** so running it twice is harmless.244- **The publication record** has ID `3mbd3542k2222`. Its address is also in `.well-known/site.standard.publication`.245- **Gitea secrets:** `SYNC_TOKEN` (repo write, so the push triggers a deploy) and `ATPROTO_APP_PASSWORD`. Without the app password, the standard.site step skips itself.246247## 7. projects248249A project shows up in three places, newest first:2502511. **Home page:** a `.card` in the projects `.card-grid`, before the "all projects" card.2522. **`/projects/`:** a `.project-card`. The left side has the type line, name, description and pills. The right side has a screenshot (`.project-card-img`) or, before there is one, the commit log.2533. **`projects/<name>/`:** copy `projects/saturn/` (with a screenshot) or `projects/holonet/` (with the commit log in the banner).254255**Pills.** `<div class="pills">` with `<span class="pill">#new</span>`. `#in-development` also carries `pill--dev`, a pulsing dot that is commented out in `global.css` for now. They're grey, never lime. Take them off when the project isn't new any more.256257**Commit log.** `scripts/sync-commits.mjs` reads recent commits from my Gitea's public API and writes them between `<!-- commits:<repo>:<count> -->` markers. It runs with the **Sync** button, or locally with `mise run sync-commits`. To add a repo, put the markers inside a `.commit-log` and add the page to `PAGES` in the script. On the `/projects/` card, the log is `aria-hidden` because the whole card is a link, and it hides the hash to save room.258259## 8. don't260261- Don't add JavaScript, inline styles or new external hosts to public pages without asking.262- Don't hand-edit content between `<!-- posts:... -->` or `<!-- commits:... -->` markers.263- Don't use `#view-...` links outside `/photos/`. Posts and banners link to `/photos/<name>/`.264- Don't commit `.claude/launch.json`, `.dev.vars` or anything with a password in it.265- Don't re-add `@view-transition` (it caused unstyled loads in Safari).266- Don't commit or push. Show me the changes instead.
internal/styles.html
+30 −2
@@ -708,7 +708,6 @@708708 </a>709709 <a class="card card--more" href="#listings">710710 <p class="card-title">all projects →</p>711 <p class="card-desc">more coming soon</p>712711 </a>713712 </div>714713 </div>@@ -754,8 +753,37 @@754753 </div>755754 </div>756755 </div>756 <div class="demo">757 <p class="demo-label">.pills / .pill / .pill--dev (dot commented out), project cards and headers</p>758 <div class="pills">759 <span class="pill">#new</span>760 <span class="pill pill--dev">#in-development</span>761 </div>762 </div>763764 <div class="demo">765 <p class="demo-label">.commit-log, written by scripts/sync-commits.mjs (banner or /projects/ card)</p>766 <div class="commit-log">767 <div class="commit-log-head">768 <span>recent commits</span>769 <a href="#projects">all commits →</a>770 </div>771 <ol class="commit-log-list">772 <li class="commit-log-row">773 <span class="commit-log-hash">3b951c1</span>774 <span class="commit-log-msg">feat: add containerization</span>775 <time class="commit-log-date" datetime="2026-09-09T15:27:32-07:00">09 Sep 26</time>776 </li>777 <li class="commit-log-row">778 <span class="commit-log-hash">4a962de</span>779 <span class="commit-log-msg">feat: add godot client</span>780 <time class="commit-log-date" datetime="2026-09-09T14:38:45-07:00">09 Sep 26</time>781 </li>782 </ol>783 </div>784 </div>757785 <p class="meta">.project-banner (the tall gradient banner at the top of a project page) is page-specific758 and not shown here.</p>786 and not shown here. .project-banner--log lets it grow around a commit log.</p>759787 </section>760788761789 <!-- ===================== -->
mise.toml
+10 −0
@@ -16,3 +16,13 @@ run = "node scripts/sync-posts.mjs"1616[tasks.sync-standard]1717description = "Publish my writing to standard.site"1818run = "node scripts/sync-standard.mjs"1920# mise run sync-commits21[tasks.sync-commits]22description = "Copy recent commits from my gitea into the project pages"23run = "node scripts/sync-commits.mjs"2425# mise run words now/sep-2026/index.html26[tasks.words]27description = "Word count for a post, for the home page"28run = "python3 scripts/word-count.py"
projects/holonet/index.htmladded
+345 −0
@@ -0,0 +1,345 @@1<!doctype html>2<html lang="en">3 <head>4 <meta charset="UTF-8" />5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />6 <meta7 name="description"8 content="holonet - an open-source multiplayer game backend in go, built by daniel daum"9 />10 <meta11 http-equiv="Content-Security-Policy"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;"13 />14 <meta name="referrer" content="strict-origin-when-cross-origin" />15 <link16 rel="preload"17 href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2"18 as="font"19 type="font/woff2"20 crossorigin21 />22 <link23 rel="preload"24 href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2"25 as="font"26 type="font/woff2"27 crossorigin28 />29 <link30 rel="preload"31 href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2"32 as="font"33 type="font/woff2"34 crossorigin35 />36 <link rel="preconnect" href="https://assets.danieldaum.net" />37 <link rel="stylesheet" href="/global.css" />38 <link39 rel="icon"40 type="image/png"41 sizes="32x32"42 href="/assets/favicon/favicon-32x32.png"43 />44 <link45 rel="icon"46 type="image/png"47 sizes="16x16"48 href="/assets/favicon/favicon-16x16.png"49 />50 <link51 rel="apple-touch-icon"52 sizes="180x180"53 href="/assets/favicon/apple-touch-icon.png"54 />55 <link rel="manifest" href="/assets/favicon/site.webmanifest" />56 <link57 rel="alternate"58 type="application/atom+xml"59 title="daniel daum"60 href="https://danieldaum.net/feed.xml"61 />62 <title>daniel daum - holonet</title>6364 <meta property="og:type" content="website" />65 <meta property="og:site_name" content="daniel daum" />66 <meta property="og:title" content="daniel daum - holonet" />67 <meta68 property="og:description"69 content="holonet - an open-source multiplayer game backend in go, built by daniel daum"70 />71 <meta72 property="og:url"73 content="https://danieldaum.net/projects/holonet/"74 />75 <meta76 property="og:image"77 content="https://assets.danieldaum.net/img/misc/og.jpg"78 />79 <meta property="og:image:type" content="image/jpeg" />80 <meta property="og:image:width" content="1200" />81 <meta property="og:image:height" content="630" />82 <meta83 property="og:image:alt"84 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"85 />8687 <meta name="twitter:card" content="summary_large_image" />88 <meta name="twitter:title" content="daniel daum - holonet" />89 <meta90 name="twitter:description"91 content="holonet - an open-source multiplayer game backend in go, built by daniel daum"92 />93 <meta94 name="twitter:image"95 content="https://assets.danieldaum.net/img/misc/og.jpg"96 />97 <meta98 name="twitter:image:alt"99 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"100 />101 </head>102103 <body>104 <a class="skip-link" href="#main">skip to content</a>105106 <!-- ===== HEADER ===== -->107 <header class="site-header">108 <a class="site-name" href="/">Daniel Daum</a>109 <nav aria-label="main navigation">110 <a href="/">home</a>111 <a href="/about/">about</a>112 <a href="/now/">now</a>113 <a href="/blog/">blog</a>114 <a href="/projects/">projects</a>115 <a href="/garden/">garden</a>116 </nav>117 </header>118119 <!-- ===== MAIN ===== -->120 <main id="main">121 <nav class="breadcrumb" aria-label="breadcrumb">122 <a href="/projects/">projects</a>123 <span aria-hidden="true">-></span>124 <a href="/projects/holonet/">Holonet</a>125 </nav>126 <section127 class="project-banner project-banner--log"128 aria-label="recent commits"129 >130 <div class="project-banner-background" aria-hidden="true">131 <svg132 width="100%"133 height="100%"134 preserveAspectRatio="xMinYMin"135 >136 <defs>137 <pattern138 id="grid"139 width="40"140 height="40"141 patternUnits="userSpaceOnUse"142 >143 <path144 d="M 40 0 L 0 0 0 40"145 fill="none"146 stroke="white"147 stroke-width="1"148 />149 </pattern>150 <pattern151 id="diagonals"152 width="80"153 height="80"154 patternUnits="userSpaceOnUse"155 >156 <line157 x1="0"158 y1="0"159 x2="80"160 y2="80"161 stroke="white"162 stroke-width="1.5"163 />164 <line165 x1="80"166 y1="0"167 x2="0"168 y2="80"169 stroke="white"170 stroke-width="1.5"171 />172 </pattern>173 <pattern174 id="dots"175 width="20"176 height="20"177 patternUnits="userSpaceOnUse"178 >179 <circle cx="10" cy="10" r="1.5" fill="white" />180 </pattern>181 </defs>182 <rect183 width="100%"184 height="100%"185 fill="url(#grid)"186 opacity="0.2"187 />188 <rect189 width="100%"190 height="100%"191 fill="url(#diagonals)"192 opacity="0.1"193 />194 <rect195 width="100%"196 height="100%"197 fill="url(#dots)"198 opacity="0.15"199 />200 </svg>201 </div>202 <!-- filled by scripts/sync-commits.mjs -->203 <div class="commit-log">204 <div class="commit-log-head">205 <span>recent commits</span>206 <a207 href="https://git.danieldaum.net/daniel-daum/holonet/commits/branch/main"208 >all commits →</a209 >210 </div>211 <!-- commits:holonet:6 -->212 <ol class="commit-log-list">213 <li class="commit-log-row">214 <span class="commit-log-hash">3b951c1</span>215 <span class="commit-log-msg">feat: add containerization</span>216 <time class="commit-log-date" datetime="2026-09-09T15:27:32-07:00">09 Sep 26</time>217 </li>218 <li class="commit-log-row">219 <span class="commit-log-hash">2604521</span>220 <span class="commit-log-msg">wip: continued development</span>221 <time class="commit-log-date" datetime="2026-09-09T15:27:16-07:00">09 Sep 26</time>222 </li>223 <li class="commit-log-row">224 <span class="commit-log-hash">4a962de</span>225 <span class="commit-log-msg">feat: add godot client</span>226 <time class="commit-log-date" datetime="2026-09-09T14:38:45-07:00">09 Sep 26</time>227 </li>228 <li class="commit-log-row">229 <span class="commit-log-hash">f7ada9f</span>230 <span class="commit-log-msg">fix: remove svg from lfs tracking</span>231 <time class="commit-log-date" datetime="2026-09-09T14:37:43-07:00">09 Sep 26</time>232 </li>233 <li class="commit-log-row">234 <span class="commit-log-hash">e7e073a</span>235 <span class="commit-log-msg">feat: track binary assets with lfs</span>236 <time class="commit-log-date" datetime="2026-09-09T14:27:21-07:00">09 Sep 26</time>237 </li>238 <li class="commit-log-row">239 <span class="commit-log-hash">ab80309</span>240 <span class="commit-log-msg">wip: capture env vars, init http server</span>241 <time class="commit-log-date" datetime="2026-09-08T20:44:09-07:00">08 Sep 26</time>242 </li>243 </ol>244 <!-- /commits:holonet:6 -->245 </div>246 </section>247248 <header class="project-header">249 <h1 class="project-header-title">Holonet</h1>250 <p class="project-header-desc">251 A multiplayer video game backend in Go252 </p>253 <div class="pills">254 <span class="pill">#new</span>255 <span class="pill pill--dev">#in-development</span>256 </div>257 </header>258259 <section aria-label="project metadata">260 <h2 class="section-label">metadata</h2>261 <div class="project-stats">262 <div>263 <p class="project-stat-label">role</p>264 <p class="project-stat-value">developer</p>265 </div>266 <div>267 <p class="project-stat-label">timeline</p>268 <p class="project-stat-value">269 September 2026 – ongoing270 </p>271 </div>272 <div>273 <p class="project-stat-label">stack</p>274 <p class="project-stat-value">275 Go, WebSockets, Godot, Docker276 </p>277 </div>278 <div>279 <p class="project-stat-label">context</p>280 <p class="project-stat-value">personal project</p>281 </div>282 <div>283 <p class="project-stat-label">source</p>284 <p class="project-stat-value">285 <a286 href="https://git.danieldaum.net/daniel-daum/holonet"287 aria-label="link to holonet's source code, opens in new tab"288 target="_blank"289 rel="noopener noreferrer"290 >git.danieldaum.net/daniel-daum/holonet</a291 >292 </p>293 </div>294 </div>295 </section>296297 <section aria-label="about this project">298 <h2 class="section-label">about | how its made</h2>299300 <p>301 Holonet is an open-source backend for multiplayer games,302 written in Go. It comes in two halves. The control plane is303 a plain HTTP API for things like registering and logging304 in. The data plane is where the game actually runs:305 server-authoritative world servers that talk to players306 over WebSockets.307 </p>308309 <p>310 The first milestone is v0.1.0, a world that ticks with a311 Godot client connected to it. Before that I need config,312 logging, the login endpoints, the WebSocket server and the313 tick loop itself, then a Godot addon to hook up a small314 Zelda clone. I'm aiming for the end of October.315 </p>316317 <blockquote>318 It's very early days. The commits up top are the best way319 to see where it's at.320 </blockquote>321 </section>322 </main>323324 <!-- ===== FOOTER ===== -->325 <footer>326 <nav aria-label="site links">327 <p aria-hidden="true">//</p>328 <a href="mailto:daniel@danieldaum.net"> email </a>329 <a330 href="https://git.danieldaum.net/"331 aria-label="git (opens in new tab)"332 target="_blank"333 rel="noopener noreferrer"334 >git335 </a>336 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)"337 >PGP</a338 >339 <a href="/changelog/">changelog</a>340 <a href="/privacy/">privacy</a>341 <a href="/feed.xml">feed</a>342 </nav>343 </footer>344 </body>345</html>
projects/index.html
+69 −0
@@ -121,6 +121,75 @@121121 </header>122122123123 <section>124 <a class="project-card" href="/projects/holonet/">125 <div class="project-card-left">126 <p class="card-type">Sep '26 · game backend</p>127 <div>128 <h2>Holonet</h2>129 <p class="meta">130 A multiplayer video game backend in Go131 </p>132 <div class="pills">133 <span class="pill">#new</span>134 <span class="pill pill--dev"135 >#in-development</span136 >137 </div>138 </div>139 </div>140 <div class="project-card-right">141 <!-- filled by scripts/sync-commits.mjs -->142 <div class="commit-log" aria-hidden="true">143 <div class="commit-log-head">recent commits</div>144 <!-- commits:holonet:4 -->145 <ol class="commit-log-list">146 <li class="commit-log-row">147 <span class="commit-log-hash">3b951c1</span>148 <span class="commit-log-msg">feat: add containerization</span>149 <time class="commit-log-date" datetime="2026-09-09T15:27:32-07:00">09 Sep 26</time>150 </li>151 <li class="commit-log-row">152 <span class="commit-log-hash">2604521</span>153 <span class="commit-log-msg">wip: continued development</span>154 <time class="commit-log-date" datetime="2026-09-09T15:27:16-07:00">09 Sep 26</time>155 </li>156 <li class="commit-log-row">157 <span class="commit-log-hash">4a962de</span>158 <span class="commit-log-msg">feat: add godot client</span>159 <time class="commit-log-date" datetime="2026-09-09T14:38:45-07:00">09 Sep 26</time>160 </li>161 <li class="commit-log-row">162 <span class="commit-log-hash">f7ada9f</span>163 <span class="commit-log-msg">fix: remove svg from lfs tracking</span>164 <time class="commit-log-date" datetime="2026-09-09T14:37:43-07:00">09 Sep 26</time>165 </li>166 </ol>167 <!-- /commits:holonet:4 -->168 </div>169 </div>170 </a>171 <a class="project-card" href="/projects/rhea/">172 <div class="project-card-left">173 <p class="card-type">Jul '26 · macos app</p>174 <div>175 <h2>Rhea</h2>176 <p class="meta">177 Grocery receipt text extraction for macOS178 </p>179 <div class="pills">180 <span class="pill">#archived</span>181 <span class="pill">#ai-assisted</span>182 </div>183 </div>184 </div>185 <div class="project-card-right">186 <img187 class="project-card-img"188 src="https://assets.danieldaum.net/img/photos/rhea-hero.webp"189 alt="screenshot of rhea, a receipt scanning app"190 />191 </div>192 </a>124193 <a class="project-card" href="/projects/saturn/">125194 <div class="project-card-left">126195 <p class="card-type">Jan '26 · re-design</p>
projects/rhea/index.htmladded
+310 −0
@@ -0,0 +1,310 @@1<!doctype html>2<html lang="en">3 <head>4 <meta charset="UTF-8" />5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />6 <meta7 name="description"8 content="rhea - an archived macos app for pulling text out of grocery receipts, built by daniel daum"9 />10 <meta11 http-equiv="Content-Security-Policy"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;"13 />14 <meta name="referrer" content="strict-origin-when-cross-origin" />15 <link16 rel="preload"17 href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2"18 as="font"19 type="font/woff2"20 crossorigin21 />22 <link23 rel="preload"24 href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2"25 as="font"26 type="font/woff2"27 crossorigin28 />29 <link30 rel="preload"31 href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2"32 as="font"33 type="font/woff2"34 crossorigin35 />36 <link rel="preconnect" href="https://assets.danieldaum.net" />37 <link rel="stylesheet" href="/global.css" />38 <link39 rel="icon"40 type="image/png"41 sizes="32x32"42 href="/assets/favicon/favicon-32x32.png"43 />44 <link45 rel="icon"46 type="image/png"47 sizes="16x16"48 href="/assets/favicon/favicon-16x16.png"49 />50 <link51 rel="apple-touch-icon"52 sizes="180x180"53 href="/assets/favicon/apple-touch-icon.png"54 />55 <link rel="manifest" href="/assets/favicon/site.webmanifest" />56 <link57 rel="alternate"58 type="application/atom+xml"59 title="daniel daum"60 href="https://danieldaum.net/feed.xml"61 />62 <title>daniel daum - rhea</title>6364 <meta property="og:type" content="website" />65 <meta property="og:site_name" content="daniel daum" />66 <meta property="og:title" content="daniel daum - rhea" />67 <meta68 property="og:description"69 content="rhea - an archived macos app for pulling text out of grocery receipts, built by daniel daum"70 />71 <meta72 property="og:url"73 content="https://danieldaum.net/projects/rhea/"74 />75 <meta76 property="og:image"77 content="https://assets.danieldaum.net/img/misc/og.jpg"78 />79 <meta property="og:image:type" content="image/jpeg" />80 <meta property="og:image:width" content="1200" />81 <meta property="og:image:height" content="630" />82 <meta83 property="og:image:alt"84 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"85 />8687 <meta name="twitter:card" content="summary_large_image" />88 <meta name="twitter:title" content="daniel daum - rhea" />89 <meta90 name="twitter:description"91 content="rhea - an archived macos app for pulling text out of grocery receipts, built by daniel daum"92 />93 <meta94 name="twitter:image"95 content="https://assets.danieldaum.net/img/misc/og.jpg"96 />97 <meta98 name="twitter:image:alt"99 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"100 />101 </head>102103 <body>104 <a class="skip-link" href="#main">skip to content</a>105106 <!-- ===== HEADER ===== -->107 <header class="site-header">108 <a class="site-name" href="/">Daniel Daum</a>109 <nav aria-label="main navigation">110 <a href="/">home</a>111 <a href="/about/">about</a>112 <a href="/now/">now</a>113 <a href="/blog/">blog</a>114 <a href="/projects/">projects</a>115 <a href="/garden/">garden</a>116 </nav>117 </header>118119 <!-- ===== MAIN ===== -->120 <main id="main">121 <nav class="breadcrumb" aria-label="breadcrumb">122 <a href="/projects/">projects</a>123 <span aria-hidden="true">-></span>124 <a href="/projects/rhea/">Rhea</a>125 </nav>126 <section class="project-banner">127 <div class="project-banner-background" aria-hidden="true">128 <svg129 width="100%"130 height="100%"131 preserveAspectRatio="xMinYMin"132 >133 <defs>134 <pattern135 id="grid"136 width="40"137 height="40"138 patternUnits="userSpaceOnUse"139 >140 <path141 d="M 40 0 L 0 0 0 40"142 fill="none"143 stroke="white"144 stroke-width="1"145 />146 </pattern>147 <pattern148 id="diagonals"149 width="80"150 height="80"151 patternUnits="userSpaceOnUse"152 >153 <line154 x1="0"155 y1="0"156 x2="80"157 y2="80"158 stroke="white"159 stroke-width="1.5"160 />161 <line162 x1="80"163 y1="0"164 x2="0"165 y2="80"166 stroke="white"167 stroke-width="1.5"168 />169 </pattern>170 <pattern171 id="dots"172 width="20"173 height="20"174 patternUnits="userSpaceOnUse"175 >176 <circle cx="10" cy="10" r="1.5" fill="white" />177 </pattern>178 </defs>179 <rect180 width="100%"181 height="100%"182 fill="url(#grid)"183 opacity="0.2"184 />185 <rect186 width="100%"187 height="100%"188 fill="url(#diagonals)"189 opacity="0.1"190 />191 <rect192 width="100%"193 height="100%"194 fill="url(#dots)"195 opacity="0.15"196 />197 </svg>198 </div>199 <img200 class="project-banner-img"201 src="https://assets.danieldaum.net/img/photos/rhea-hero.webp"202 alt="screenshot of rhea: a list of receipts, a scanned trader joe's receipt, and the line items pulled out of it"203 />204 </section>205206 <header class="project-header">207 <h1 class="project-header-title">Rhea</h1>208 <p class="project-header-desc">209 Grocery receipt text extraction for macOS210 </p>211 <div class="pills">212 <span class="pill">#archived</span>213 <span class="pill">#ai-assisted</span>214 </div>215 </header>216217 <section aria-label="project metadata">218 <h2 class="section-label">metadata</h2>219 <div class="project-stats">220 <div>221 <p class="project-stat-label">role</p>222 <p class="project-stat-value">developer</p>223 </div>224 <div>225 <p class="project-stat-label">timeline</p>226 <p class="project-stat-value">227 July – September 2026228 </p>229 </div>230 <div>231 <p class="project-stat-label">stack</p>232 <p class="project-stat-value">233 Swift, SwiftUI, local LLMs, Postgres234 </p>235 </div>236 <div>237 <p class="project-stat-label">context</p>238 <p class="project-stat-value">AI-assisted experiment</p>239 </div>240 <div>241 <p class="project-stat-label">source</p>242 <p class="project-stat-value">243 <a244 href="https://github.com/daniel-daum/Rhea"245 aria-label="link to rhea's source code, opens in new tab"246 target="_blank"247 rel="noopener noreferrer"248 >github.com/daniel-daum/Rhea</a249 >250 </p>251 </div>252 </div>253 </section>254255 <section aria-label="about this project">256 <h2 class="section-label">about | how its made</h2>257258 <p>259 Rhea is a Mac app that turns grocery receipts into data. You260 drop in a stack of receipt PDFs, and a vision model pulls261 out the store, the total and every line item. Then you check262 each one next to the original scan, confirm it, and export263 the lot to CSV or Postgres. The idea was to track what264 groceries cost across stores over time.265 </p>266267 <p>268 Everything runs locally. The extraction goes to whatever269 model you point it at (LM Studio, oMLX, anything that speaks270 the OpenAI chat API), so no receipt ever leaves your271 machine. It's plain SwiftUI with no third-party272 dependencies.273 </p>274275 <p>276 It was also an experiment. I designed and wrote it almost277 entirely through conversation with Claude, from the278 architecture down to the bug fixes, to see how far that279 could go on a real project.280 </p>281282 <blockquote>283 Rhea is archived. The code works, but it's rough. It's a284 case study, not a product.285 </blockquote>286 </section>287 </main>288289 <!-- ===== FOOTER ===== -->290 <footer>291 <nav aria-label="site links">292 <p aria-hidden="true">//</p>293 <a href="mailto:daniel@danieldaum.net"> email </a>294 <a295 href="https://git.danieldaum.net/"296 aria-label="git (opens in new tab)"297 target="_blank"298 rel="noopener noreferrer"299 >git300 </a>301 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)"302 >PGP</a303 >304 <a href="/changelog/">changelog</a>305 <a href="/privacy/">privacy</a>306 <a href="/feed.xml">feed</a>307 </nav>308 </footer>309 </body>310</html>
scripts/sync-commits.mjsadded
+91 −0
@@ -0,0 +1,91 @@1// pulls recent commits from my gitea and writes them into the static html.2// run with `mise run sync-commits`. no dependencies, node 18+.3//4// a page opts in with a pair of marker comments naming the repo and how many5// commits to show; everything between them is replaced on every run:6//7// <!-- commits:holonet:6 -->...<!-- /commits:holonet:6 -->8//9// commits come from the repo's default branch, newest first. if gitea can't10// be reached, the script exits non-zero and touches nothing.1112import { readFile, writeFile } from "node:fs/promises";1314const GITEA = "https://git.danieldaum.net";15const OWNER = "daniel-daum";16const TZ = "America/Los_Angeles";1718const PAGES = ["projects/index.html", "projects/holonet/index.html"];1920const MARKER = /^([ \t]*)<!-- commits:([\w.-]+):(\d+) -->[\s\S]*?<!-- \/commits:\2:\3 -->/gm;2122// ---------------------------------------------------------------------------23// data2425async function fetchCommits(repo, limit) {26 const url = new URL(`/api/v1/repos/${OWNER}/${repo}/commits`, GITEA);27 url.searchParams.set("limit", String(limit));28 // skip diff stats, signature checks and file lists, none of it is shown29 url.searchParams.set("stat", "false");30 url.searchParams.set("verification", "false");31 url.searchParams.set("files", "false");32 const res = await fetch(url);33 if (!res.ok) throw new Error(`${repo} commits: ${res.status} ${res.statusText}`);34 return res.json();35}3637// ---------------------------------------------------------------------------38// html3940function render(commits) {41 if (commits.length === 0) return `<p class="commit-log-row">no commits yet</p>`;42 const rows = commits.map((c) =>43 [44 ` <li class="commit-log-row">`,45 ` <span class="commit-log-hash">${c.sha.slice(0, 7)}</span>`,46 ` <span class="commit-log-msg">${esc(c.commit.message.split("\n")[0])}</span>`,47 ` <time class="commit-log-date" datetime="${esc(c.commit.author.date)}">${formatDate(c.commit.author.date)}</time>`,48 ` </li>`,49 ].join("\n"),50 );51 return [`<ol class="commit-log-list">`, ...rows, `</ol>`].join("\n");52}5354// 09 Sep 26, like the writing list. en-US, because en-GB says "Sept"55function formatDate(iso) {56 const parts = new Intl.DateTimeFormat("en-US", { timeZone: TZ, day: "2-digit", month: "short", year: "2-digit" }).formatToParts(new Date(iso));57 const get = (type) => parts.find((p) => p.type === type).value;58 return `${get("day")} ${get("month")} ${get("year")}`;59}6061function esc(s) {62 return String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);63}6465// ---------------------------------------------------------------------------66// writing6768const pages = await Promise.all(PAGES.map((page) => readFile(page, "utf8")));6970// one request per repo, for the most commits any marker asks for71const wanted = new Map();72for (const html of pages) {73 for (const [, , repo, n] of html.matchAll(MARKER)) {74 wanted.set(repo, Math.max(wanted.get(repo) ?? 0, Number(n)));75 }76}77const commits = new Map();78for (const [repo, n] of wanted) commits.set(repo, await fetchCommits(repo, n));7980for (const [i, page] of PAGES.entries()) {81 const before = pages[i];82 const after = before.replace(MARKER, (_, indent, repo, n) => {83 const body = render(commits.get(repo).slice(0, Number(n))).replace(/^(?=.)/gm, indent);84 return `${indent}<!-- commits:${repo}:${n} -->\n${body}\n${indent}<!-- /commits:${repo}:${n} -->`;85 });86 if (after !== before) {87 await writeFile(page, after);88 console.log(`updated ${page}`);89 }90}91for (const [repo, list] of commits) console.log(`${repo}: ${list.length} commit${list.length === 1 ? "" : "s"}`);
scripts/word-count.pyadded
+10 −0
@@ -0,0 +1,10 @@1# word count for the home page's recent writing list. counts words with a2# letter or number in them, from the post body (intro note included) up to the3# likes and comments. usage: python3 scripts/word-count.py now/sep-2026/index.html4import re, sys, html5h = open(sys.argv[1]).read()6body = h.split("page-header--post", 1)[1].split("</header>", 1)[1]7body = re.split(r'<section\s+class="post-social"', body, 1)[0]8body = re.sub(r"<!--.*?-->", " ", body, flags=re.S)9text = html.unescape(re.sub(r"<[^>]+>", " ", body))10print(len([w for w in text.split() if re.search(r"[A-Za-z0-9]", w)]))