Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Clone a website and share with dat (currently outdated).

Awesome Lists containing this project

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