1.2.3 • Published 2 years ago

webtorrent-web-gui v1.2.3

Weekly downloads
-
License
-
Repository
gitlab
Last release
2 years ago

Webtorrent web gui

This project need an associated "Webtorrent express api" to work

Prop Types

Props to pass to the UI component

PropertyTypeRequired?Description
hostStringtrueThe host where you run the service. If you start the other project locally is http://localhost
portNumbertrueThe port where you run the service. If you start the other project locally is 3000
baseUrlStringtrueContains the URL for the API, example "http://localhost:3000"
remoteBooleanfalseIf true consider the API on a remote machine, and open remote link
logourlfalseIf will be passed an image this will be used as logo in the UI

Examples

Here is an example of the use of the component with the UI

import {WebTorrentGui} from 'webtorrent-web-gui';


function App() {

    return (
        <div className="App">
            <WebTorrentGui host={"http://localhost"} port={3000}/>
        </div>
    );
}

export default App;

Prop Types

Props to pass to the Linear component

PropertyTypeDescription
addTorrentDataAdd a torrent to the download list
pauseTorrentDataPause a torrent
removeTorrentDataRemove a torrent
destroyTorrentDataDelete a torrent and his data
checkStatusvoidReturn the list of the torrent and his status
getConfvoidReturn the actual configuration of the server
saveConfConfigDataSave a new configuration for the server
searchStringSearch a torrent list
getTorrentFile{id,filename}id of the file taken from checkStatus, and the name of the torrent file to download (Can be used the name of the torren or the id)

Data

magnet = Magnet of the torrent

ConfigData

downloadPath = Path of the downlaod (Default: "./Downloads/") downloadSpeed = Speed of the download (Bytes/s) uploadSpeed = Speed of the upload (Bytes/s)

Examples

Here is an example of the use of the component with the UI

import {WebTorrentHelper} from 'webtorrent-web-gui';

let client = new WebTorrentHelper({host: "http://localhost", port: 3000})
client.addTorrent({magnet: ""})

Run locally

  1. Start the project "Webtorrent express api"
  2. Run npm install
  3. Run npm run dev
1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.9.18

2 years ago

1.0.3

2 years ago

0.9.19

2 years ago

0.9.20

2 years ago

0.9.21

2 years ago

0.9.16

2 years ago

0.9.17

2 years ago

0.9.15

2 years ago

0.9.14

2 years ago

0.9.13

2 years ago

0.9.12

2 years ago

0.9.11

2 years ago

0.9.10

2 years ago

0.9.9

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.5

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago