New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dat-mirror

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-mirror

`dat-mirror` is a service to persistently mirror your [dat](https://datproject.org/) p2p websites, intended to run on a permanently connected computer like a raspberry pi, so your sites stay available if you close your laptop, or if you just want to seed

  • 0.9.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

dat-mirror

dat-mirror is a service to persistently mirror your dat p2p websites, intended to run on a permanently connected computer like a raspberry pi, so your sites stay available if you close your laptop, or if you just want to seed someone elses site. It also serves your sites over an http mirror so anyone can see it, even on mobile.

This library uses the discovery-swarm p2p discovery package to make connecting to your service from anywhere easy, avoiding any port forwarding or any reliance on a third party server.

Usage

Start the service on your persistent connection computer / raspberry pi, and note the mirror key
$ npm install -g dat-mirror
$ dat-mirror serve
> Your mirror key is <xxxxxxx>
Mirror any dat you are authoring from your client machine

If the first run, you will be asked for the mirror key from the server side step to connect to your service.

$ npm install -g dat-mirror
$ dat-mirror share <dat-key>
> Enter Mirror Key: <xxxxxxx>
> dat://<dat-key> now mirrored
> Also available at http://<yourserver.tld>/<dat-key>

Now your dat will be hosted by your server, and kept up to date as your site changes.

If you want to ensure the entire dat has synced before you close your laptop, pass the --wait flag to watch the sync state.

Todo

  • Make client a background daemon so if the server isn't currently available it will eventually connect and mirror. In the meantime add a dat-mirror sync call
  • Convert terminal gui into a web frontend, currently if you systemd start the server you can never see the status

FAQs

Package last updated on 12 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc