Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  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 Uncategorized
activitypubfediverse
109 Posts 11 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.
  • Evan ProdromouE Evan Prodromou

    @mariusor I have implemented it requiring OAuth on one side and using HTTP Signature on the other. I think you need to use the user's authorization for private content or to respect personal blocks. It sucks for caching but Β―\_(ツ)_/Β―

    @thisismissem @benpate @steve @smallcircles

    Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
    Emelia πŸ‘ΈπŸ»T This user is from outside of this forum
    Emelia πŸ‘ΈπŸ»
    wrote last edited by
    #90

    @evan @mariusor @benpate @steve @smallcircles yeah, it's the only way to do it.

    But this infrastructure actually is what enables things like the AT Protocol "proxy through my PDS to the bluesky app view" or "proxy through my PDS to a custom feed generator" functionality.

    That's how that all works.

    1 Reply Last reply
    2
    0
    • 🫧 socialcoding..S 🫧 socialcoding..

      @evan @steve

      It is both, like in that diagram draft.. or at least could be considered such (the notes apply to Protosocial musings).

      https://social.coop/@smallcircles/116099511464629495

      🫧 socialcoding..S This user is from outside of this forum
      🫧 socialcoding..S This user is from outside of this forum
      🫧 socialcoding..
      wrote last edited by
      #91

      @evan @steve

      Another issue: Unclear protocol layers.

      > I am not a fan of the idea that #ActivityPub is a message-passing system; it's a read-write API.

      I'm not sure what a "read-write API" is, really. It 's a fuzzy term, whereas message based systems have well-defined architecture patterns and a body of IT knowledge and practice to apply them in robust communication systems. A 'Message API' has a generic, consistent interface.

      The overarching goal of AS/AP should be empowerment of the Solution developer so they can directly focus on building use cases for their application or business domain. They should not have to think about any of the intrinsics of the protocol, like particular GETs and POSTs used to model protocol capabilities in the HTTP transport layer.

      Solution design then involves:

      0. Model the domain
      1. Data modeling, msg formats + validation
      2. Define actor msg exchange patterns
      3. Document design
      --
      4. Improve these steps. Add native protocol + tool support over time.

      Evan ProdromouE 1 Reply Last reply
      0
      • 🫧 socialcoding..S 🫧 socialcoding..

        @evan @steve

        Another issue: Unclear protocol layers.

        > I am not a fan of the idea that #ActivityPub is a message-passing system; it's a read-write API.

        I'm not sure what a "read-write API" is, really. It 's a fuzzy term, whereas message based systems have well-defined architecture patterns and a body of IT knowledge and practice to apply them in robust communication systems. A 'Message API' has a generic, consistent interface.

        The overarching goal of AS/AP should be empowerment of the Solution developer so they can directly focus on building use cases for their application or business domain. They should not have to think about any of the intrinsics of the protocol, like particular GETs and POSTs used to model protocol capabilities in the HTTP transport layer.

        Solution design then involves:

        0. Model the domain
        1. Data modeling, msg formats + validation
        2. Define actor msg exchange patterns
        3. Document design
        --
        4. Improve these steps. Add native protocol + tool support over time.

        Evan ProdromouE This user is from outside of this forum
        Evan ProdromouE This user is from outside of this forum
        Evan Prodromou
        wrote last edited by
        #92

        @smallcircles @steve it's ok if you haven't heard of a REST API. It's an API that uses HTTP for reading and writing data. Wikipedia has a good
        article about it:

        https://en.wikipedia.org/wiki/REST

        Evan ProdromouE 1 Reply Last reply
        1
        0
        • Evan ProdromouE Evan Prodromou

          @smallcircles @steve it's ok if you haven't heard of a REST API. It's an API that uses HTTP for reading and writing data. Wikipedia has a good
          article about it:

          https://en.wikipedia.org/wiki/REST

          Evan ProdromouE This user is from outside of this forum
          Evan ProdromouE This user is from outside of this forum
          Evan Prodromou
          wrote last edited by
          #93

          @smallcircles @steve one anti-pattern I dislike seeing in ActivityPub discussions is that only one interaction defined in the ActivityPub spec is valid: an HTTP POST to an actor's `inbox` for server-to-server interactions.

          We can use HTTP GET to fetch additional data about objects, actors and collections.

          Evan ProdromouE 1 Reply Last reply
          2
          0
          • Evan ProdromouE Evan Prodromou

            @smallcircles @steve one anti-pattern I dislike seeing in ActivityPub discussions is that only one interaction defined in the ActivityPub spec is valid: an HTTP POST to an actor's `inbox` for server-to-server interactions.

            We can use HTTP GET to fetch additional data about objects, actors and collections.

            Evan ProdromouE This user is from outside of this forum
            Evan ProdromouE This user is from outside of this forum
            Evan Prodromou
            wrote last edited by
            #94

            @smallcircles @steve So, I disagree that we have to exclusively adopt a message-passing paradigm for ActivityPub.

            EDIT: note that it's exclusive.

            Christine Lemmer-WebberC 1 Reply Last reply
            2
            0
            • Evan ProdromouE Evan Prodromou

              @smallcircles @steve So, I disagree that we have to exclusively adopt a message-passing paradigm for ActivityPub.

              EDIT: note that it's exclusive.

              Christine Lemmer-WebberC This user is from outside of this forum
              Christine Lemmer-WebberC This user is from outside of this forum
              Christine Lemmer-Webber
              wrote last edited by
              #95

              @evan @smallcircles @steve ActivityPub already is a message passing paradigm

              🫧 socialcoding..S Evan ProdromouE 2 Replies Last reply
              1
              0
              • Christine Lemmer-WebberC Christine Lemmer-Webber

                @evan @smallcircles @steve ActivityPub already is a message passing paradigm

                🫧 socialcoding..S This user is from outside of this forum
                🫧 socialcoding..S This user is from outside of this forum
                🫧 socialcoding..
                wrote last edited by
                #96

                @evan

                > it's ok if you haven't heard of a REST API.

                Well, you be you. I consider this a 'typical Evan remark' by now, dripping with sarcasm. It is a weird fit for someone who want to lead the #SocialCG efforts, I'd say.

                Ah well. What I am talking about is architecture and design, and all the things that allow people to easily form a clear mental picture on how things fit together, wrap their head around the fediverse.

                A HTTP interface is a very low-level thing, and clearly but one of the many moving parts that play a role in #ActivityPub based solution development.

                Never defining this well, and having the documentation be scattered all across the fediverse in 1,001 random locations doesn't help. Meanwhile the dev talk that is going on for years remains very inefficient due to endless Babylonian speech confusion.

                https://social.coop/@smallcircles/116109447243110037

                @cwebber @steve

                Evan ProdromouE 1 Reply Last reply
                2
                0
                • 🫧 socialcoding..S 🫧 socialcoding..

                  @evan

                  > it's ok if you haven't heard of a REST API.

                  Well, you be you. I consider this a 'typical Evan remark' by now, dripping with sarcasm. It is a weird fit for someone who want to lead the #SocialCG efforts, I'd say.

                  Ah well. What I am talking about is architecture and design, and all the things that allow people to easily form a clear mental picture on how things fit together, wrap their head around the fediverse.

                  A HTTP interface is a very low-level thing, and clearly but one of the many moving parts that play a role in #ActivityPub based solution development.

                  Never defining this well, and having the documentation be scattered all across the fediverse in 1,001 random locations doesn't help. Meanwhile the dev talk that is going on for years remains very inefficient due to endless Babylonian speech confusion.

                  https://social.coop/@smallcircles/116109447243110037

                  @cwebber @steve

                  Evan ProdromouE This user is from outside of this forum
                  Evan ProdromouE This user is from outside of this forum
                  Evan Prodromou
                  wrote last edited by
                  #97

                  @smallcircles @cwebber @steve hey, Arnold.

                  I don't think argument from ignorance is a good way to have a discussion.

                  I chose to take you at your word that you didn't know what a "read-write API" is, and that you couldn't figure it out from context clues, so I dropped a link to Wikipedia.

                  What would you have done, if you were me?

                  🫧 socialcoding..S 1 Reply Last reply
                  2
                  0
                  • Christine Lemmer-WebberC Christine Lemmer-Webber

                    @evan @smallcircles @steve ActivityPub already is a message passing paradigm

                    Evan ProdromouE This user is from outside of this forum
                    Evan ProdromouE This user is from outside of this forum
                    Evan Prodromou
                    wrote last edited by
                    #98

                    @cwebber @smallcircles @steve thanks for that important clarification.

                    It does use message-passing, but not exclusively. I'll update my reply.

                    🫧 socialcoding..S 1 Reply Last reply
                    2
                    0
                    • Evan ProdromouE Evan Prodromou

                      @cwebber @smallcircles @steve thanks for that important clarification.

                      It does use message-passing, but not exclusively. I'll update my reply.

                      🫧 socialcoding..S This user is from outside of this forum
                      🫧 socialcoding..S This user is from outside of this forum
                      🫧 socialcoding..
                      wrote last edited by
                      #99

                      @evan @cwebber @steve

                      Which was exactly what I also indicated above, and which aligns to that diagram as well.

                      Evan ProdromouE 1 Reply Last reply
                      0
                      • Evan ProdromouE Evan Prodromou

                        @smallcircles @cwebber @steve hey, Arnold.

                        I don't think argument from ignorance is a good way to have a discussion.

                        I chose to take you at your word that you didn't know what a "read-write API" is, and that you couldn't figure it out from context clues, so I dropped a link to Wikipedia.

                        What would you have done, if you were me?

                        🫧 socialcoding..S This user is from outside of this forum
                        🫧 socialcoding..S This user is from outside of this forum
                        🫧 socialcoding..
                        wrote last edited by
                        #100

                        @evan @cwebber @steve

                        So why don't you use the word REST? I never encountered "read-write API". It is an informal term.

                        But that is not the point. You can have a REST API, fine. But that says nothing in itself. What does it expose? You might say "Duh.. ActivityPub!" but that is not very informative either. There is the notion of message exchange, and of an addressing mechanism, indicating higher level abstractions that conform to well-known architecture patterns, and would allow us to have more productive communication, delve less in implementation details and confusions of protocol behavior with solution design functionality, for starters.

                        Evan ProdromouE 1 Reply Last reply
                        0
                        • 🫧 socialcoding..S 🫧 socialcoding..

                          @evan @cwebber @steve

                          Which was exactly what I also indicated above, and which aligns to that diagram as well.

                          Evan ProdromouE This user is from outside of this forum
                          Evan ProdromouE This user is from outside of this forum
                          Evan Prodromou
                          wrote last edited by
                          #101

                          @smallcircles @cwebber @steve awesome.

                          So, would you like me to review your diagram and give comments? I don't know what you're looking for from me in this conversation.

                          🫧 socialcoding..S 1 Reply Last reply
                          2
                          0
                          • Evan ProdromouE Evan Prodromou

                            @smallcircles @cwebber @steve awesome.

                            So, would you like me to review your diagram and give comments? I don't know what you're looking for from me in this conversation.

                            🫧 socialcoding..S This user is from outside of this forum
                            🫧 socialcoding..S This user is from outside of this forum
                            🫧 socialcoding..
                            wrote last edited by
                            #102

                            @evan @cwebber @steve

                            Not needed. I hope to be able to add some feedback to the AP API repo.

                            Evan ProdromouE 1 Reply Last reply
                            0
                            • 🫧 socialcoding..S 🫧 socialcoding..

                              @evan @cwebber @steve

                              Not needed. I hope to be able to add some feedback to the AP API repo.

                              Evan ProdromouE This user is from outside of this forum
                              Evan ProdromouE This user is from outside of this forum
                              Evan Prodromou
                              wrote last edited by
                              #103

                              @smallcircles @cwebber @steve I would personally really appreciate that. I also think it'd be helpful for the ecosystem. I like that you combine a high-level social and technical approach to discussions of ActivityPub and the Social Web with an almost encyclopedic knowledge of the details. It's a rare combination and extremely valuable.

                              🫧 socialcoding..S 1 Reply Last reply
                              2
                              0
                              • Evan ProdromouE Evan Prodromou

                                @smallcircles @cwebber @steve I would personally really appreciate that. I also think it'd be helpful for the ecosystem. I like that you combine a high-level social and technical approach to discussions of ActivityPub and the Social Web with an almost encyclopedic knowledge of the details. It's a rare combination and extremely valuable.

                                🫧 socialcoding..S This user is from outside of this forum
                                🫧 socialcoding..S This user is from outside of this forum
                                🫧 socialcoding..
                                wrote last edited by
                                #104

                                @evan @cwebber @steve

                                Thank you, that is nice to hear. I am however not an expert, am but a humble generalist and a person who'd love to be in that Solution developer stakeholder role. Who however does not see the fediverse trend in a direction where I'd adopt the technology for what I have in mind. Drifting away from "the promise" that I read in the #ActivityPub specs in 2017, and which at the time made me decide to lend a helping hand here and there as #SocialHub facilitator and tech advocate.

                                Evan ProdromouE 1 Reply Last reply
                                0
                                • 🫧 socialcoding..S 🫧 socialcoding..

                                  @evan @cwebber @steve

                                  Thank you, that is nice to hear. I am however not an expert, am but a humble generalist and a person who'd love to be in that Solution developer stakeholder role. Who however does not see the fediverse trend in a direction where I'd adopt the technology for what I have in mind. Drifting away from "the promise" that I read in the #ActivityPub specs in 2017, and which at the time made me decide to lend a helping hand here and there as #SocialHub facilitator and tech advocate.

                                  Evan ProdromouE This user is from outside of this forum
                                  Evan ProdromouE This user is from outside of this forum
                                  Evan Prodromou
                                  wrote last edited by
                                  #105

                                  @smallcircles what do you have in mind, and how is the Fediverse trending in the wrong direction for it?

                                  🫧 socialcoding..S 1 Reply Last reply
                                  2
                                  0
                                  • 🫧 socialcoding..S 🫧 socialcoding..

                                    @evan @cwebber @steve

                                    So why don't you use the word REST? I never encountered "read-write API". It is an informal term.

                                    But that is not the point. You can have a REST API, fine. But that says nothing in itself. What does it expose? You might say "Duh.. ActivityPub!" but that is not very informative either. There is the notion of message exchange, and of an addressing mechanism, indicating higher level abstractions that conform to well-known architecture patterns, and would allow us to have more productive communication, delve less in implementation details and confusions of protocol behavior with solution design functionality, for starters.

                                    Evan ProdromouE This user is from outside of this forum
                                    Evan ProdromouE This user is from outside of this forum
                                    Evan Prodromou
                                    wrote last edited by
                                    #106

                                    @smallcircles @cwebber @steve I'm fine with that.

                                    However, I think ActivityPub builds up persistent state on the server side which can be read and used by other processors.

                                    For example, when I `Like` something, it goes into my `liked` collection, and the activity goes into the `likes` for that object. The `Like` activity goes into my `outbox` and others' `inbox`. People can review that information and use it.

                                    Evan ProdromouE 1 Reply Last reply
                                    2
                                    0
                                    • Evan ProdromouE Evan Prodromou

                                      @smallcircles @cwebber @steve I'm fine with that.

                                      However, I think ActivityPub builds up persistent state on the server side which can be read and used by other processors.

                                      For example, when I `Like` something, it goes into my `liked` collection, and the activity goes into the `likes` for that object. The `Like` activity goes into my `outbox` and others' `inbox`. People can review that information and use it.

                                      Evan ProdromouE This user is from outside of this forum
                                      Evan ProdromouE This user is from outside of this forum
                                      Evan Prodromou
                                      wrote last edited by
                                      #107

                                      @smallcircles @cwebber @steve

                                      Some implementations skip some of these steps, because they are focused only on processing messages as they arrive. So, I am reluctant to overemphasize the message processing at the expense of the personal datastore functionality.

                                      1 Reply Last reply
                                      2
                                      0
                                      • Evan ProdromouE Evan Prodromou

                                        @smallcircles what do you have in mind, and how is the Fediverse trending in the wrong direction for it?

                                        🫧 socialcoding..S This user is from outside of this forum
                                        🫧 socialcoding..S This user is from outside of this forum
                                        🫧 socialcoding..
                                        wrote last edited by
                                        #108

                                        @evan

                                        So the area where my plans go I call "Residential social networking", geo-fenced but inter-connected social networking circles that cover a city, town, or rural area, and which enable their residents to not only create content on the network, but the dynamic apps and services based on local needs that exist in the area. The intent of a residential social network is to engage people *offline* and in activities that support the local economy. Or rather strengthens the Circles of Sustainability in SX terminology:

                                        https://coding.social/blog/reimagine-social/#circles-of-sustainability

                                        And all this should be a relatively low-code affair, directly accessible already for a first-time dev. This requires having a mature open standards based healthy technology foundation and thriving ecosystem.

                                        I am a developer, though with rusty coding skills these days, and I might have started a fedi app design in 2018 or so. But this would not have led to the desired outcome, just throw one more app-centric software in the mix.

                                        Evan ProdromouE 1 Reply Last reply
                                        0
                                        • 🫧 socialcoding..S 🫧 socialcoding..

                                          @evan

                                          So the area where my plans go I call "Residential social networking", geo-fenced but inter-connected social networking circles that cover a city, town, or rural area, and which enable their residents to not only create content on the network, but the dynamic apps and services based on local needs that exist in the area. The intent of a residential social network is to engage people *offline* and in activities that support the local economy. Or rather strengthens the Circles of Sustainability in SX terminology:

                                          https://coding.social/blog/reimagine-social/#circles-of-sustainability

                                          And all this should be a relatively low-code affair, directly accessible already for a first-time dev. This requires having a mature open standards based healthy technology foundation and thriving ecosystem.

                                          I am a developer, though with rusty coding skills these days, and I might have started a fedi app design in 2018 or so. But this would not have led to the desired outcome, just throw one more app-centric software in the mix.

                                          Evan ProdromouE This user is from outside of this forum
                                          Evan ProdromouE This user is from outside of this forum
                                          Evan Prodromou
                                          wrote last edited by
                                          #109

                                          @smallcircles that sounds cool!

                                          1 Reply Last reply
                                          2
                                          0
                                          • R AodeRelay shared this topic
                                            R ActivityRelay shared this topic
                                          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