Normally I just stick to my yearly “year in review” articles to report on my open source contributions, but the first three months of this year have been so productive that a Q1 update seems warranted.
The reason? Well, at the beginning of January my full-time client work came to an end, freeing up a lot of time for open source work. It also means that I am available for new projects. If you’d like to add this kind of productivity to your team, reach out to me.
Here’s what I shipped in three months.
Critical Notes
After neglecting it for too long, I returned to Critical Notes and implemented multiple improvements, two of them fairly significant:
- Better user subscriptions. Instead of limiting free users to a single campaign, everyone can now join unlimited campaigns. Free users have read-only access to all but their first campaign, which is still a substantial improvement. The most common complaint I received was that people felt “forced” to pay when their group wanted to start a second campaign. This update should solve that problem for most users.
- Data export. DMs can now export their campaign and receive a zip file containing Markdown files for all content, all uploaded images, and a JSON file with a complete raw data dump.
Saga
I spent most of this quarter working on Saga. In three months I published 35 releases, which is honestly too many. I have since gotten better at bundling changes together and doing fewer but larger releases, but early on I was shipping updates multiple times per week, sometimes even multiple times per day.
Here are ten of the biggest improvements:
- Much better build times using incremental builds, a read cache, and a persistent fetch catch.
- Full support for internationalization, including fully translatable URLs and locale-aware sitemaps.
- Add next/previous pagination to the item rendering context. This makes it much easier to create a link to the next article for example.
- Items can now be loaded programmatically using a new
register(metadata:fetch:writers:)pipeline step. Because sometimes your content doesn’t live on disk in Markdown files, but comes from an API, or from a database, or you just want to create your items programmatically. - Pages can now be created programmatically as well. It was kind of awkward to just render a HTML template to disk, without a Markdown file triggering this. Think of a 404 page, or a contact form. There’s no
contact.mdto render, it’s just purely a template. Now there’s thecreatePagepipeline step just for this. - A new
postProcessstep, for things like HTML minification. - A new
hashedfunction that automatically generates cache-busting hashed URLs for your static assets. - Full support for Swift 6. Until recently your Saga projects had to use the Swift 5 language mode, because otherwise your builds would crash. Now Saga is fully Swift 6 mode compatible, without causing new warnings or problems for existing users using the Swift 5 language mode. This took a lot of trial and error to get right, and a big chunk of the 35 releases were about Swift 6 support, improving it bit by bit. While the Swift 5 language mode is still fully supported, a Swift 6 compiler is required now.
- Updated documentation, with 10 detailed how-to guides for things like adding search to your site, Tailwind CSS, adding HTML minification, and more.
- And last but certainly not least: nested pipelines! When you have nested items, such as photos inside of albums, you can now naturally model this with Saga, and easily render an index of albums, a page for each album, and a page for each photo. Or think about Artists with Albums with Tracks. All of this is expressible by your Saga pipeline now, all with strongly typed metadata.
I also created a brand new Saga CLI with saga init, saga dev, and saga build commands, completely replacing the old swift run watch command.
Starting a new project is now much easier: saga init generates a fully scaffolded project, and the new development server is far more reliable. It detects file changes more consistently, no longer depends on an externally installed browser-sync, and works on Linux. The CLI can be installed via Homebrew or Mint.
GetSaga.dev
Saga has always had solid documentation, generated with Apple’s DocC compiler, and hosted on Github Pages. It works, but it has several drawbacks: the URLs are ugly, the site is not visually appealing, and it cannot serve as a proper landing page on its own domain.
So I built a new site: GetSaga.dev.
It uses the same DocC documentation files but renders them using Saga and Apple’s SymbolKit. In other words, Saga now builds and renders its own documentation, including the full API reference, which I think is pretty cool.
realworld-ssg
I also spent quite a bit of time building the same static site using Hugo, Publish, and Saga in order to compare how each generator handles real-world requirements.
The result is a repository with all the code along with a companion article.
New open source projects
This quarter also produced several new open source projects:
- Moon: a server-side syntax highlighter using Prism via JavaScriptCore, fully compatible with Linux.
- Sigil: SymbolKit to syntax-highlighted HTML, used by GetSaga.dev.
- Bonsai: HTML minification, a Swift port of html-minifier-next, with pretty good performance.
- SwiftTailwind: Tailwind CSS for Swift projects.
- SagaUtils: HTML transformations for Saga powered by SwiftSoup.
- saga-cli: the brand new Saga command line app, installable via Homebrew and Mint.
- SagaPathKit: a fork of PathKit, extended with new functionality and better tests. It’s used now in Saga itself.
I even designed logos for most of these projects using Affinity.
Updates to other open source projects
A couple of my existing projects also received updates:
- tag-changelog, my GitHub Action that generates changelogs when pushing a tag, received two releases. The most significant change was a migration to TypeScript.
- Parsley, my Markdown parser, switched to swiftlang/swift-cmark and got support for Markdown attributes.
Loopwerk.io
I improved the mobile navigation bar, added light mode support, and redesigned the homepage. I have also already published 21 articles in 2026.
By far the most popular one so far was my Tim Cook article, which received quite a lot of views.
Articles now use server-side syntax highlighting via Moon, removing the need for browsers to load Prism.js client-side. This noticeably improves performance on slower connections and significantly increased the PageSpeed score.
Moving from Plausible to Umami
I migrated all my sites from Plausible Analytics to a self-hosted Umami instance.
Almost immediately it became clear just how many bots are hammering my sites. I had to take action to prevent the analytics data from becoming completely useless.