Skip to content
0
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • Home
  • 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 (Sketchy)
  • No Skin
Collapse

Wandering Adventure Party

  1. Home
  2. ActivityPub
  3. Protocol handler?

Protocol handler?

Scheduled Pinned Locked Moved ActivityPub
fediverse
27 Posts 10 Posters 3 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.
  • RimuR This user is from outside of this forum
    RimuR This user is from outside of this forum
    Rimu
    wrote on last edited by
    #1

    I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

    Link Preview Image
    Navigator: registerProtocolHandler() method - Web APIs | MDN

    The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

    favicon

    MDN Web Docs (developer.mozilla.org)

    Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

    mimic_kry@sh.itjust.worksM julianJ Evan ProdromouE die4ever@retrolemmy.comD silverpillS 5 Replies Last reply
    0
    • RimuR Rimu

      I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

      Link Preview Image
      Navigator: registerProtocolHandler() method - Web APIs | MDN

      The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

      favicon

      MDN Web Docs (developer.mozilla.org)

      Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

      mimic_kry@sh.itjust.worksM This user is from outside of this forum
      mimic_kry@sh.itjust.worksM This user is from outside of this forum
      mimic_kry@sh.itjust.works
      wrote on last edited by
      #2

      Too soo-…wait what fucking year is it

      1 Reply Last reply
      0
      • RimuR Rimu

        I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

        Link Preview Image
        Navigator: registerProtocolHandler() method - Web APIs | MDN

        The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

        favicon

        MDN Web Docs (developer.mozilla.org)

        Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

        julianJ This user is from outside of this forum
        julianJ This user is from outside of this forum
        julian
        wrote on last edited by
        #3

        rimu@piefed.social interesting idea… I know Evan has some thoughts about this as part of his ActivityPub HTML discovery project

        ActivityPub Discovery

        favicon

        (swicg.github.io)

        I am not sure why they did not settle on protocol handlers but I’ve tagged him for comment

        evan@activitypub.space evan@cosocial.ca

        1 Reply Last reply
        0
        • julianJ This user is from outside of this forum
          julianJ This user is from outside of this forum
          julian
          wrote on last edited by
          #4

          The concept sounds excellent, although there is fairly limited mobile support.

          Since NodeBB is an installable PWA it would be definitely nice to have it supported there as well.

          1 Reply Last reply
          1
          • Tim ChambersT This user is from outside of this forum
            Tim ChambersT This user is from outside of this forum
            Tim Chambers
            wrote on last edited by
            #5

            @julian I write about this here: near zero mobile browser support but strong desktop browser support- and I suggest a JavaScript fallback for the others …. https://www.timothychambers.net/2025/06/24/the-seven-deadly-fediverse-ux.html

            RimuR new smittenS 2 Replies Last reply
            1
            • RimuR Rimu

              I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

              Link Preview Image
              Navigator: registerProtocolHandler() method - Web APIs | MDN

              The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

              favicon

              MDN Web Docs (developer.mozilla.org)

              Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

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

              @rimu web+acct

              die4ever@retrolemmy.comD 1 Reply Last reply
              0
              • RimuR Rimu

                I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

                Link Preview Image
                Navigator: registerProtocolHandler() method - Web APIs | MDN

                The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

                favicon

                MDN Web Docs (developer.mozilla.org)

                Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

                die4ever@retrolemmy.comD This user is from outside of this forum
                die4ever@retrolemmy.comD This user is from outside of this forum
                die4ever@retrolemmy.com
                wrote on last edited by
                #7

                It’s a good idea, but fedi is maybe too broad to be useful? I wouldn’t want a Lemmy post to open in Mastodon, and pretty sure opening a Mastodon post in Lemmy is impossible unless the post was directed to a community.

                web+threadiverse could solve that issue but that’s kinda hacky. Maybe the real solution is to improve Lemmy and Mastodon so that they are capable of doing these things decently.

                I was actually thinking of making a browser extension that handles this instead. Each Fediverse software could write something to window.fediverse or something like that, with tags for group support or micro blogging. The extension could have methods to infer these values for existing platforms. But the extension could give a dialog box to redirect, based on your preferred instances for certain tags.

                1 Reply Last reply
                0
                • Evan ProdromouE Evan Prodromou

                  @rimu web+acct

                  die4ever@retrolemmy.comD This user is from outside of this forum
                  die4ever@retrolemmy.comD This user is from outside of this forum
                  die4ever@retrolemmy.com
                  wrote on last edited by
                  #8

                  What does acct stand for?

                  Evan ProdromouE 1 Reply Last reply
                  0
                  • die4ever@retrolemmy.comD die4ever@retrolemmy.com

                    What does acct stand for?

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

                    @Die4Ever

                    Link Preview Image
                    RFC 7565: The 'acct' URI Scheme

                    The 'acct' URI Scheme (RFC 7565, )

                    favicon

                    IETF Datatracker (datatracker.ietf.org)

                    1 Reply Last reply
                    0
                    • RimuR Rimu

                      I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

                      Link Preview Image
                      Navigator: registerProtocolHandler() method - Web APIs | MDN

                      The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (also known as protocols).

                      favicon

                      MDN Web Docs (developer.mozilla.org)

                      Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

                      silverpillS This user is from outside of this forum
                      silverpillS This user is from outside of this forum
                      silverpill
                      wrote on last edited by
                      #10

                      @rimu

                      web+ap, which was proposed by Fedilink authors. To my knowledge, it is the most widely adopted proposal

                      Fedi Links

                      favicon

                      (web.archive.org)

                      (the main site seems to be offline now)

                      cc @SoniEx2

                      julianJ 1 Reply Last reply
                      0
                      • silverpillS silverpill

                        @rimu

                        web+ap, which was proposed by Fedilink authors. To my knowledge, it is the most widely adopted proposal

                        Fedi Links

                        favicon

                        (web.archive.org)

                        (the main site seems to be offline now)

                        cc @SoniEx2

                        julianJ This user is from outside of this forum
                        julianJ This user is from outside of this forum
                        julian
                        wrote on last edited by
                        #11

                        Are there implementors of web+ap? I’d be interested in adopting.

                        I assume the fallback behaviour is to just assume https?

                        1 Reply Last reply
                        0
                        • silverpillS This user is from outside of this forum
                          silverpillS This user is from outside of this forum
                          silverpill
                          wrote on last edited by
                          #12

                          @julian Fedilinks website lists 3 MastoAPI clients, but the list is incomplete. I saw Fedilinks being mentioned in changelogs of other clients too.

                          There was also an Akkoma PR, it was closed by the author: https://akkoma.dev/AkkomaGang/akkoma/pulls/589. I don't quite understand the reasoning, perhaps @smitten could clarify.

                          julianJ 1 Reply Last reply
                          0
                          • silverpillS silverpill

                            @julian Fedilinks website lists 3 MastoAPI clients, but the list is incomplete. I saw Fedilinks being mentioned in changelogs of other clients too.

                            There was also an Akkoma PR, it was closed by the author: https://akkoma.dev/AkkomaGang/akkoma/pulls/589. I don't quite understand the reasoning, perhaps @smitten could clarify.

                            julianJ This user is from outside of this forum
                            julianJ This user is from outside of this forum
                            julian
                            wrote on last edited by
                            #13

                            The PR comments suggest that making the various changes to the backend were too large to justify, and a front-end only approach would be preferred? smitten@key.portend.place

                            It raises a good point though, where if you serve web+ap://, it’s not understood by clients that are not aware of this scheme. If there were a way a client could communicate whether there is a protocol handler registered, then the server could tailor its response.

                            1 Reply Last reply
                            0
                            • new smittenS This user is from outside of this forum
                              new smittenS This user is from outside of this forum
                              new smitten
                              wrote last edited by
                              #14

                              Glad to see more people having this idea! The problems we ran into were in helping the browser understand the address and know where to forward. Each server implements lookup routes differently, so there's not necessarily a generic path that you can trust is available on https on the person's home server, even if you know their home server origin. So in some ways the feature should be offered by your home server software, maybe offering a website that does the handler registration to its known lookup/redirect address.

                              But that is limiting in a few ways. It's a lot of extra steps for each person to do (browsers' default UI for registering protocols is not obvious or easy). It doesn't carry over to different devices, and if you have more than one home server in some way, you are back dealing with that not-great browser UI to pick which handler you want.

                              In general people are more accustomed to registering protocols to apps they have installed, especially phone apps. It's much easier to register them there and you don't have to have approval flow UI, but taking that approach moves this whole served handler route out of the backend again, so we have to start thinking more along the lines of web+ap-compatible servers that handler clients know how to call or bounce to.

                              @julian@community.nodebb.org @silverpill@mitra.social @SoniEx2@chaos.social @rimu@piefed.social

                              new smittenS 1 Reply Last reply
                              0
                              • new smittenS new smitten

                                Glad to see more people having this idea! The problems we ran into were in helping the browser understand the address and know where to forward. Each server implements lookup routes differently, so there's not necessarily a generic path that you can trust is available on https on the person's home server, even if you know their home server origin. So in some ways the feature should be offered by your home server software, maybe offering a website that does the handler registration to its known lookup/redirect address.

                                But that is limiting in a few ways. It's a lot of extra steps for each person to do (browsers' default UI for registering protocols is not obvious or easy). It doesn't carry over to different devices, and if you have more than one home server in some way, you are back dealing with that not-great browser UI to pick which handler you want.

                                In general people are more accustomed to registering protocols to apps they have installed, especially phone apps. It's much easier to register them there and you don't have to have approval flow UI, but taking that approach moves this whole served handler route out of the backend again, so we have to start thinking more along the lines of web+ap-compatible servers that handler clients know how to call or bounce to.

                                @julian@community.nodebb.org @silverpill@mitra.social @SoniEx2@chaos.social @rimu@piefed.social

                                new smittenS This user is from outside of this forum
                                new smittenS This user is from outside of this forum
                                new smitten
                                wrote last edited by
                                #15

                                Also I want to highlight this excellent comment by Yumechi about fingerprinting and de-anonymization risks.

                                https://socialhub.activitypub.rocks/t/fep-07d7-a-custom-url-scheme-and-web-based-protocol-handlers-for-linking-to-activitypub-resources/3588/53

                                @SoniEx2@chaos.social @silverpill@mitra.social @julian@community.nodebb.org @rimu@piefed.social

                                silverpillS 1 Reply Last reply
                                0
                                • new smittenS new smitten

                                  Also I want to highlight this excellent comment by Yumechi about fingerprinting and de-anonymization risks.

                                  https://socialhub.activitypub.rocks/t/fep-07d7-a-custom-url-scheme-and-web-based-protocol-handlers-for-linking-to-activitypub-resources/3588/53

                                  @SoniEx2@chaos.social @silverpill@mitra.social @julian@community.nodebb.org @rimu@piefed.social

                                  silverpillS This user is from outside of this forum
                                  silverpillS This user is from outside of this forum
                                  silverpill
                                  wrote last edited by
                                  #16

                                  @smitten_ Do you know what is the status of Fedlilinks? Has it been abandoned?
                                  FEP-07d7 was withdrawn, and other proposals have even less support than these two.

                                  @SoniEx2 @julian @rimu @activitypub

                                  1 Reply Last reply
                                  0
                                  • Tim ChambersT Tim Chambers

                                    @julian I write about this here: near zero mobile browser support but strong desktop browser support- and I suggest a JavaScript fallback for the others …. https://www.timothychambers.net/2025/06/24/the-seven-deadly-fediverse-ux.html

                                    RimuR This user is from outside of this forum
                                    RimuR This user is from outside of this forum
                                    Rimu
                                    wrote last edited by
                                    #17

                                    @tchambers @julian @silverpill I put together a prototype, using web+ap.

                                    Here’s a video demo - https://peertube.wtf/w/r8M4KpS6yLd9H2r2oPAs9M

                                    The workflow is a wee bit clunky, with the browser popping up things more than I'd like, but it works.

                                    silverpillS julianJ new smittenS julianJ 4 Replies Last reply
                                    1
                                    • RimuR Rimu

                                      @tchambers @julian @silverpill I put together a prototype, using web+ap.

                                      Here’s a video demo - https://peertube.wtf/w/r8M4KpS6yLd9H2r2oPAs9M

                                      The workflow is a wee bit clunky, with the browser popping up things more than I'd like, but it works.

                                      silverpillS This user is from outside of this forum
                                      silverpillS This user is from outside of this forum
                                      silverpill
                                      wrote last edited by
                                      #18

                                      @rimu @tchambers @julian

                                      Neat.

                                      @smitten_ Check it out

                                      1 Reply Last reply
                                      0
                                      • RimuR Rimu

                                        @tchambers @julian @silverpill I put together a prototype, using web+ap.

                                        Here’s a video demo - https://peertube.wtf/w/r8M4KpS6yLd9H2r2oPAs9M

                                        The workflow is a wee bit clunky, with the browser popping up things more than I'd like, but it works.

                                        julianJ This user is from outside of this forum
                                        julianJ This user is from outside of this forum
                                        julian
                                        wrote last edited by
                                        #19

                                        rimu@mastodon.nzoss.nz what happens if a browser that doesn’t understand protocol handlers encounters this scheme?

                                        1 Reply Last reply
                                        0
                                        • Tim ChambersT Tim Chambers

                                          @julian I write about this here: near zero mobile browser support but strong desktop browser support- and I suggest a JavaScript fallback for the others …. https://www.timothychambers.net/2025/06/24/the-seven-deadly-fediverse-ux.html

                                          new smittenS This user is from outside of this forum
                                          new smittenS This user is from outside of this forum
                                          new smitten
                                          wrote last edited by
                                          #20

                                          @tchambers@indieweb.social @julian@community.nodebb.org You're absolutely right about the mobile browsers sadly, but support on mobile apps is good. The UX there is better than it is on desktop browsers too, because it can be registered in the app manifest and doesn't require complicated approval and handler selection flows. People are also more familiar with links that look a certain way opening in their related app, it's just that they expect the behavior at the host level instead of the protocol level.

                                          1 Reply Last reply
                                          0

                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post