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

sftp-push-sync

v4.2.0

Published

SFTP sync tool for my Hugo projects (local to remote, with hash cache)

Downloads

1,175

Readme

sftp-push-sync

Reliable local-to-remote SFTP synchronization for websites and other project directories. The package mirrors a local directory to an SFTP server, uploads new and changed files, removes remote files that no longer exist locally, and can clean up empty remote directories.

Install

npm install --save-dev sftp-push-sync

Or install it globally:

npm install --global sftp-push-sync

Configuration

Create a sync.config.json in your project directory:

{
  "connections": {
    "staging": {
      "host": "sftp.example.net",
      "port": 22,
      "user": "sftp-user",
      "password": "do-not-commit-this-file",
      "workerUpload": 3,
      "workerList": 5,
      "sync": {
        "localRoot": "public",
        "remoteRoot": "/website/"
      },
      "sidecar": {
        "localRoot": "sidecar-local",
        "remoteRoot": "/sidecar/",
        "uploadList": [],
        "downloadList": []
      }
    }
  },
  "parallelScan": true,
  "cleanupEmptyDirs": true,
  "exclude": ["**/.DS_Store", "**/.git/**", "**/node_modules/**"],
  "logFile": ".sftp-push-sync.{target}.log"
}

Keep credentials out of public repositories. The password field is retained for compatibility; use a secret manager or the system keychain for production workflows.

Usage

# Normal synchronization
sftp-push-sync staging

# Show the plan without changing the server
sftp-push-sync staging --dry-run

# Run sidecar transfers together with synchronization
sftp-push-sync staging --sidecar-upload
sftp-push-sync staging --sidecar-download

# Run only sidecar transfers
sftp-push-sync staging --skip-sync --sidecar-upload
sftp-push-sync staging --skip-sync --sidecar-download

# Check server support for resumable uploads and rename operations
sftp-push-sync staging --check-resume-support

The CLI also supports --verbose, --laconic, and --size-only for output and comparison control.

How it works

The sync engine scans local and remote files, compares content using configured rules and cached hashes, creates a synchronization plan, prepares remote directories, applies changes, and cleans up empty directories. Uploads use temporary files in the target directory and replace the target only after a successful transfer. Recovery state is kept for interrupted long-running jobs.

Relative local paths are resolved relative to the directory containing sync.config.json. Remote paths are resolved on the SFTP server.

VeloSync desktop app

VeloSync is the Electron desktop application built on the same sync engine. It provides structured progress views, connection and group management, job history, dry runs, connection testing, sidecar controls, and macOS, Windows, and Linux releases.

Documentation:

License

GPL-3.0-or-later