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

@nan0web/sync

v1.0.4

Published

High-performance site synchronization engine with remote manifests and atomic locks.

Downloads

382

Readme

🌍 Ukrainian Documentation

@nan0web/sync

High-performance site synchronization engine with remote manifests and atomic locks.

Description

The @nan0web/sync package provides a differential deployment foundation for calculating remote vs local differences using MD5 hashing, atomic locking, and remote manifests to reduce overhead during continuous deployment.

Core Features:

  • Differential Sync — only changed files are uploaded and removed files are deleted.
  • Remote Manifest — stores the directory state remotely to skip full FTP directory scanning.
  • Atomic Locking — prevents concurrent deployments.
  • Git Validation — enforces deployment order.

Installation

How to install with npm?

npm install -g @nan0web/sync

How to install with pnpm?

pnpm add -g @nan0web/sync

CLI Usage

The nan0sync command is the primary way to interact with the engine.

How to use nan0sync via CLI?

# Run live synchronization
nan0sync push

# Preview changes without uploading
nan0sync push --dry-run

# Show detailed paths, config, and FTP error codes
nan0sync push --debug

# Check status and diff preview
nan0sync status

Configuration (SyncConfig)

Sync supports hierarchical config loading (sync.config.js). It reads default, env, and local configs.

How to create sync.config.js?

export default {
  adapter: 'ftp',
  source: 'dist/web',
  env: 'stage',
  host: 'nan0web.yaro.page',
  deleteRemoved: true,
  remoteManifest: true,
  lock: true,
  lockTTL: 600,
  gitCheck: true
}

API

SyncEngine

The engine executes the synchronization state machine via a generator function run().

How to use SyncEngine programmatically?

import { SyncEngine, SyncConfig } from '@nan0web/sync'
const config = new SyncConfig({
	adapter: 'ftp',
	source: 'dist/web',
	host: 'example.com',
	user: 'user',
	password: 'pwd',
	dryRun: true,
})
const engine = new SyncEngine(config)
engine.adapter.connect = async () => {} // mock to prevent test from hanging

Contributing

How to contribute? - check here

License

How to license? - ISC LICENSE file.