• futurehoodOP
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Hey everyone, I’m the dev. I’ve got a couple of points I’m looking for feedback on.

    1. Is the system being conveyed clearly? I.e. are you able to understand the functionality on offer? It’s a complicated stack, but also very simple once understood. If not, what are you confused about?

    2. What sort of DWAs would you be interested in using? At the moment there is a mostly functional text messaging app that will be stable in the coming days. I’ll be adding file transfers and video/audio calls there soon as well. I’m thinking about doing a private social network next, or maybe a streaming service that requires no infrastructure. Let me know if you have any input or requests!

    • tortiscu@feddit.de
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      I have a couple of questions:

      1. Could you not use animated graphics?
      2. If this is completely p2p, does it work for people behind a NAT or without IPv4 or IPv6, respectively?
      3. How does asynchronous communication work? Consider the following: My phone is offline, I send a message. Later I connect to the internet, but the recipient is offline. I go offline again, then the recipient comes online. With traditional messaging systems, this has always been working.
      4. Would DWAs that target a broader audience be possible? It seems to me like this is only good for instant messaging. Can I build a video hoster, a social media platform, a lemmy or mastodon alternative as a DWA? If so: How does that work?
      • futurehoodOP
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        Thanks for the great questions

        1. My sincere apologies, I intended to wrap all the animations in a prefers-reduced-motion media query and never remembered to get to it. That means they will not play if you have an OS or browser reduced motion setting activated. I will try to get that done tonight.

        2. I would not recommend running the DCNT server wide open on the public Internet, definitely yet, probably forever. It’s fine on local networks you trust, say for a synchronized life planner/organizer DWA running within your home network, once that exists. I highly recommend running the server behind a VPN or something else, Cloudflare Tunnel would work if you trust them. If it’s a VPN it will need to support either port-forwarding or have a public IP. NAT is no thing then. The users connecting will be able to get through without a public IP themselves, it’s only a requirement from one side.

        3. Asynchronous messaging is possible in a few different ways, but it will require a host DCNT server that is always online, say a browser tab on a home PC running 24/7. Use a connected DWA to send a message to the host with the intended recipient address attached, and then once they become available by connecting to the host, the message gets delivered. That’s the simplest way to accomplish it, I think. If you use this type of architecture, you could provide asynchronous messaging for XXX amount of users simultaneously, depending on the WebRTC connection limit in the host browser. DeCent Messenger does not provide this functionality by design, though I do intend for it to eventually allow you to queue messages for users who are presently offline within your own DWA UI.

        4. Yes, though how it gets tackled depends on what the broader audience is after. Private, direct, peer-to-peer stuff can be built today. For example, someone who likes using Facebook to connect with 20-30 friends, and doesn’t care about the public functionality. An app could be built to serve them today. Everything gets downloaded from their peers for offline access, and the clients sync when both online. The same goes for smaller-scale, really, anything… Someone who might set up a PeerTube instance for their group of friends, this can be provided as a DWA today. The benefit over the existing tech is that instead of needing to install a separate program/server for each of these specialized apps (which is sometimes fairly technical), the user just opens DeCent-Core and pulls in a web app that provides the same experience, immediately. More public-facing sites like Lemmy, or Mastodon instances are possible too, but the question becomes how large of an audience can they serve on the basic, P2P, directly-connected infrastructure. A Lemmy clone with only 20 users might not be very fun to use. The short answer to whether DWAs can bridge the gap to larger audiences (traffic wise) or not is yes, but I can’t exactly say how it will manifest at this point. DWAs allow web apps to implement, basically any sort of network topology possible, so there is a lot of room for evolution there. I’m very excited to see what people will build!

        • tortiscu@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          So this basically reans if you want to target a larger audience or the public, or have any kind of asynchronous messaging, the hosting cost isnt zero as you promise

          • futurehoodOP
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Where are you thinking this operating cost is coming from?

            There are types of applications that can not presently be built with DWAs, but that doesn’t mean that will be the case for much longer. It’s not due to a technical impossibility, rather a lack of existing libraries to make it easily done. No one has built it yet, that’s all. I’ll get there if someone else doesn’t beat me to it.

            Here is a diagram of how asynchronous messaging can work:

            It will scale horizontally as high as the host browser will allow (in WebRTC connections), taking into account the host machine. If the connections are not persistent, and are rolling/transient, then one instance could probably serve thousands of users simultaneously.

            You can use this topology to do a lot. You’re not limited to just messaging, a Discord clone or anything group-oriented would be very simple this way, for example.

    • floofloof@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      I’d be more convinced if your documentation sounded less full of hype and had more concrete information about architecture in it. And you promising to do P2P file sharing this week, video and audio calls next week and then a social network and infrastructure-free video/audio streaming, all on your own (the week after?), suggests that you’re either an unusually productive individual or a bit inexperienced and unrealistic. We’ll have a better idea when we can see the core code.

      That said, it’s a nice idea and could be genuinely useful. I look forward to seeing more of it.

      • futurehoodOP
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Hey, thanks for the kind words. You will be seeing a lot more of it over the next month, it’s going to get pretty exciting, I think!

        I’m not sure if you’ve seen the specific project repos yet or not, but they strike a more serious tone than the main project repo or project website. If you haven’t seen these, they may have a bit more of what you’re looking for:

        Here is a WIP of the DCNT protocol overview: https://github.com/futurehood/DCNT

        Here is the DeCent-Core repo, you may be interested in looking through the User Guide if you haven’t already: https://github.com/futurehood/DeCent-Core

        Here’s a diagram of the most basic Web420 network too:

        I’m afraid you will be disappointed when you see the DeCent-Core source code, there’s nothing fancy there! It’s a simple HTTP/WSS server (Ktor/Netty) that implements the DCNT protocol, and provides a UI for managing server profiles, and installed apps. The installed apps are straight downloaded and extracted ZIP archives stored on disk - super simple. The DCNT server’s role is very small, it’s just there to connect browsers/DWAs by signaling WebRTC connections, that’s it. Once the WebRTC connection is established the DWA can disconnect from the DCNT server until it needs to signal again. If you get the gist of the DCNT protocol overview, you basically already understand the server. I know you all are waiting to see that anyway though, I’ll get it out as quickly as I can.

        I’m not going to start working on the social network or streaming service until after DeCent-Core is released. Those are just ideas I’m bouncing around too, the next DWA project from me might end up being something completely different. Getting DeCent Messenger fully-featured and finishing up the DeCent-Core refactor to drop the code are my only priorities at the moment.

        • floofloof@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Sorry for my earlier skepticism. I can see you’re serious about this and it looks promising, and I appreciate your reassurances about not being overambitious!