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

wdoublesync_cli

v1.0.1

Published

CLI tool built on the wdoublesync library to sync local folders to Walrus decentralised storage on the Sui network. Stores versioned gzip-compressed snapshots and diffs inside an EndlessVector on-chain object. Supports Seal encryption, manifest-based fast

Readme

wdoublesync cli

CLI tool to sync local folders to Walrus decentralised storage on the Sui network.

Built on top of the wdoublesync library.

Each push stores a versioned, gzip-compressed snapshot (or diff) inside an EndlessVector on-chain object. Any past version can be restored at any time with pull. Folders can optionally be encrypted with Seal.

Installation

pnpm install
# make the binary globally available (optional)
pnpm link --global

Usage

wdoublesync push [vector-id] [options]   Sync current folder to a vector (creates one if no id given)
wdoublesync pull <vector-id> [options]   Restore vector contents to the current folder
wdoublesync info <vector-id> [options]   Show vector metadata and local sync status
wdoublesync watch <vector-id> [options]  Watch folder and auto-push on changes, auto-pull on remote updates

Options

| Flag | Description | |---|---| | --chain <name> | Chain: mainnet, testnet, devnet, localnet (default: testnet) | | --key <suiprivkey> | Sui private key (or set WDOUBLESYNC_KEY env var) | | --phrase <mnemonic> | Mnemonic phrase instead of a raw key | | --version <n> | Version to restore (pull only, default: latest) | | --exclude <p1,p2> | Extra exclude patterns (comma-separated) | | --no-compress | Disable gzip compression | | --manifest | Write/use .wdoublesync manifest for faster change detection | | --force-snapshot | Push a full snapshot regardless of prior history (repairs a corrupt vector) | | --poll-interval <s> | watch: seconds between remote version checks (default: 2) | | --debounce <ms> | watch: quiet period in ms before pushing after a local change (default: 1000) | | --push-only | watch: disable auto-pull | | --pull-only | watch: disable auto-push | | --help | Show help |

Authentication

Supply a signing key in one of three ways (checked in order):

  1. --key suiprivkey1...
  2. --phrase "word1 word2 ..."
  3. WDOUBLESYNC_KEY environment variable

pull and info work without a key for public (unencrypted) vectors. A key is required for Seal-encrypted vectors and for any push.

Examples

Push current folder (first time)

cd my-project
wdoublesync push --chain testnet --key suiprivkey1...
# prints the new vector id, e.g.:
#   created: 0xabc123...
#   version 1 pushed (full snapshot, gzip compressed)

Push an update

wdoublesync push 0xabc123... --chain testnet --key suiprivkey1...
# version 2 pushed (diff, gzip compressed)

Pull the latest version into the current folder

mkdir restored && cd restored
wdoublesync pull 0xabc123... --chain testnet

Pull a specific version

wdoublesync pull 0xabc123... --chain testnet --version 1

Inspect a vector without touching the local folder

wdoublesync info 0xabc123... --chain testnet

Fast incremental pushes with a manifest

wdoublesync push 0xabc123... --chain testnet --key suiprivkey1... --manifest
# subsequent pushes are skipped when nothing has changed locally

Watch a folder (auto push + pull)

wdoublesync watch 0xabc123... --chain testnet --key suiprivkey1...
# pushes local changes 1 s after the last edit
# pulls remote updates every 2 s
# Ctrl-C to stop

Tune the timing:

wdoublesync watch 0xabc123... --debounce 3000 --poll-interval 5

Watch in push-only or pull-only mode:

wdoublesync watch 0xabc123... --push-only   # no auto-pull
wdoublesync watch 0xabc123... --pull-only   # no auto-push (read-only mirror)

Repair a corrupt vector with a force snapshot

If a diff patch was pushed against a stale base (e.g. a race condition in watch), subsequent pulls will fail. Fix it by pushing a new full snapshot:

wdoublesync push 0xabc123... --chain testnet --key suiprivkey1... --force-snapshot
# skips chain replay and pushes the current folder as a self-contained full snapshot
# restore() will recover from this snapshot, skipping any corrupt diffs before it

How it works

  1. push — scans the current directory, computes a tree hash, and compares it against the last stored version. If changes are detected, a compressed diff (or full snapshot on the first push) is uploaded to Walrus and appended to the EndlessVector on-chain.
  2. pull — reads the requested version from the EndlessVector, decrypts it if Seal-encrypted, and writes only changed files to disk. Files absent from the stored version are deleted.
  3. info — reads EndlessVector metadata from the chain (version count, binary size, history) and checks whether the local folder matches any stored version.
  4. watch — combines push and pull in a loop. A filesystem watcher triggers a debounced push on local changes. A poll interval checks the remote vector for new versions and pulls them if found. Push and pull never run concurrently.

Default excludes

The following are always excluded from snapshots: node_modules, .git, .env, .DS_Store, .wdoublesync, pnpm-lock.yaml, package-lock.json. Add more with --exclude.

Dependencies

| Package | Role | |---|---| | @fizzyflow/wdoublesync | Folder-diff / snapshot layer | | @fizzyflow/doublesync | Core CDC store and snapshot primitives | | @fizzyflow/endless-vector | On-chain EndlessVector (Sui + Walrus + Seal) | | suidouble | Sui client / key management |