Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Enigmatick ActivityPub C2S

General Discussion
3 2 0
  • From its conception, #Enigmatick has leaned heavily on the /inbox and /outbox endpoints for client operations. There are some /api endpoints, 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 Block and Delete activities sent from the client to the server outbox to 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 the Activity is stored alongside other typically federated activities. These local Block activities are not federated out to other servers; they are intended solely for local server management.

    The Block activity 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 a wasm module in the browser). That can be a topic for a future article.

    That the actor as the system Application user 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 the nodeinfo metadata.

    I'm using a typed object rather than just an id reference. This is so that I can use this same flow for blocking and purging Actor objects (i.e., the type would be Person, Service, or Application).

    The purge action is similar, using the Delete activity.

    {
      "@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, and actors associated with that instance will be fully deleted (i.e., not set to Tombstone).

    Collection Endpoints

    To facilitate the UI operations, I've created two new collection endpoints on my server: /instances and /actors. These endpoints provide typical ActivityPub Collection objects.

    {
      "@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 @context to account for a few non-standard attributes.

    That collection is used by the UI.

    The Enigmatick instances UI showing the most recently discovered instances from the enigmatick.social server

    Collection Discovery

    nodeinfo is 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 the metadata object contained in the nodeinfo JSON.

    "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 OrderedCollectionPage instead of OrderedCollection for my collection endpoints. I'm sure there are other tweaks to be made.

  • From its conception, #Enigmatick has leaned heavily on the /inbox and /outbox endpoints for client operations. There are some /api endpoints, 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 Block and Delete activities sent from the client to the server outbox to 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 the Activity is stored alongside other typically federated activities. These local Block activities are not federated out to other servers; they are intended solely for local server management.

    The Block activity 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 a wasm module in the browser). That can be a topic for a future article.

    That the actor as the system Application user 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 the nodeinfo metadata.

    I'm using a typed object rather than just an id reference. This is so that I can use this same flow for blocking and purging Actor objects (i.e., the type would be Person, Service, or Application).

    The purge action is similar, using the Delete activity.

    {
      "@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, and actors associated with that instance will be fully deleted (i.e., not set to Tombstone).

    Collection Endpoints

    To facilitate the UI operations, I've created two new collection endpoints on my server: /instances and /actors. These endpoints provide typical ActivityPub Collection objects.

    {
      "@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 @context to account for a few non-standard attributes.

    That collection is used by the UI.

    The Enigmatick instances UI showing the most recently discovered instances from the enigmatick.social server

    Collection Discovery

    nodeinfo is 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 the metadata object contained in the nodeinfo JSON.

    "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 OrderedCollectionPage instead of OrderedCollection for my collection endpoints. I'm sure there are other tweaks to be made.

    @jdt

    >nodeinfo is a common protocol used for discovering information about ActivityPub-speaking servers

    NodeInfo is used primarily by sites like https://fediverse.observer, it is not intended to be used by clients. There is a similar entity in ActivityPub: server actor (instance actor). In your case it seems to be located at https://enigmatick.social/user/system ?

    I prefer Webfinger discovery method, as described in this FEP: https://codeberg.org/fediverse/fep/src/branch/main/fep/d556/fep-d556.md.

  • @jdt

    >nodeinfo is a common protocol used for discovering information about ActivityPub-speaking servers

    NodeInfo is used primarily by sites like https://fediverse.observer, it is not intended to be used by clients. There is a similar entity in ActivityPub: server actor (instance actor). In your case it seems to be located at https://enigmatick.social/user/system ?

    I prefer Webfinger discovery method, as described in this FEP: https://codeberg.org/fediverse/fep/src/branch/main/fep/d556/fep-d556.md.

    @silverpill@mitra.social Thanks - that solves a number of issues I've been encountering. From the outset, I wanted to use the system actor to point at the relevant administrative collections, but couldn't think of a good way to identify the actor to the client (without hard-coding it). That webfinger adjustment solves that.


Gli ultimi otto messaggi ricevuti dalla Federazione
  • @silverpill@mitra.social Thanks - that solves a number of issues I've been encountering. From the outset, I wanted to use the system actor to point at the relevant administrative collections, but couldn't think of a good way to identify the actor to the client (without hard-coding it). That webfinger adjustment solves that.

    read more

  • @jdt

    >nodeinfo is a common protocol used for discovering information about ActivityPub-speaking servers

    NodeInfo is used primarily by sites like https://fediverse.observer, it is not intended to be used by clients. There is a similar entity in ActivityPub: server actor (instance actor). In your case it seems to be located at https://enigmatick.social/user/system ?

    I prefer Webfinger discovery method, as described in this FEP: https://codeberg.org/fediverse/fep/src/branch/main/fep/d556/fep-d556.md.

    read more

  • From its conception, #Enigmatick has leaned heavily on the /inbox and /outbox endpoints for client operations. There are some /api endpoints, 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 Block and Delete activities sent from the client to the server outbox to 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 the Activity is stored alongside other typically federated activities. These local Block activities are not federated out to other servers; they are intended solely for local server management.

    The Block activity 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 a wasm module in the browser). That can be a topic for a future article.

    That the actor as the system Application user 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 the nodeinfo metadata.

    I'm using a typed object rather than just an id reference. This is so that I can use this same flow for blocking and purging Actor objects (i.e., the type would be Person, Service, or Application).

    The purge action is similar, using the Delete activity.

    { "@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, and actors associated with that instance will be fully deleted (i.e., not set to Tombstone).

    Collection Endpoints

    To facilitate the UI operations, I've created two new collection endpoints on my server: /instances and /actors. These endpoints provide typical ActivityPub Collection objects.

    { "@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 @context to account for a few non-standard attributes.

    That collection is used by the UI.

    The Enigmatick instances UI showing the most recently discovered instances from the enigmatick.social server

    Collection Discovery

    nodeinfo is 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 the metadata object contained in the nodeinfo JSON.

    "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 OrderedCollectionPage instead of OrderedCollection for my collection endpoints. I'm sure there are other tweaks to be made.

    read more

  • Agreed that forums are definitely needed, and the energy NodeBB has brought to the Fediverse has been very welcome indeed! The coexistence is often smooth but sometimes quite clunky (although of course that's true for ActivityPub platforms in general).

    Specifically for the deletes, I had also run into problems where they weren't getting propagated everywhere. Not sure if there's a similar thing happening here; If I recall correctly, the issue I was experiencing related to unsigned fetches.

    @julian

    read more

  • @klu9 @eyeinthesky

    Having multiple servers connect to each other is Federation.

    Having multiple independent servers (regardless of whether they connect to each other or not) is Decentralization.

    ...

    TS is an independent server — thus, it with others form Decentralized social-media.

    TS does not connect to other servers — thus, not Federated.

    read more

  • @reiver @eyeinthesky

    I'm afraid I'm not knowledgeable enough to understand the difference

    read more

  • @klu9 @eyeinthesky

    TS removed the Federation — not the Decentralized.

    read more

  • @reiver @eyeinthesky

    Isn't the key technical difference between & regular that TS removed the decentralization?

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    5 Views
    #ehLabs for you feed algorithm seems pretty decent now. Definitely better than Mastodon, not as good as Threads. But Threads isn’t a fair comparison because #ActivityPub events aren’t in their main algo and are relegated to a sub menu of following feed.
  • 0 Votes
    1 Posts
    12 Views
    #Wordpress #ActivityPub #Plugin Version 7.5.0 kann grundsätzlich mit zitierten Tröts umgehen und diese individuell auf Beitragsebene zulassen.Das ganze läuft asynchron über WP-Cron. Aus unbekannten Gründen werden mir in meinem #Blog für das Plugin keine Cron-Ereignisse angezeigt.Mag jemand mal bei sich das WP-Control Plugin installieren und mir zeigen, wie die Cron-Ereignisse auszusehen haben? Vielleicht kann ich die manuell reinbasteln? Bei mir fehlen die komplett. #Support #FediHilft
  • 0 Votes
    1 Posts
    15 Views
    :botkit: Introducing #BotKit: A #TypeScript framework for creating truly standalone #ActivityPub bots! Unlike traditional Mastodon bots, BotKit lets you build fully independent #fediverse bots that aren't constrained by platform limits. Create your entire bot in a single TypeScript file using our simple, expressive API. Currently #Deno-only, with Node.js & Bun support planned. Built on the robust @fedify@hollo.social foundation. https://botkit.fedify.dev/
  • 0 Votes
    1 Posts
    7 Views
    Threads, la nueva red social de Meta, será compatible con el Fediverso. ¿Es esto una buena noticia? La historia parece indicar que no, ya que es probable que la multinacional esté desplegando una estrategia llamada "Adopta, Extiende, Extingue".. Las grandes compañías tech, las que están incluídas en las siglas GAFAM, esto es, Google, Apple, Facebook, Amazon y Microsoft, son conocidas por sus supuestas (o a veces no tan supuestas) prácticas monopolísticas. Solo a modo de ejemplo, una rápida búsqueda en internet nos proporciona casos como: - El departamento de justicia contra google. - La FTC contra Facebook. - Y otros casos similares de los estados de Tejas, Colorado y Utah contra google. No obstante, Meta (ose podría enfrentar hoy en día a un competidor que no puede ser comprado: el Fediverso. En el vídeo anterior os introduje un poco a este mundo del fediverso. El fediverso es un grupo descentralizado de servidores que usan el protocolo ActivityPub para comunicarse entre ellos. ActivityPub es un protocolo de red abierto para crear redes sociales descentralizadas. Básicamente, este protocolo proporciona una API cliente-servidor para crear, actualizar y eliminar contenidos, así como una API federada de servidor a servidor para enviar notificaciones y contenidos. El resultado es que con este protocolo se han creado redes sociales federadas y descentralizadas, como Mastodon (que sería como un Twitter), PeerTube (que sería como un Youtube), Lemmy (que sería como un Reddit), y otras. De los enormes beneficios que aportan estas redes descentralizadas, federadas, y FOSS, ya hablé en mi vídeo anterior. La idea de este vídeo es ver los mecanismos que tienen las grandes tecnológicas para acabar con esta competencia, que no pueden comprar como ha hecho en otras ocasiones, ya que no es propiedad de nadie, sino el resultado de la comunicación espontánea entre muchos servidores. 🕒 Marcas temporales: 00:00 Introducción 00:26 El Fediverso como amenaza 02:48 "Adopta, Extiende, Extingue" 04:32 Google vs XMPP 12:27 El origen de la estrategia 14:44 Meta vs Fediverso 15:50 La prueba 16:16 Conclusión: ¿qué podemos hacer? 🔵 Algunos enlaces relevantes: 🔗 Artículo en que me he basado: https://ploum.net/2023-06-23-how-to-kill-decentralised-networks.html 🔗 Casos judiciales GAFAM: https://www.economicliberties.us/tech-lawsuit-timelines/ 🔗 Threads: https://www.xataka.com/basics/threads-instagram-que-como-funciona-que-promete-esta-red-social 🔗 Fediverso: https://fediverse.party/ 🔴 VÍDEOS QUE YOUTUBE NO TE RECOMIENDA https://youtu.be/EQy9g-U0VYM https://youtu.be/tzkb-qH-uYU 🟢 CONTRIBUYE A LA DIFUSIÓN DEL SOFTWARE LIBRE: 🦇 Donando BAT si usas Brave Browser 🪙 Bitcoin (BTC): bc1qtmpr2k40kquq6scchv9dre65lahjr2gxrpdp69 🌩️ Bitcoin lightning (BTC): https://getalby.com/p/linuxchad 🕵️ Monero (XMR): 86LXrzSe7wfLAsWVftebH3UNozb6Pf5K8KKooBRo47BYhge4HmzEeaBHa3twGe3hmjG5UPUm6DrFhi2tZVPnaxm752vhZ9f