Skip to content

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

License

Notifications You must be signed in to change notification settings

joehand/web-to-dat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web2Dat

Currently Outdated. Please check out url-dat for now (puts a single url into a Dat).

Clone a (static) website, create hash, and share via dat (optional)

Usage

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published