MCPcopy Index your code
hub / github.com/webtorrent/instant.io

github.com/webtorrent/instant.io @main sqlite

repository ↗ · DeepWiki ↗
11 symbols 20 edges 7 files 0 documented · 0%
README

Instant.io

Streaming file transfer over WebTorrent (torrents on the web)

travis javascript style guide

Download/upload files using the WebTorrent protocol (BitTorrent over WebRTC). This is a beta.

Powered by WebTorrent, the first torrent client that works in the browser without plugins. WebTorrent is powered by JavaScript and WebRTC. Supports Chrome, Firefox, Opera (desktop and Android). Run localStorage.debug = '*' in the console and refresh to get detailed log output.

Install

If you just want to do file transfer on your site, or fetch/seed files over WebTorrent, then there's no need to run a copy of instant.io on your own server. Just use the WebTorrent script directly. You can learn more at https://webtorrent.io.

The client-side code that instant.io uses is here.

Run a copy of this site on your own server

To get a clone of https://instant.io running on your own server, follow these instructions.

Get the code:

git clone https://github.com/webtorrent/instant.io
cd instant.io
npm install

Modify the configuration options in config.js to set the IP/port you want the server to listen on.

Copy secret/index-sample.js to secret/index.js and update the options in there to a valid TURN server if you want a NAT traversal service (to help peers connect when behind a firewall).

To start the server, run npm run build && npm start. That should be it!

Tips

  1. Create a shareable link by adding a torrent infohash or magnet link to the end of the URL. For example: https://instant.io#INFO_HASH or https://instant.io/#MAGNET_LINK.

  2. You can add multiple torrents in the same browser window.

License

MIT. Copyright (c) WebTorrent, LLC.

Core symbols most depended-on inside this repo

downloadTorrent
called by 2
client/index.js
init
called by 1
client/index.js
onHashChange
called by 1
client/index.js
getRtcConfig
called by 1
client/index.js
onFiles
called by 1
client/index.js
isTorrentFile
called by 1
client/index.js
seed
called by 1
client/index.js
updateSpeed
called by 1
client/index.js

Shape

Function 11

Languages

TypeScript100%

Modules by API surface

client/index.js11 symbols

Dependencies from manifests, versioned

browserify17.0.1 · 1×
compression1.8.1 · 1×
cors2.8.6 · 1×
create-torrent5.0.9 · 1×
date-fns2.30.0 · 1×
debug4.4.3 · 1×
drag-drop7.2.0 · 1×
escape-html1.0.3 · 1×
express4.20.0 · 1×
husky8.0.3 · 1×
jszip3.10.1 · 1×
nodemon3.1.14 · 1×

For agents

$ claude mcp add instant.io \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact