Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

hsync-common

Latest version: v1.2.0b1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: albertsdk
2 Stars
1 Forks
33 Versions
2.8K Downloads
Python Repo language

Scan summary

hsync-common was last scanned on 28 Nov 2026 at version 1.2.0b1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 1.2.0b1.
  • Downloads: 2,847 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.0b1 LATEST 28 Nov 2026 No rules fired
1.1.15 21 Nov 2026 No rules fired
1.1.12 21 Nov 2026 No rules fired
1.1.13 20 Nov 2026 Not shown
1.1.11 20 Nov 2026 Not shown

No rules fired in 1.2.0b1

Findings

Findings for v1.2.0b1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.2.0b1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

HSYNC Common Library

hsync-common is the shared foundation that all other HSYNC projects build upon — data formats, compression, file exclusion rules, and security utilities. You don't install or run it directly; it's a library used by the client, server and desktop application.

It is also the single source of truth for the open, versioned wire protocol: the shared models, JSON-Schema builders and committed fixtures live here (hsync_common.protocol, docs/protocol.md, docs/p2p-protocol.md), so every implementation speaks the same contract. The library sends no telemetry or analytics anywhere.

👉 Operational Advisory: integrators are strongly advised to validate the library's behavior against their own data before relying on it in production.


License: BSD 3-Clause CI Release PyPI Python 3.12+


Key modules

Module Purpose
hsync_common.models Unified File, Dir, Symlink, Event, SyncAction, TombstoneStore, delta transfer models
hsync_common.protocol Versioned wire protocol: versions, capabilities, WS auth, LAN election, pairing, JSON-Schema builders, fixtures
hsync_common.delta Rsync-style delta transfer algorithm: rolling checksum, block matching, decision heuristics
hsync_common.hashing SHA-256 computation, adaptive chunk sizing, hex digest validation
hsync_common.compression Zstandard helpers, PRECOMPRESSED_EXTENSIONS, should_compress
hsync_common.permissions Octal permission SSOT, remote permission sanitization
hsync_common.ignore .hsyncignore gitignore-style matcher (IgnoreMatcher)
hsync_common.path_validation Path safety helpers, remote-path validators
hsync_common.constants Shared constants (HSYNCKEEP_FILENAME, HSYNCIGNORE_FILENAME, HSYNCFOLDER_FILENAME, …)
hsync_common.ssl_utils Shared SSL primitives, cert fingerprinting
hsync_common.logger BaseInterceptHandler, log rotation helpers
hsync_common.clock NTP-style clock offset computation
hsync_common.format Human-readable bytes/duration formatting
hsync_common.env Environment-variable parsing helpers
hsync_common.text Text utilities (e.g. escape_loguru_markup)
hsync_common.labels ActionLabel enum, log-label colorization, two-level origin rule ([LOCAL …] / [REMOTE …])
hsync_common.runtime Container runtime detection (Docker, Podman, Kubernetes), TTY detection, cgroup resource limits
hsync_common.exceptions HSyncError base class
hsync_common.time_utils Timestamp formatting/parsing SSOT

Benchmarks

Hot-path micro-benchmarks live in bench/ — L1 only (pure in-process measurement), because the library has no process or transport of its own. Five scripts cover hashing, compression, delta transfer, .hsyncignore matching and model serialization; each accepts --count N and --json-out FILE.

cd hsync-common && .venv/bin/python bench/bench_hashing.py --count 2000

See bench/README.md for the scope of each script, the shared helpers and the measurement methodology.

Documentation

The most-used guides are listed below; docs/README.md is the complete documentation index.

Document What it covers
Usage How to integrate hsync-common as a dependency
Models Shared data models reference
Utilities Cross-cutting utilities guide
Protocol Versioned wire protocol reference
p2p Protocol Authoritative p2p rendezvous, master-election, pairing and security specification
Rdv/1 Protocol The rdv/1 rendezvous channel as mirrored for the client
Authentication Shared authentication contracts: CID format, message schema, version negotiation
Ignore file .hsyncignore syntax, IgnoreMatcher layers, and API
Android Mirroring How Python models are mirrored in Kotlin
Internal Architecture Shared models, utilities, and how they fit the HSYNC ecosystem
Architecture Decision Records Why the stable, cross-project decisions were made
Contributing Development setup and contribution guidelines
Contributors People who contribute to HSYNC
Report an issue Open development and bug tracking
Security Policy Supported versions and how to report vulnerabilities

Associated Ecosystem Components

The other components of the HSYNC ecosystem:

  • HSYNC Main — Umbrella repository and project overview.
  • HSYNC Desktop — Desktop GUI front-end.
  • HSYNC Client — Reference client agent: the hsync CLI and its sync engine.
  • HSYNC Server — Central sync hub: REST API, WebSocket relay, file storage.
  • HSYNC Rendezvous — Optional Internet rendezvous node for P2P (rdv/1, no-log, RAM-only).
  • HSYNC Android — Android client app. (in development)

Security & Vulnerability Reporting

To report a vulnerability, please use GitHub's Private Vulnerability Reporting:

👉 Report a vulnerability

🙋‍♂️ A note from the maintainer

This project was born out of the need for a system capable of replicating the contents of a folder from a PC or Android device to a NAS, primarily for backup purposes. Several solutions were already available, but I couldn't find one that met all my requirements. This led to the somewhat questionable decision to develop one from scratch, while also providing an opportunity to gain a deeper understanding of programming languages, algorithms, frameworks, and related technologies.

Originally conceived as a hobby project, HSYNC has been under continuous development ever since. I believe it has now evolved to the point where its capabilities are comparable to those of commercial solutions, while also offering some distinctive features. As a result, it may also be suitable for deployment in certain production environments.

HSYNC is a passion project that I primarily develop and maintain in my spare time. Please keep this in mind when interacting with the project: we're all doing our best to build something great together, but this is not a paid, full-time job for any of us.

Disclaimer

[!WARNING] HSYNC manipulates files and directories — it creates, overwrites, moves, and deletes data. Misconfiguration, software defects, or other unforeseen conditions may lead to data loss or corruption. Use at your own risk and always keep verified, independent backups.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. Although the author has implemented reasonable safety measures, IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY — including, without limitation, any direct, indirect, incidental, special, exemplary, or consequential damages, loss of data, or business interruption — WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This disclaimer supplements, and does not replace, the warranty disclaimer and limitation of liability provisions of the BSD 3-Clause License, which govern this software.

License

Distributed under the BSD 3-Clause License.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases hsync-common

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229