Live data from Hacker News

Show HN: I built a website to share files and messages without any server

neighbor-share.vercel.app

21–30 of 112 posts

Re: Show HN: I built a website to share files and messages without any server

#21
post #12
post #9

Earlier quoted context omitted.

I've been hosting my own pairdrop for a year now, very easy and quick to share a file between my smartphone and laptop without digging out a usb cable.

I use KDE Connect for that. Have you given it a try?

Thank you for introducing me to this! Life transferring files and holding presentations will be a lot easier from now on

Re: Show HN: I built a website to share files and messages without any server

#22
post #12

Earlier quoted context omitted.

I use KDE Connect for that. Have you given it a try?

No, I did try the Gnome equivalent a long time ago but these days I use a more minimal setup. So I'd prefer a CLI tool.

What is the Gnome equivalent? If you mean GSconnect, that's an implementation of kde connect. I think kde connect has some CLI tools, but they're not super ergonomic.

For CLI stuff, I usually just run the python http server or woof and make a QR code with the URL.

Re: Show HN: I built a website to share files and messages without any server

#23
post #13

Earlier quoted context omitted.

look at https://peerjs.com that this the project is using.

Hmm thanks, so that says: > To broker connections, PeerJS connects to a PeerServer. Note that no peer-to-peer data goes through the server; The server acts only as a connection broker. > If you don't want to run your own PeerServer, we offer a free cloud-hosted version of PeerServer. So I suppose there's still a server, but it's shared and run by two folks based on donations: https://peerjs.com/peerserver

Without data going through the server it should be pretty cheap to host, right?

Re: Show HN: I built a website to share files and messages without any server

#24

Looks good but any plans to make it open source? Similar open source solutions exist like: - https://pairdrop.net/ - https://wormhole.app/ - https://www.snapdrop.net/ How does this compare?

https://www.sharedrop.io/ as well. It's open sourced, too.

Re: Show HN: I built a website to share files and messages without any server

#26
post #15
post #11

> without involvement of any server > bypassing the need for centralized servers I don't follow this part... it's using a centralized server to serve the web app, which could easily serve JS code that steals confidential data right?

That is true, but unless you develop an application yourself, it is always coming from somewhere else. Web apps are better than native apps from a security perspective. Browsers have fairly decent built-in debugging tools that you could use to verify that data isn't being uploaded to a 3rd party. On the other hand, to do the same with a native application you would need to use a separate network protocol analyzer app…

You're extolling the virtues of web apps, but none of your points address the point that it requires centralized components. Which is an important point for something that advertises itself as P2P. Both to serve the application every time you open it and ICE servers for webrtc connection initialization every time you share a file.

A native p2p application needs to be downloaded or built once, from any place (say a git mirror) and bootstrap to its overlay network and then you're in.

Re: Show HN: I built a website to share files and messages without any server

#27

Earlier quoted context omitted.

No, I did try the Gnome equivalent a long time ago but these days I use a more minimal setup. So I'd prefer a CLI tool.

What is the Gnome equivalent? If you mean GSconnect, that's an implementation of kde connect. I think kde connect has some CLI tools, but they're not super ergonomic. For CLI stuff, I usually just run the python http server or woof and make a QR code with the URL.

What about sharing from your phone to your laptop?

Re: Show HN: I built a website to share files and messages without any server

#28

Looks good but any plans to make it open source? Similar open source solutions exist like: - https://pairdrop.net/ - https://wormhole.app/ - https://www.snapdrop.net/ How does this compare?

Yes will make it open source in future. Just need to clean the code a little bit and make few more changes.

Re: Show HN: I built a website to share files and messages without any server

#29
post #8

I looked around and couldn't find a description of the protocol by which two peers authenticate to each other/transfer files. Also, is the E2EE encryption referred to simply whatever is being used to encrypt the transport(DTLS/SRTP/etc)? or are you doing additional encryption/decryption of files? Also I'm curious like others, does this only work if no nat traversal is required? or are you leveraging public stun/turn…

WebRTC it is: https://webrtc.org/

Yes only the network layer encryption. No file encryption as it will cost client browsers a lot in case of encrypting and then decrypting that at other end.

I have written more about it here: https://dikshantraj2001.medium.com/nat-stun-turn-and-ice-466...

Currently, I am using the public STUN servers only. If the IPs are not reachable, it would show an error and won't work as setting up TURN server would mean same as a third party server saving in file and serving it over network

Re: Show HN: I built a website to share files and messages without any server

#30
post #2

A bit off-topic, but since I was looking at doing a side project with a P2P feature, would appreciate if I could pick your brain for a bit: don't you still need to run the STUN and TURN servers? Can you run those using Vercel's serverless functions?

A STUN server is required for discoverability and if still ICE candidates are not found or a negotiation can not take place, I just shows an error for now. About vercel I am not sure need to check whether it provides or not
Post reply on HN