Peer-to-Peer · No Cloud · Zero Server

Delta in. Conflict out.

DeltaSync keeps folders synchronized across machines: delta transfer via FastCDC chunking, vector-clock conflict resolution, TLS 1.3 transport, and chaos-tested crash safety.

Watch Product Film
> deltasync sync ./my-folder --port 4242 [copy]
deltasync-showcase-1080p.mp4 (angelcore × cloud-trance)

Terminal Dashboard (Spectre.Console)

Engine Status SYNCING
Sync Path: /vault/documents
Node ID: node-9d584cf
Cluster: production-alpha
Connected Peers: 3 active (TLS 1.3)
Prometheus Endpoint: http://127.0.0.1:9090/metrics
Telemetry & Performance p95: 18.4 ms
Transferred (In/Out): 2.41 MB / 1.87 MB
Throughput: 812.3 KB/s
FastCDC Dedup Saved: 1.94 MB
Bandwidth Savings: 47.2%
Conflicts Resolved: 1 (BGP-4 tie-break)
Recent Sync Events Real-Time Event Stream
Time Type Details
12:04:31.204 CONFLICT main.rs:142 — vector clock divergence (ADR-0001)
12:04:31.220 RESOLVED Two machines edited same line. BGP-4 tie-break selected node-9d584cf. Both versions archived.
12:04:35.012 SYNC Reconciled prefix docs/rfc/ (2 of 8 chunks changed, FastCDC 47% dedup)
12:04:38.109 PEER Connected to peer node-b42e via TLS 1.3 socket on port 4242

Only the Delta Moves

FastCDC gear hashing slides an 8KB dynamic window across files. When content changes, boundary alignment self-synchronizes, isolating edits to only the modified slabs.

Chunk 0Unchanged
Chunk 1Unchanged
Chunk 2DELTA
Chunk 3Unchanged
Chunk 4Unchanged
Chunk 5DELTA
Chunk 6Unchanged
Chunk 7Unchanged

Engineered for Harsh Realities

⚡

FastCDC Chunking

Dynamic boundary normalization scans over 400 MB/s with zero heap allocations in the hot path. Deduplicates identical chunks across files and revisions.

🕰️

Vector Clock Causality

Complete Lamport partial-ordering over peer timelines. Deterministically distinguishes monotonic updates from concurrent branch divergences.

🛡️

Chaos-Tested Crash Safety

SQLite WAL mode with normal synchronous durability. Survived rigorous kill -9 stress cycles without a single byte of corruption.

🔒

TLS 1.3 Transport

Length-prefixed streaming sockets with mutual certificate pinning, bounded inbound queues (C=32), and BGP-4 collision tie-breaking.

Architectural Decision Records

ADR-0001
Keep Both Conflicted Files

Concurrent edits preserve both revisions with sanitized deterministic suffix to avoid silent data loss.

STATUS: ACCEPTED
ADR-0002
Hybrid UDP Multicast & Static Peers

Zero-config LAN autodiscovery with persistent static fallback for cloud & cross-VPC topologies.

STATUS: ACCEPTED
ADR-0003
SQLite WAL State Repository

Local zero-dependency ACID metadata store with foreign key enforcement and bounded memory caching.

STATUS: ACCEPTED
ADR-0004
FastCDC Normalized Boundary Masks

Variable chunking with normalized boundary masks mitigating small-chunk pathologies.

STATUS: ACCEPTED
ADR-0005
Dual Spectre.Console & Prometheus Metrics

Rich terminal dashboard for interactive runs; HTTP /metrics scraper for production Grafana monitoring.

STATUS: ACCEPTED