May 16, 2022 by Drew DeVault

What's cooking on SourceHut? May 2022

Hello everyone! We’re back at it for another month of news in the SourceHut sphere. Of our now 29,036 users, 630 are new this month: please offer them a warm welcome, and your patience, as they learn about the new platform.

todo.sr.ht

Comprehensive GraphQL-native webhooks shipped for todo.sr.ht this month.

Here’s the latest GraphQL support break-down:

meta.sr.ht
read write webhooks
git.sr.ht
read write webhooks
hg.sr.ht
read write webhooks
todo.sr.ht
read write webhooks
builds.sr.ht
read write webhooks
lists.sr.ht
read write webhooks
hub.sr.ht
read write webhooks
paste.sr.ht
read write webhooks
pages.sr.ht
read write webhooks

We’re getting there! The remaining webhooks should be fairly straightforward — lists will be the most complex of these — and updating hub.sr.ht will be the last major project before we complete the initial GraphQL implementation. Following this we will be experimenting with GraphQL federation as well, and once we have an answer regarding federation, the GraphQL milestone will be complete, and we’ll have taken the largest step towards the beta.

Coming improvements to hut

The hut command-line tool provides programmatic access to the SourceHut GraphQL APIs. I have been working on support for a comprehensive data export via this tool recently, which will be followed by an equivalent data import tool. This will allow you to take your account data from sr.ht to another instance, or to an instance with compatible software — most of the exported data is in standard formats like bare git repos and mbox archives. This is also another step towards the data ownership goal of the beta, and will be followed soon by self-service account deletion and renaming — which also require the completion of the GraphQL APIs that are progressing apace.

lists.sr.ht

The new go-emailthreads library was integrated into lists.sr.ht’s GraphQL API, which is the next step for improving the heuristics used on the code review screen.

meta.sr.ht

Work is underway, some of which landed this month, to improve PGP support on SourceHut, expanding the suite of supported ciphers and making it more reliable. Additional changes are expected in the foreseeable future to handle PGP key expiration, notifying users when their key needs to be cycled.

builds.sr.ht

Image updates:

pages.sr.ht

Users may now configure custom Cache-Control headers to tune their site performance.