npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

backer

v0.0.0

Published

Distributed backup / file mirroring tool

Downloads

14

Readme

backer

wip distributed backup / file mirroring tool

Support via Gittip

Idea

Mirror your files between all your computers and servers, so when a harddrive breaks or a computer gets stolen you don't lose anything.

Like bittorrent sync, but open source and in node.js, so it runs on SmartOS too.

Like dropbox, but stores your data only on your machines. No third party - except possibly internet providers - involved.

Associated projects

Possible features

  • revisions
  • webgui
  • public sharing
  • collaborative live editing? maybe just using the file system limits too much

Data structure

The filesystem is represented as a merkle tree, so backer can efficiently figure out what files changed.

Replication

On connection sync using merkle trees, then maybe use scuttlebutt and only send file diffs.

Problem: efficient tree diffing

Encryption

Since backer is only used for transferring data and never stores it on any server/computer but the user's, only transfor needs to be encrypted.

Encrypting your own harddrive is out of scope and there's plenty of tools that do this, one popular being truecrypt.

  • Maybe public/private key cryptography?

JS api

For maximum composability the transport part of the api will just be a duplex stream that is to be piped to another backer's duplex stream. This way it works over tcp, websockets, in memory, or over any another network or streaming interface.

var a = backer(__dirname + '/a').createStream();
var b = backer(__dirname + '/b').createStream();
a.pipe(b).pipe(a);

Over tcp it would look like this:

// computer A
var backer = require('backer');

var back = backer(__dirname);
net.createServer(function(con) {
  con.pipe(back.createStream()).pipe(con);
}).listen(PORT);

// computer B
var backer = require('backer');
var reconnect = require('reconnect');

var back = backer(__dirname);
reconnect(function(con) {
  con.pipe(back.createStream()).pipe(con);
}).listen(PORT);

There will be events emitted on the backer instance, which can then for example be fed to a web frontend.

Resources

Possible dependencies

Collaborators

There's a lot still to be figured out, so if you either are a mad scientist that juggles chainsaws while writing distributed systems, or want to be come one, this is the right place for you!

Plus, there's going to be need for designs, blog posts, a public facing website, etc.!

License

MIT