commit 582a4c433705edf33991ab6bf28cd82ba04ec541 Author: Carlos Date: Sun Oct 16 22:00:06 2016 +0300 Initial Commit diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 0000000..e4af398 --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,88 @@ +# Author of CacheP2P: + +- Carlos Guerrero (carlos@carlosguerrero.com) + +# All the Authors behind WebTorrent: + +- Feross Aboukhadijeh (feross@feross.org) +- John Hiesey (jhiesey@cs.stanford.edu) +- Brad Berger (brad@bradb.net) +- Matt Buresh (mattburesh@gmail.com) +- cagedwisdom (cagedwisdom@tricorder.org) +- Charles Julian Knight (charles@rabidaudio.com) +- Maurits van Mastrigt (maurits@nerdieworks.nl) +- Shyam S Kumar (shyam.salim.kumar@outlook.com) +- fisch0920 (fisch0920@gmail.com) +- iShift (shift.rus@gmail.com) +- Bob Ren (bob@codecademy.com) +- gtuk (gtuk@hush.ai) +- thammin (thammin@live.co.uk) +- Valérian Galliat (val@codejam.info) +- charlescharles (charlescharles@users.noreply.github.com) +- opfl (openthefrog@gmail.com) +- Chris (abody.97@gmail.com) +- Astro (astro@spaceboyz.net) +- Sindre Sorhus (sindresorhus@gmail.com) +- Josh Duff (me@JoshDuff.com) +- Anthony MOI (anthony@totems.co) +- Joseph Dykstra (josephdykstra@gmail.com) +- mathiasvr (mathiasvr@gmail.com) +- grunjol (grunjol@argenteam.net) +- Liam Curry (liam@curry.name) +- Francisco Pinzon (hello@pacho.me) +- Jake Fulton Buckle (jacobafb@gmail.com) +- alexeisavca (savca.alexei@gmail.com) +- Olivier Lalonde (olalonde@gmail.com) +- Johnny Tong (mailbox@johnnytong.com) +- Mark Vayngrib (mark.vayngrib@lablz.com) +- Tristan Davies (github@tristan.io) +- Eric Wooley (ericwooley@gmail.com) +- Afshin Mehrabani (afshin.meh@gmail.com) +- Josip Janžić (josip.janzic@gmail.com) +- Bigard Florian (florian.bigard@gmail.com) +- OlaviSau (olavisau@gmail.com) +- Simba Zhang (solderzzc@gmail.com) +- Gilles De Mey (gilles.de.mey@gmail.com) +- Linus Unnebäck (linus@folkdatorn.se) +- André Stein (stivekx@gmail.com) +- Joseph Frazier (joseph@onsip.com) +- Yousef Amar (yousefamar@gmail.com) +- Lucas Pelegrino (lucas.wxp@gmail.com) +- Yoann Ciabaud (yoann@atacma.agency) +- Joseph Frazier (1212jtraceur@gmail.com) +- Ivan Vučica (ivan@vucica.net) +- ReadmeCritic (frankensteinbot@gmail.com) +- Anders D. Johnson (adjohnson916@users.noreply.github.com) +- vinz243 (vinz243@gmail.com) +- Diego Rodríguez (diegorbaquero@gmail.com) +- Aram Drevekenin (grimsniffer@gmail.com) +- andreapaiola (andrea.paiola@gmail.com) +- Hrvoje Šimić (me@shime.io) +- Romain Beaumont (romain.rom1@gmail.com) +- Zander Mackie (zander@skilledup.com) +- Wim (wim@sitebase.be) +- William Blankenship (william.jblankenship@gmail.com) +- James Halliday (mail@substack.net) +- Bazyli Brzóska (bazyli.brzoska@gmail.com) +- Liam Gray (liam.r.gray@gmail.com) +- Mike (kenr.mk@gmail.com) +- Autarc (autarc@gmail.com) +- DC (dcposch@dcpos.ch) +- Manuel Simoni (msimoni@gmail.com) +- Diego Rodríguez Baquero (diegorbaquero@gmail.com) +- Tercus (Terces86@gmail.com) +- Lunik (guillaume.lunik@gmail.com) +- Ajain Vivek (ajainvivek07@gmail.com) +- Jonathan Harper (jharper@eecs.berkeley.edu) +- Miguel Freitas (miguelfreitas@users.noreply.github.com) +- Sebastian Mayr (github@smayr.name) +- v0dy (k4r70ng@gmail.com) +- Colin Steele (cvillecsteele@gmail.com) +- Mathias Rasmussen (mathiasvr@gmail.com) +- darkenvy (darkenvy6@gmail.com) +- Amila Welihinda (amilajack@gmail.com) +- Yoann Ciabaud (yoann@sonora.io) +- michal (mich.spicka@gmail.com) +- ferrolho (henriqueferrolho@gmail.com) +- Henrique Ferrolho (ferrolho@users.noreply.github.com) +- Facundo Zaldo (FaCuZ@users.noreply.github.com) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f78e33c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# CacheP2P Version History + +## v0.1.0 - 2016-10-16 + +- First public prototype release + +## Previous versions + +We did not maintain a changelog for versions prior to v0.1.0. The initial release of WebTorrent was on 2016-10-16. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5c6071d --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) WebTorrent, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..2f76208 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +

