#crystallang 107 hashtags

Todd Sundsted
Release v3.16.0 of Ktistec

The latest release ("walk the walk") of Ktistec completes the RFC 9421 work—the server now retries an outbound request with an RFC 9421 signature when its draft-cavage signature is rejected—and adds support for using private labels as feed criteria and replacing the default timeline with any published algorithmic feed.

I annotate posts with private labels to mark content I want to see (or don't want to see) and—now that I can use them as custom feed criteria—to group posts into topical reading lists, presented as feeds.

Being able to replace the default timeline with a custom feed is the closing chapter of a long-running desire of mine to separate the kind of posts I want to read (what people do) from the "hot takes" (what people say) that are part and parcel of social media 😀.

Here's the full changelog:

Added

  • Let a user choose a published feed as its timeline feed.
  • Retry rejected outbound requests with an RFC 9421 signature.
  • Add a link to Feeds in the top nav when on the deck.
  • Accept private labels as feed criteria.

Fixed

  • Restore the deck's scroll positions.
  • Map public keys from actor documents that omit the security context.
  • Decrement cached tag counts when a tag is destroyed.
  • Prefer alt text over figcaption in the image viewer's caption.

Changed

  • Put new feeds at the front of the deck.

I've shipped a lot of new features lately. The next few releases will focus on polishing them.

#ktistec #crystallang #activitypub #fediverse

Todd Sundsted

crystal language version 1.22.3 has been released. it looks like there are a decent number of security-related fixes. great work getting those fixed and this released!

#crystallang

Todd Sundsted
Release v3.15.0 of Ktistec

This release ("savor the moments when goodness prevails") of Ktistec lands two big new features: RFC 9421 HTTP Message Signatures and private labels.

RFC 9421 support is inbound only, for the moment. The code for signing activities is written, but I want to test parsing and verification in the real world first. Signing will ship in the next release.

Private labels allow you to annotate posts with your own hashtag-like labels. Once posts are labeled, you can view them together on an index page, just like hashtags. You can use them in custom themes, and in the next release, you will be able to include them as criteria in custom feeds. Because they are private, they are not federated.

Here's the full changelog:

Added

  • Verify inbound RFC 9421 HTTP Message Signatures (rsa-v1_5-sha256).
  • Private labels, visible only to you, for organizing and finding posts.
  • Cache the posts on inbound post quotes or replies.
  • Include totalItems in label, hashtag, and mention collections.

Fixed

  • Ignore inbound activities whose identifier is local.
  • Mark an actor up only when its origin took part in the request.
  • Store a community-relayed Delete only when its origin serves it.
  • Don't accept a community's signature as verification of a relayed vote by an actor on another origin.
  • Ignore federated hashtags, mentions, and emoji whose name is only their sigil.
  • Hide inline quote links and dim deleted or blocked posts on unthemed pages.
  • Fix action button spacing on mobile.

Changed

  • Move the timeline's share and reply filters into a control bar.
  • Hyphenate multi-word names in the theme data attributes.
  • Record how an inbound activity was verified.

I'll be publishing a series of posts on writing custom algorithmic feeds. Stay tuned!

#ktistec #crystallang #activitypub #fediverse

Todd Sundsted
Release v3.14.0 of Ktistec

v3.14.0 ("question authority") is the end of a long road.

The goal was pluggable, algorithmic feeds. "Pluggable" because I want to drop a script into a directory to add a new algorithm—not recompile the server. "Algorithmic" because I want predictable, fine-grained control over what I see and how it's organized.

I've been working on this feature, across releases, for almost four months. A recent thread gave me the motivation to just get it done!

The discussion in that thread also shaped the result: algorithmic feeds ships with four example algorithms (called "judges") that demonstrate what's possible:

  • quiet_posters shows posts from the people you follow whose posting frequency is in the bottom 25%
  • long_reads groups posts over 500 characters
  • community groups posts from threadiverse servers (Lemmy, PieFed, etc.)
  • polls puts all polls in one feed

One interesting implementation decision: the exchange format between server and judge is an SQLite database holding the batch of posts to be judged. Rather than rolling a custom data exchange format, you get a well-tested file format that brings schema support, serialization/deserialization, and a query language nearly for free.

Here is the full set of changes in this release:

Added

  • Algorithmic feeds, judged by executables in etc/judges.
  • Accept community-relayed votes authorized by the object's audience.
  • Include the linked SQLite3 version and its features in NodeInfo.

Fixed

  • Pick up a remote actor's rotated public key.
  • Don't save actors embedded in community-relayed activities.
  • Ignore community-relayed and directly delivered activities attributed to a local actor.
  • Reload an actor's page only when that actor's Refresh button is pressed.
  • Hide the Refresh button on a local actor's panel.
  • Fall back to the default avatar when a refreshed icon fails to load.
  • Enable icon repair on actor panels and actor cards.
  • Keep the no-replies timeline queries on the timeline index.

Changed

  • Judge feed posts in the background instead of in the request.
  • Reconcile each key once when an actor is blocked or unblocked.

#ktistec #crystallang #activitypub #fediverse

Todd SundstedWill Richardson

Running Code in the Crystal Type System

Type resolution in #crystallang is just running your program at compile time.

willhbr.net/2026/09/25/crystal

Todd SundstedCrystalLanguage

A new patch release is out: Crystal 1.21.1 brings important security patches, and a regression fix for macOS 26.7+

crystal-lang.org/2026/09/26/1.

#CrystalLang

Todd Sundsted
Release v3.13.0 of Ktistec

Release v3.13.0 of Ktistec ("love who you choose to love") links the feed deck into the navigation. Feeds are now fully supported.

Feeds are custom collections of posts selected by hashtag, mention, and keyword, each grouped as terms you want any of, all of, or none of, so a feed can be as broad or as narrow as you like. The feed deck is my primary reading interface now.

The rest of the changes mostly address a variety of small federation issues:

Added

  • Link the feed deck from the secondary nav bar.
  • Offer a retry and a link when a quoted post can't be loaded.

Fixed

  • Keep the verify button when a quote authorization can't be fetched.
  • Verify HTTP signatures over the full set of headers the headers signature parameter names.
  • Sign an inbox delivery's fetches with the implicated account.
  • Render directly published media objects as attachments.
  • Handle more attachment media types when rendering.

Changed

  • Finish the feeds API.
  • Widen the metrics charts display.

With feeds shipped, I'm turning my attention back to federation. There are still a ton of small issues (e.g. Likes relayed through Groups are always rejected, RFC 9421 support, blurhash support) that I'd like to squash.

#ktistec #crystallang #activitypub #fediverse

Todd Sundsted
Release v3.12.1 of Ktistec

Release v3.12.1 patches a bug that's been present for about two years and fixes issue #163 in the process. Looking at FediDB, it appears most servers on v3.X.X made it through the upgrade to v3.5.0, which is where the bug would have bitten, but the consequences of the bug are annoying enough that a patch is warranted.

Changed

  • Gather query planner statistics on startup and before reconciling materialized views.

Up-to-date query statistics ensure that the expensive migration in v3.5.0 completes in seconds or minutes, instead of hours!

#ktistec #crystallang #activitypub #fediverse

Todd Sundsted
Release v3.12.0 of Ktistec

This release encompasses two broad sets of changes: widening the pool of candidates for feeds and more carefully checking the origin of inbound activities (broadly FEP-fe34, Origin-based security model).

Candidates for feeds were originally limited to posts in the actor's mailboxes. This decision made authorization easy but omitted clearly acceptable posts (for example, posts addressed to the public collection) that arrived via other means (for example, filling in a thread).

Prior to this release, inbox processing did not consistently define an object's origin nor did it apply consistent rules to what it admitted based on the origin.

FEP-fe34 is still not fully enforced, and truth be told, I'm still reviewing some of its mandates, so I'm not yet listing it in Ktistec's federation documentation.

Here's the full list of changes:

Added

  • Notify a deck pane when it has new posts.

Fixed

  • Retry an unresolved quote authorization.
  • Label a draft with the status of its quote request.
  • Compare origins when deciding whether to trust an IRI, key document, or owner.
  • Ignore a trailing slash when matching a dereferenced document's IRI.
  • Allow only Create and Update to update objects.
  • Ignore an inbound vote that fails the FEP-9967 checks.
  • Expand commonly omitted ActivityStreams context terms.
  • Break a long link rather than let it overflow.

Changed

  • Widen the feed scan to every object the server holds.
  • Address a published feed by slug rather than by id.

Removed

  • The proxyUrl property from the actor document.

I am still working hard on the feed deck. Both notifications and feed ordering now work. It's now my preferred reading interface, and should be ready by the next release!

#ktistec #crystallang #activitypub #fediverse

Todd SundstedWill Richardson

Type-Checking SQL Queries With Crystal Macros

My #crystallang macro powers are unmatched.

willhbr.net/2026/08/15/crystal