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

@nestos/vfs-sync

v0.5.2

Published

Platform-independent file synchronization, three-way planning and recoverable operations.

Readme

@nestos/vfs-sync

Platform-independent multi-device file synchronization with zero runtime package dependencies. Includes three-way comparison, bounded text merge, canonical manifests, dataset discovery, recoverable publication, operation sequences and receipt reconciliation.

No dependency on vfs-core, drivers, UI, filesystem or HTTP packages. Hosts inject local storage, remote protocol and coordination ports. Current wire contracts follow fs-agent; session history synchronization is outside this package.

Development

git clone [email protected]:nest-agentos/vfs-sync.git
cd vfs-sync
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm build
pnpm pack

No submodules or Rust server are needed. Protocol fixtures are stored in this repository with their upstream provenance. CI uses Node.js 22.

Usage

import { encodeManifest, sha256, mergeText } from '@nestos/vfs-sync';

const bytes = encodeManifest({ format: 'fs-agent.files', version: 1, entries: [] });
const digest = await sha256(bytes);
const result = mergeText('first\nsecond\n', 'edited\nsecond\n', 'first\nupdated\n');

FileSync takes StateStore, FileLocal, FileRemote, Coordinator, an ID factory and a Scope. The host chooses project binding, direction, exclusions, delete propagation and conflict decisions. Concrete adapters must provide snapshot completeness, durable control records and conditional application; ordinary file read/write cannot substitute for those guarantees.

OperationManager persists commands before submission, retains unknown results and requires reconciliation when terminal receipts expire. Cloud publication and local application remain separate recoverable boundaries.

The runtime must provide TextEncoder, TextDecoder and structuredClone. SHA-256 uses Web Crypto when available and an equivalent portable implementation when crypto.subtle is absent. randomId() uses randomUUID or secure getRandomValues; it never falls back to Math.random.

Coordinators may supply a CoordinationGuard. In that case both local ports must implement scoped(guard) and verify ownership inside their storage transactions. Scoped instances keep nested guards without mutable ambient context; stale tasks must not write receipts, plans, files or baselines after lease takeover. No DOM or native host modules are imported by the implementation.

Source exports are used for workspace development. pnpm pack replaces them with ESM/CJS and declaration exports from publishConfig.

itookit integration

In itookit the repository is mounted at packages/vfs-sync as a Git submodule:

git submodule update --init packages/vfs-sync

Host-specific implementations stay in sync-adapters; neither core module depends on the other. See AGENTS.md for implementation invariants.