+
+
+ P2PCache +
+
+

+ +

The P2P Cache for the new Internet.

+ +
+ +**CacheP2P** is a [caching][https://en.wikipedia.org/Cache] mechanism torrent client for **node.js** and the **browser**. YEP, +THAT'S RIGHT. THE BROWSER. It's written completely in JavaScript – the language of the web +– so the same code works in both runtimes. + + +### License + +MIT. Copyright (c) [CacheP2P, LLC](https://www.CacheP2P.com) diff --git a/index.js b/index.js new file mode 100644 index 0000000..ae22fa8 --- /dev/null +++ b/index.js @@ -0,0 +1,4 @@ +var WebTorrent = require('webtorrent'); +var sha = require('simple-sha1') +var client = new WebTorrent() +var Buffer = require('safe-buffer').Buffer \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..fb124d3 --- /dev/null +++ b/package.json @@ -0,0 +1,70 @@ +{ + "name": "cachep2p", + "description": "The Peer to Peer for the Masses", + "version": "0.1.0", + "author": { + "name": "Carlos Guerrero", + "email": "carlos@carlosguerrero.com", + "url": "https://cachep2p.com" + }, + "browser": {}, + "browserify": { + "transform": [ + "package-json-versionify" + ] + }, + "bugs": { + "url": "https://github.com/guerrerocarlos/cachep2p/issues" + }, + "dependencies": { + "safe-buffer": "^5.0.1", + "simple-sha1": "^2.0.8", + "webtorrent": "git+https://github.com/guerrerocarlos/webtorrent.git" + }, + "devDependencies": { + "browserify": "^13.0.1", + "uglifyjs": "^2.4.10" + }, + "engines": { + "node": ">=4" + }, + "homepage": "https://cachep2p.com", + "keywords": [ + "cache", + "p2p", + "web2web", + "cachep2p", + "p2pcache", + "web2webcache", + "cacheweb2web", + "bittorrent", + "bittorrent client", + "download", + "mad science", + "p2p", + "peer-to-peer", + "peers", + "streaming", + "swarm", + "torrent", + "web torrent", + "webrtc", + "webrtc data", + "webtorrent" + ], + "license": "MIT", + "main": "index.js", + "repository": { + "type": "git", + "url": "git://github.com/guerrerocarlos/cachep2p.git" + }, + "scripts": { + "build": "browserify -s CacheP2P -e ./ | uglifyjs -c warnings=false -m > cachep2p.min.js", + "build-debug": "browserify -s CacheP2P -e ./ > webtorrent.debug.js", + "size": "npm run build && cat cachep2p.min.js | gzip | wc -c", + "test": "standard && node ./bin/test.js", + "test-browser": "zuul -- test/*.js test/browser/*.js", + "test-browser-headless": "zuul --electron -- test/*.js test/browser/*.js", + "test-browser-local": "zuul --local -- test/*.js test/browser/*.js" + } +}