Replies: 2 comments 2 replies
-
|
(Forgive me, as I'm brand new to all of this and haven't read the specs) What I am hoping to accomplish with ActivityPub and my static sites is the ability for users of federated social networks (like Mastodon) to subscribe to a blog and receive notifications in their inbox of new and updated posts. I'm imagining it'll look something like an outbox of static messages, internal files representing followers committed to the repo (for lack of another data store), a job that can be run post-deploy to notify followers, and a severless function to allow for follow/unfollow requests: Blog publishes a post
Follower subscribes/unsubscribes to the blog
Is this feasible? If so, is this the right project to accomplish some or all of this? |
Beta Was this translation helpful? Give feedback.
-
I use Netlify CMS for my blog justin.searls.co and talked about my current setup in this video. I can't speak for everything it does, and agree that your approach sounds right for publishing.
Yeah, that makes sense. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
this will be the central repo for discussions related to both
@musakui/fediand kotori implementations e.g.kotori-netlifyActivityPub
ActivityPub is the spec that (attempts to) standardize how federated social media should work. There are a few major implementers (Mastodon, Misskey, PeerTube) and forks that try to talk to each other.
For a quick rundown, I reccomend reading this guide on how to read the ActivityPub specs.
For me, the key takeaway is that there are 2 sets of things happening
when you post:
inboxendpoint)when others post:
inboxthe thing (equivalent to step 3 above but from the other viewpoint)All those steps do not actually require a server running full time, especially if you are the only one. There are implementations that are suited for single person instances (e.g. Pleroma), but they still retain the concept of a server, which costs money
The outbox can just be a collection of statically served files. Since the outbox is only ever updated when you post, it can just be rebuilt together with your action of posting.
The only part that actually requires a server is the
inboxendpoint. But all it does is validating the request and perform state changes on some database. This is very well suited for serverless hosting.Hence the whole idea for
kotoriis to rethink how to run ActivityPub instances on serverless (and not pay server fees. lol)fedithe main aim of
fediis to provide low-level helpers that should be as platform-agnostic as possible.an example would be the HTTP Signatures library, which has both a node implementation and a browser implementation (albeit slightly lacking).
It will mostly be simple constants, TypeScript types (mainly through jsdoc comments) and
defineFunctions(similar to howdefineConfigworks invite)kotori(this repo)the main aim of
kotoriis to be a low-config rollup/vite plugin (potentially unplugin) that generates ActivityPub compliant static files that would be served up in a server-based setting.Also, provide some generic handler interface for the serverless function inbox.
I'm still working on the appropriate level of abstraction, since different hosting providers will need different configurations.
Beta Was this translation helpful? Give feedback.
All reactions