A Guide to Implementing ActivityPub in a Static Site (or Any Website) - Part 8 is out!
Follow the site here @blog or check the article here: https://maho.dev/2025/01/a-guide-to-implementing-activitypub-in-a-static-site-or-any-website-part-8/
#fediverse #activitypub #static-sites #hugo #azure #mastodon #web-development #social-web #webfinger #http #azure #azurefunctions
.... awe boo. You had me excited when you posted "in a static website", but then I got disappointed when you talked about C# code and a mention of "almost static" in the actual article.
I'm still on the hunt for a pure static solution, (or rather a pure client-sided / JS solution).
(Though I guess even mine is an "almost static site" too as there's a small Python helper on the server for bot/crawler access.)
@cdp1337 @blog I would love to see https://github.com/mahomedalid/almost-static-activitypub implemented in #python
On purpose I did not name the project almost-static-activitypub-dotnet, because I really want to have different implementations there.
So, if you are up to the task, I would gladly help.
@cdp1337 @blog but yes, I don't think a pure-client-sided solution would work.
In the moment someone follows your site, a POST request will be made from an instance in the background to your inbox, so you need to have a "dynamic" endpoint for that.
I guess you could create a purely-static activitypub notes, but the broadcasting won't work until the follow handshake completes.
Hmmm, I wouldn't be entirely opposed, though my C#-fu is pretty rusty and your code doesn't have very many inline comments talking about what the various bits do, (albeit it does appear rather straight forward).
For example, you reference TableStorage, but I'm not familiar with that library; where is the database file which stores replies?
@mapache @blog @AnthonyBaker Thank you, I needed this!