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 🙏

© 2026 – Pkg Stats / Ryan Hefner

borg-anchor

v0.0.7

Published

Borg backups with Bitcoin timestamping - your data lives on forever

Readme

borg-anchor

npm version License: AGPL-3.0

Borg backups with Bitcoin timestamping. Your data lives on forever.

Overview

borg-anchor combines BorgBackup (deduplicating archiver) with Bitcoin timestamping to create backups with cryptographic proof of existence.

Your Data → Borg Backup → Bitcoin Anchor → Immortal Proof

Features

  • Deduplication - Only store changes, not duplicates
  • Compression - Efficient storage with lz4/zstd
  • Encryption - Optional AES-256 encryption
  • Bitcoin Timestamping - Immutable proof your backup existed
  • Chained Proofs - Each backup linked to previous via UTXO chain

Installation

npm install -g borg-anchor

Prerequisites

Quick Start

# Initialize a new backup repository
borg-anchor init ~/backups

# Configure your Bitcoin key
cd ~/backups
git config nostr.privkey <your-hex-privkey>

# Create your first backup
borg-anchor backup ~/mydata --name first-backup

# View all projects and backups
borg-anchor info

# List backups in current project
borg-anchor list

# Verify a backup is anchored
borg-anchor verify first-backup

# Restore a backup
borg-anchor restore first-backup /tmp/restore

Commands

| Command | Description | |---------|-------------| | info | Dashboard of all projects (CLI) | | dashboard | Web dashboard (localhost:3077) | | init [path] | Initialize borg repo and config | | backup <source> | Create backup and anchor on Bitcoin | | list | List backups and trail status | | verify <archive> | Verify backup is anchored | | restore <archive> [dest] | Restore backup to destination | | show | Show config and trail status |

Options

Init Options

| Option | Default | Description | |--------|---------|-------------| | --repo <name> | repo | Borg repository directory name | | --encryption <type> | none | none, repokey, repokey-blake2 | | --network <net> | tbtc4 | btc (mainnet) or tbtc4 (testnet) |

Backup Options

| Option | Default | Description | |--------|---------|-------------| | --name <name> | backup-YYYY-MM-DD | Archive name | | --no-anchor | - | Skip Bitcoin anchoring | | --dry | - | Dry run (don't broadcast) |

How It Works

  1. Borg creates a deduplicated backup with a unique fingerprint (SHA-256)
  2. The fingerprint is anchored on Bitcoin via a chained UTXO trail
  3. Anyone can verify the backup existed at the anchored time
┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│ Your Files  │ ──▶ │ Borg Backup │ ──▶ │  Bitcoin TX │
│             │     │ fingerprint │     │  timestamp  │
└─────────────┘     └─────────────┘     └─────────────┘

Files

After initialization, your backup directory contains:

~/backups/
├── .borg-anchor.json   # Configuration
├── .blocktrail.json    # Bitcoin trail state
├── .git/               # Git repo (holds keys)
└── repo/               # Borg repository

Projects are also registered globally for the dashboard:

~/.borg-anchor/
└── projects.json       # List of all borg-anchor projects

Verification

To verify a backup:

# Get the fingerprint
borg info ~/backups/repo::my-backup | grep fingerprint

# Check it's anchored
borg-anchor verify my-backup

The fingerprint in your backup must match the fingerprint recorded on Bitcoin.

Networks

| Network | Flag | Use Case | |---------|------|----------| | tbtc4 | --network tbtc4 | Testing (free, default) | | btc | --network btc | Production (real Bitcoin) |

License

AGPL-3.0

Links