[Open Source] Web-side P2P file transfer tool, simple, safe and efficient P2P file transfer service

1. Introduction to open source projects

Xiaolukuaichuan - Online P2P file transfer tool

Xiaolu Kuaichuan is a web-side P2P file transfer tool that uses WebRTC technology to realize P2P connection and file transfer.

2. Open source agreement

Use the MIT open source license

3. Interface display

Product screenshots

picture

picture

picture

picture

4. Function Overview

Simple, safe and efficient P2P file transfer service

Xiaolu Kuaichuan is a web-side P2P file transfer tool that uses WebRTC technology to realize P2P connection and file transfer.

Simple

No need to log in, just select the file you want to send, and then send the generated download link to the other party to start the transfer.

Safety

Xiaolu Kuaichuan uses P2P technology. File data does not go to the server and is sent directly to the other party. The data is encrypted to avoid the risk of privacy leakage.

Efficient

Due to the use of P2P technology, file transfer speed will not be affected by server performance and depends entirely on the network speed of you and the other party.

major

There are no restrictions on file types, any file can be transferred as desired. All files are transferred as original files, and videos and pictures are transferred without loss of image quality.

Source: Xiaolu Kuaichuan official website

5. Technology Selection

Xiaolu Kuaichuan, an online P2P file transfer tool, uses WebSocket + WebRTC technology.

quick start

1. Get the source code

2. Install dependencies

cd server && yarn && cd ..
cd client && yarn && cd ..

3. Run server and client development servers

cd server;
npm start
# in another terminal window
cd client;
npm start

4. Open the browser

https://localhost:3000

WebSocket

Is a protocol for full-duplex communication over a single TCP connection. The WebSocket communication protocol was designated as standard RFC 6455 by the IETF in 2011, and was supplemented by RFC7936. WebSocket API has also been designated as a standard by W3C.

WebSocket makes data exchange between the client and the server simpler, allowing the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete a handshake, and a persistent connection can be created directly between the two for bidirectional data transmission.

WebRTC (Web Real-Time Communications)

It is a real-time communication technology that allows network applications or sites to establish point-to-point (Peer-to-Peer) connections between browsers without the use of intermediaries to achieve video streaming and/or audio streaming or other Transmission of arbitrary data. These standards included in WebRTC make it possible for users to create peer-to-peer data sharing and conference calls without installing any plug-ins or third-party software.

6. Source code address

https://github.com/fanchangyong/deershare?url=eflyos.zip

Guess you like

Origin blog.csdn.net/weixin_37576193/article/details/134557443