Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joehand/web-to-dat
Clone a website and share with dat (currently outdated).
https://github.com/joehand/web-to-dat
Last synced: 16 days ago
JSON representation
Clone a website and share with dat (currently outdated).
- Host: GitHub
- URL: https://github.com/joehand/web-to-dat
- Owner: joehand
- License: isc
- Created: 2016-03-08T19:04:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-20T16:54:03.000Z (over 8 years ago)
- Last Synced: 2024-10-17T00:45:46.469Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - web-to-dat
- awesome-peer-to-peer - web-to-dat
README
# Web2Dat
**Currently Outdated**. Please check out [url-dat](https://github.com/joehand/url-dat) for now (puts a single url into a Dat).
Clone a (static) website, create hash, and share via dat (optional)
## Usage
```javascript
var web2dat = require('web-to-dat')
web2dat('http://google.com', function (err, outDir, dat) {
if (err) throw err
console.log('Site scraped to:', outDir)
console.log('Dat link:', dat.link)// Start sharing via Dat (not shared by default)
dat.joinSwarm(function (err) {
if (err) throw err
console.log('Sharing Link')
})
})
```### Uses
* Use as a p2p CDN?
* Make a new browser that only browses static sites via p2p
* Mirror all github pages