Enigmatick ActivityPub C2S
-
From its conception, #Enigmatick has leaned heavily on the
/inboxand/outboxendpoints for client operations. There are some/apiendpoints, but I avoid that were I can shoehorn operations into the #ActivityPub specification and #ActivityStreams vocabulary.While typical operational activities are fairly well accounted for, administration is a weak point. For example: I haven't identified a clear way to use the currently described mechanisms for an administrative user to pull up and manage instances or actors on a server.
I've relied on CLI tools (e.g.,
./enigmatick --help) to manage some of that. And in some cases, I know how to manipulate data in my database, so I haven't worried too much about building tooling. But I'd like to ship something that other folks can use to share in my efforts, so I've been thinking about how to model those activities in an ActivityPub-esque way to use in the Svelte UI.ActivityPub Messages
To that end, I'm now using
BlockandDeleteactivities sent from the client to the serveroutboxto manage the blocking of instances and purging of data.{ "@context": [ "https://www.w3.org/ns/activitystreams", { "ek": "https://enigmatick.social/ns#", "Instance": "ek:Instance" } ], "id": "https://enigmatick.social/activities/550e8400-e29b-41d4-a716-446655440000", "type": "Block", "actor": "https://enigmatick.social/user/system", "object": { "type": "Instance", "id": "https://spammy-instance.example" } }In practice, my client does not generate the
id, but that attribute is generated by the server and theActivityis stored alongside other typically federated activities. These localBlockactivities are not federated out to other servers; they are intended solely for local server management.The
Blockactivity is sent as a message signed at the client by a user with administrative privileges on the server. Enigmatick's user authentication is unique (i.e., I use a separate set of encryption keys for client-signing executed by awasmmodule in the browser). That can be a topic for a future article.That the
actoras the systemApplicationuser is important. That is used by the server to establish the scope of this action as system-wide, not just for a single user. The system actor is discoverable in thenodeinfometadata.I'm using a typed object rather than just an
idreference. This is so that I can use this same flow for blocking and purgingActorobjects (i.e., thetypewould bePerson,Service, orApplication).The purge action is similar, using the
Deleteactivity.{ "@context": [ "https://www.w3.org/ns/activitystreams", { "ek": "https://enigmatick.social/ns#", "Instance": "ek:Instance" } ], "id": "https://enigmatick.social/activities/550e8400-e29b-41d4-a716-446655440000", "type": "Delete", "actor": "https://enigmatick.social/user/system", "object": { "type": "Instance", "id": "https://spammy-instance.example" } }The term, "delete" is a bit of a misnomer in this case as it applies to the instance specifically. The instance will remain, but the
objects,activities, andactorsassociated with that instance will be fully deleted (i.e., not set toTombstone).Collection Endpoints
To facilitate the UI operations, I've created two new collection endpoints on my server:
/instancesand/actors. These endpoints provide typical ActivityPubCollectionobjects.{ "@context": [ "https://www.w3.org/ns/activitystreams", { "Instance": "ek:Instance", "activitiesCount": "ek:activitiesCount", "actorsCount": "ek:actorsCount", "blocked": "ek:blocked", "ek": "https://enigmatick.social/ns#", "lastMessageAt": "ek:lastMessageAt", "objectsCount": "ek:objectsCount" } ], "type": "OrderedCollection", "id": "https://enigmatick.social/instances", "totalItems": 7702, "orderedItems": [ { "type": "Instance", "id": "https://example-instance.name", "blocked": false, "created": "2025-12-16T16:56:33Z", "lastMessageAt": "2025-12-16T16:56:33Z", "actorsCount": 0, "objectsCount": 1, "activitiesCount": 0 } ], "first": "https://enigmatick.social/instances?max=9223372036854775807", "last": "https://enigmatick.social/instances?min=0", "next": "https://enigmatick.social/instances?max=1765657395402834" }I've added some extensions in the
@contextto account for a few non-standard attributes.That collection is used by the UI.

Collection Discovery
nodeinfois a common protocol used for discovering information about ActivityPub-speaking servers. I've extended my use of that to facilitate client-discovery of these new endpoints using themetadataobject contained in thenodeinfoJSON."metadata": { "actor": "https://enigmatick.social/user/system", "adminActors": "https://enigmatick.social/actors", "adminInstances": "https://enigmatick.social/instances", "domain": "enigmatick.social", "url": "https://enigmatick.social" }Final Thoughts
As I'm reading through this, I see some opportunities for refinement. I should probably be using
OrderedCollectionPageinstead ofOrderedCollectionfor my collection endpoints. I'm sure there are other tweaks to be made.