Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. General Discussion
  3. I think the #ActivityPub client-to-server API is extremely important and underrated.

I think the #ActivityPub client-to-server API is extremely important and underrated.

Scheduled Pinned Locked Moved General Discussion
activitypubfediverse
115 Posts 13 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mariusor@metalhead.clubM mariusor@metalhead.club

    @steve apologies, I take "server" in the context of ActivityPub discussion to be an "ActivityPub server", not all the other web-servers involved in the process.

    And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

    @smallcircles @evan

    smallcircles@social.coopS This user is from outside of this forum
    smallcircles@social.coopS This user is from outside of this forum
    smallcircles@social.coop
    wrote last edited by
    #54

    @mariusor @steve @evan

    > And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

    Indeed. Another term that I see people use in different meaning, also when talking about C2S.

    In one meaning the user device is referred to, that you might need to hole-punch with to have a full AP server, or which depends on a server relay.

    And the other meaning as role. As in client/server roles, pure conceptual, and which might swap too.

    steve@social.technoetic.comS 1 Reply Last reply
    0
    • smallcircles@social.coopS smallcircles@social.coop

      @mariusor @steve @evan

      > And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

      Indeed. Another term that I see people use in different meaning, also when talking about C2S.

      In one meaning the user device is referred to, that you might need to hole-punch with to have a full AP server, or which depends on a server relay.

      And the other meaning as role. As in client/server roles, pure conceptual, and which might swap too.

      steve@social.technoetic.comS This user is from outside of this forum
      steve@social.technoetic.comS This user is from outside of this forum
      steve@social.technoetic.com
      wrote last edited by
      #55

      @smallcircles @mariusor @evan C2S is described (too loosely, but…) in the ActivityPub spec. There is a client and server aspect to C2S. A C2S client is software that uses that protocol/API to interact with an ActivityPub C2S-capable server (general or domain-specific). When I refer to an ActivityPub Client, I mean software using C2S rather than consumers of ActivityPub-related data in general.

      mariusor@metalhead.clubM 1 Reply Last reply
      0
      • steve@social.technoetic.comS steve@social.technoetic.com

        @smallcircles @evan An AS2 Collection cannot be a timeline (in general). It’s not even ordered. An AS2 OrderedCollection (a subtype of Collection) might be ordered by time or not, so it’s also not a timeline (in general). When they are ordered by some time value (unspecified in AP) they are often called “streams” in the spec. The Mastodon content timelines are not the same as AP activity streams although a filtered AP stream can be transformed to a content timeline.

        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.ca
        wrote last edited by
        #56

        @steve @smallcircles The `inbox` and `outbox` are both sequences ordered by time. I think that should meet your requirements for a 'timeline'?

        I think it's fair to call the outbox the actor's 'feed'? It is a feed of all their activities.

        evan@cosocial.caE 1 Reply Last reply
        0
        • evan@cosocial.caE evan@cosocial.ca

          @steve @smallcircles The `inbox` and `outbox` are both sequences ordered by time. I think that should meet your requirements for a 'timeline'?

          I think it's fair to call the outbox the actor's 'feed'? It is a feed of all their activities.

          evan@cosocial.caE This user is from outside of this forum
          evan@cosocial.caE This user is from outside of this forum
          evan@cosocial.ca
          wrote last edited by
          #57

          @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

          smallcircles@social.coopS evan@cosocial.caE 2 Replies Last reply
          0
          • evan@cosocial.caE evan@cosocial.ca

            @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

            smallcircles@social.coopS This user is from outside of this forum
            smallcircles@social.coopS This user is from outside of this forum
            smallcircles@social.coop
            wrote last edited by
            #58

            @evan @steve

            > I think it's fair to call the outbox the actor's 'feed'?

            The actor's event bus in a pure event based approach. 😃

            Does that break AP? Current fediverse?
            Can AP be considered an event-driven architecture of sorts (or restrained as such in a solution design)?

            I really like the Motivating use cases section of the AS specs, and the primer that sits on the W3C wiki to that. Those might be further formalized so they are applied consistently.

            evan@cosocial.caE 1 Reply Last reply
            0
            • evan@cosocial.caE evan@cosocial.ca

              @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

              evan@cosocial.caE This user is from outside of this forum
              evan@cosocial.caE This user is from outside of this forum
              evan@cosocial.ca
              wrote last edited by
              #59

              @steve @smallcircles

              That said, I think it would be great to have reverse chronological ordered collections of objects created by the actor.

              It would be nice to use `streams` like `endpoints`, as an object, and define properties like `notes`, `images`, `places` and so on off of it.

              Unfortunately the loose definition and lack of examples for `streams` makes it hard to use. It's probably better just to define them as top-level properties of the actor.

              evan@cosocial.caE 1 Reply Last reply
              0
              • steve@social.technoetic.comS steve@social.technoetic.com

                @smallcircles @mariusor @evan C2S is described (too loosely, but…) in the ActivityPub spec. There is a client and server aspect to C2S. A C2S client is software that uses that protocol/API to interact with an ActivityPub C2S-capable server (general or domain-specific). When I refer to an ActivityPub Client, I mean software using C2S rather than consumers of ActivityPub-related data in general.

                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.club
                wrote last edited by
                #60

                @steve out of curiousity why do you make a difference between a consumer of AcitvityPub (assumedly you mean something that fetches ActivityPub using HTTP GET) and a C2S client?

                My assumption is that if something fetches ActivityPub objects and is capable of rendering it to another representation for its users, that's a client to server client.

                Client to server has two sections: consumer and producer and I think anything that fulfills any of those can be called a C2S client...

                @smallcircles @evan

                steve@social.technoetic.comS 1 Reply Last reply
                0
                • evan@cosocial.caE evan@cosocial.ca

                  @steve @smallcircles

                  That said, I think it would be great to have reverse chronological ordered collections of objects created by the actor.

                  It would be nice to use `streams` like `endpoints`, as an object, and define properties like `notes`, `images`, `places` and so on off of it.

                  Unfortunately the loose definition and lack of examples for `streams` makes it hard to use. It's probably better just to define them as top-level properties of the actor.

                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.ca
                  wrote last edited by
                  #61

                  @steve @smallcircles I also agree that having a separate "home timeline" and "notifications timeline" makes sense. There's an open user story for that:

                  Link Preview Image
                  Separate notifications and home feed · Issue #21 · swicg/activitypub-api

                  "As an ActivityPub API client developer, I want a 'home feed' collection for content-oriented incoming activities like Create, Question and Announce, so that I can show my users the most important content from their networks." "As an Act...

                  favicon

                  GitHub (github.com)

                  smallcircles@social.coopS 1 Reply Last reply
                  0
                  • evan@cosocial.caE evan@cosocial.ca

                    @steve @smallcircles I also agree that having a separate "home timeline" and "notifications timeline" makes sense. There's an open user story for that:

                    Link Preview Image
                    Separate notifications and home feed · Issue #21 · swicg/activitypub-api

                    "As an ActivityPub API client developer, I want a 'home feed' collection for content-oriented incoming activities like Create, Question and Announce, so that I can show my users the most important content from their networks." "As an Act...

                    favicon

                    GitHub (github.com)

                    smallcircles@social.coopS This user is from outside of this forum
                    smallcircles@social.coopS This user is from outside of this forum
                    smallcircles@social.coop
                    wrote last edited by
                    #62

                    @evan @steve

                    The way I see it, this has the wrong stakeholder name of "ActivityPub API client developer" i.e. spec implementer, and a Home Feed is something I may want as a "Solution developer" stakeholder. In other words that library or SDK that offers me the Social API should allow me to model that.

                    The user story was also brought up by Mastodon, a Microblogging solution built on top of AP (ideally).

                    evan@cosocial.caE 1 Reply Last reply
                    0
                    • smallcircles@social.coopS smallcircles@social.coop

                      @evan @steve

                      > I think it's fair to call the outbox the actor's 'feed'?

                      The actor's event bus in a pure event based approach. 😃

                      Does that break AP? Current fediverse?
                      Can AP be considered an event-driven architecture of sorts (or restrained as such in a solution design)?

                      I really like the Motivating use cases section of the AS specs, and the primer that sits on the W3C wiki to that. Those might be further formalized so they are applied consistently.

                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.ca
                      wrote last edited by
                      #63

                      @smallcircles @steve I know what an "event bus" is but I don't think it applies here. Usually it means a global data structure that attached processes can add events to and read events from. We don't have that in ActivityPub.

                      I think it's fair to say that activities are like events.

                      I also like the use cases and primer.

                      smallcircles@social.coopS 1 Reply Last reply
                      0
                      • smallcircles@social.coopS smallcircles@social.coop

                        @evan @steve

                        The way I see it, this has the wrong stakeholder name of "ActivityPub API client developer" i.e. spec implementer, and a Home Feed is something I may want as a "Solution developer" stakeholder. In other words that library or SDK that offers me the Social API should allow me to model that.

                        The user story was also brought up by Mastodon, a Microblogging solution built on top of AP (ideally).

                        evan@cosocial.caE This user is from outside of this forum
                        evan@cosocial.caE This user is from outside of this forum
                        evan@cosocial.ca
                        wrote last edited by
                        #64

                        @smallcircles @steve please comment on the issue!

                        1 Reply Last reply
                        0
                        • mariusor@metalhead.clubM mariusor@metalhead.club

                          @steve out of curiousity why do you make a difference between a consumer of AcitvityPub (assumedly you mean something that fetches ActivityPub using HTTP GET) and a C2S client?

                          My assumption is that if something fetches ActivityPub objects and is capable of rendering it to another representation for its users, that's a client to server client.

                          Client to server has two sections: consumer and producer and I think anything that fulfills any of those can be called a C2S client...

                          @smallcircles @evan

                          steve@social.technoetic.comS This user is from outside of this forum
                          steve@social.technoetic.comS This user is from outside of this forum
                          steve@social.technoetic.com
                          wrote last edited by
                          #65

                          @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

                          mariusor@metalhead.clubM thisismissem@hachyderm.ioT 2 Replies Last reply
                          0
                          • steve@social.technoetic.comS steve@social.technoetic.com

                            @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

                            mariusor@metalhead.clubM This user is from outside of this forum
                            mariusor@metalhead.clubM This user is from outside of this forum
                            mariusor@metalhead.club
                            wrote last edited by
                            #66

                            @steve yes, but something dumb that only fetches a URL and converts the resulting ActivityPub into a valid other type of representation is a valid client in my opinion. That's what I mean, was that unclear?

                            @smallcircles @evan

                            steve@social.technoetic.comS 1 Reply Last reply
                            0
                            • steve@social.technoetic.comS steve@social.technoetic.com

                              @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

                              thisismissem@hachyderm.ioT This user is from outside of this forum
                              thisismissem@hachyderm.ioT This user is from outside of this forum
                              thisismissem@hachyderm.io
                              wrote last edited by
                              #67

                              @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

                              mariusor@metalhead.clubM benpate@mastodon.socialB 2 Replies Last reply
                              0
                              • thisismissem@hachyderm.ioT thisismissem@hachyderm.io

                                @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

                                mariusor@metalhead.clubM This user is from outside of this forum
                                mariusor@metalhead.clubM This user is from outside of this forum
                                mariusor@metalhead.club
                                wrote last edited by
                                #68

                                @thisismissem I have just implemented that for the GoActivityPub servers and it's easier than it sounds.

                                The only important step required is to convert the client authorization token (presumably an OAuth2 bearer token) to a valid actor and then further to a valid Private Key with which to sign the remote request. After that the only thing remaining is to pipe verbatim the received response to the client...

                                @steve @smallcircles @evan

                                thisismissem@hachyderm.ioT 1 Reply Last reply
                                0
                                • evan@cosocial.caE evan@cosocial.ca

                                  @smallcircles @steve I know what an "event bus" is but I don't think it applies here. Usually it means a global data structure that attached processes can add events to and read events from. We don't have that in ActivityPub.

                                  I think it's fair to say that activities are like events.

                                  I also like the use cases and primer.

                                  smallcircles@social.coopS This user is from outside of this forum
                                  smallcircles@social.coopS This user is from outside of this forum
                                  smallcircles@social.coop
                                  wrote last edited by
                                  #69

                                  @evan @steve

                                  Well, but a part of the specs can certainly be considered a message bus with channels conceptually.

                                  Channel is the name that AsyncAPI uses, which maps to domain aggregates and actor streams.

                                  But considering things purely event-based is stretching it, and may be better to discern between commands and events.

                                  smallcircles@social.coopS evan@cosocial.caE 2 Replies Last reply
                                  0
                                  • thisismissem@hachyderm.ioT thisismissem@hachyderm.io

                                    @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

                                    benpate@mastodon.socialB This user is from outside of this forum
                                    benpate@mastodon.socialB This user is from outside of this forum
                                    benpate@mastodon.social
                                    wrote last edited by
                                    #70

                                    @thisismissem @steve @mariusor @smallcircles @evan

                                    Just checking my memory.. this concept exists already, yes?

                                    Link Preview Image
                                    ActivityPub/Primer/proxyUrl endpoint - W3C Wiki

                                    favicon

                                    (www.w3.org)

                                    Are you just saying that the new API spec should include this? Or am I missing something?

                                    evan@cosocial.caE thisismissem@hachyderm.ioT 2 Replies Last reply
                                    0
                                    • mariusor@metalhead.clubM mariusor@metalhead.club

                                      @steve yes, but something dumb that only fetches a URL and converts the resulting ActivityPub into a valid other type of representation is a valid client in my opinion. That's what I mean, was that unclear?

                                      @smallcircles @evan

                                      steve@social.technoetic.comS This user is from outside of this forum
                                      steve@social.technoetic.comS This user is from outside of this forum
                                      steve@social.technoetic.com
                                      wrote last edited by
                                      #71

                                      @mariusor @smallcircles @evan I *think* it’s
                                      clear. I agree it’s a kind of “client”, just not necessarily a C2S client.

                                      mariusor@metalhead.clubM 1 Reply Last reply
                                      0
                                      • smallcircles@social.coopS smallcircles@social.coop

                                        @evan @steve

                                        Well, but a part of the specs can certainly be considered a message bus with channels conceptually.

                                        Channel is the name that AsyncAPI uses, which maps to domain aggregates and actor streams.

                                        But considering things purely event-based is stretching it, and may be better to discern between commands and events.

                                        smallcircles@social.coopS This user is from outside of this forum
                                        smallcircles@social.coopS This user is from outside of this forum
                                        smallcircles@social.coop
                                        wrote last edited by
                                        #72

                                        @evan @steve

                                        Btw, wrt fediverse we really live in a multiverse by all the different perspectives people have towards what the network should or should not provide. All having different physics.

                                        Where ActivityPub is gravity, and fediverse is entropy and chaos, and universes have become inaccessible over time, past stations.

                                        evan@cosocial.caE 1 Reply Last reply
                                        0
                                        • benpate@mastodon.socialB benpate@mastodon.social

                                          @thisismissem @steve @mariusor @smallcircles @evan

                                          Just checking my memory.. this concept exists already, yes?

                                          Link Preview Image
                                          ActivityPub/Primer/proxyUrl endpoint - W3C Wiki

                                          favicon

                                          (www.w3.org)

                                          Are you just saying that the new API spec should include this? Or am I missing something?

                                          evan@cosocial.caE This user is from outside of this forum
                                          evan@cosocial.caE This user is from outside of this forum
                                          evan@cosocial.ca
                                          wrote last edited by
                                          #73

                                          @benpate @thisismissem @steve @mariusor @smallcircles

                                          Yes, proxyUrl already exists. There's a use case here:

                                          Link Preview Image
                                          Remote object access · Issue #10 · swicg/activitypub-api

                                          "As an ActivityPub client developer, I want a reliable method for accessing objects on remote servers with the user's authorization, so I can read private or followers-only data."

                                          favicon

                                          GitHub (github.com)

                                          The only other way I've seen this use case discussed is with client-side HTTP Signature keys. There's some kind of negotiation between the server and the client, and then the client can make requests to remote servers using HTTP Signature and a key it controls.

                                          thisismissem@hachyderm.ioT 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups