Deterministic, P2P Edge State Synchronization via Conflict-Free Replicated Data Cookies. π§ͺ
A high-integrity, browser-native research prototype demonstrating zero-backend eventual consistency using join-semilattices, causal vector clocks, and cryptographic cookie boundaries.
π Live Interactive Dashboard Β· π Read 10-Page Research Paper (PDF) Β· π» Source Code Repository
Modern decentralized applications operating at the edge are constrained by network latency, packet loss, and frequent disconnected periods. Traditional client-server models rely on heavy synchronization locks, causing UI blocking, high server overhead, and data residency hazards.
VXR-Continuum introduces a browser-native eventual consistency engine that treats browser tabs and localized edge nodes as independent peers. By mapping application states to State-based Conflict-Free Replicated Data Types (CvRDTs) and serializing delta updates into cryptographic HTTP Document Cookies, synchronization executes transparently during standard navigation. Real-time synchronizations between parallel active tabs are routed via the BroadcastChannel API in less than 50 milliseconds, bypassing database coordination entirely.
The VXR-Continuum architecture is built on origin isolation, local memory evaluation, and asynchronous edge-to-edge convergence:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Browser Tab A (Origin: Voxion Edge) β
β 1. Mutation Event βββΊ Vector Clock++ βββΊ Local CvRDT State Mutation β
ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββ²ββββββββββββββββββββββββ
β β
β 2. Delta Serializer β 5. Local Join Merge
βΌ β
ββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββ
β 3. Sign & Compress βββΊ gzip Deflate βββΊ Base64-URL Cookie Storage β
ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββ²ββββββββββββββββββββββββ
β β
β 4. Broadcast Channel β 4. Cookie Marshalling
βΌ β
ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββ΄ββββββββββββββββββββββββ
β Browser Tab B (Origin: Voxion Edge) β
β 5. HMAC Validation βββΊ Causal Vector Check βββΊ Converged State Supremumβ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
To guarantee conflict-free, deterministic convergence across distributed edge replicas without central lock coordination, VXR-Continuum models state transitions strictly as a bounded join-semilattice
-
$S$ is the set of all possible state values. -
$\sqcup$ (join) is the binary merge operator. -
$\le$ is the partial order relation defining state progression. -
$\bot$ is the initial bottom element representing the empty state.
Deterministic eventual consistency is mathematically guaranteed because the merge operator
For every state mutation, replica state advances strictly monotonically:
Let
This guarantees that all edge nodes reach identical state convergence regardless of network partitions, message dropouts, or out-of-order delivery.
While the join-semilattice guarantees convergence, resolving concurrent edits and preserving causal history requires logical Vector Clocks. Each replica node
where
A state update associated with clock
If neither
When a conflict is detected (
HTTP document cookies are constrained by browser sandboxes to a maximum payload size of 4096 bytes per domain. VXR-Continuum optimizes space utilization by executing delta-compaction (gzip) and Base64-URL serialization, packing states into structured protocol headers.
| Byte Offset | Field Identifier | Data Type | Structural Constraint & Semantic Purpose |
|---|---|---|---|
0x00 |
vxr_ver |
uint8_t |
Version matching; rejects incompatible client revisions |
0x01 |
vxr_flags |
uint8_t |
Control bits (e.g., bit 0 represents delta compression status) |
0x02 - 0x09 |
vxr_epoch |
uint64_t |
Hybrid Logical Clock (HLC) physical timestamp |
0x0A - 0x0D |
vxr_counter |
uint32_t |
HLC logical sequence counter supporting exact concurrent tie-breakers |
0x0E - 0x2D |
vxr_sig |
uint8_t[32] |
Cryptographic HMAC-SHA256 signature validating state integrity |
0x2E - EOF |
vxr_payload |
string |
Base64-URL encoded gzip-compressed CvRDT state delta segment |
Storing synchronization states inside document cookies exposes data to client-side manipulation. VXR-Continuum secures the transport boundary by enforcing a strict HMAC-SHA256 Signature Chain:
where
// Active Cryptographic Verification Loop
const verifyCookiePayload = (cookie: RawCookiePacket, secretKey: string): boolean => {
const computedSig = hmacSHA256(
cookie.version + cookie.epoch + cookie.counter + cookie.payload,
secretKey
);
if (computedSig !== cookie.signature) {
console.error("β οΈ [SECURITY] State tampering detected! Signature mismatch.");
return false; // Reject transition
}
return true; // Apply merge
};Under comprehensive benchmarking simulating
| Performance Vector | Central Cloud Database | VXR-Continuum Cookie | Net Advantage / Speedup |
|---|---|---|---|
| State Ingress / Read (P50) | 45.80 ms | 0.02 ms | 2,290x (Avoids TCP handshake) |
| Conflict Resolution (P90) | 12.40 ms | 0.05 ms | 248x (Idempotent in-memory join) |
| Serialization & Signing (P99) | 8.20 ms | 0.15 ms | 54x (Client-side HMAC-SHA256) |
| Total Convergence (Average) | 66.40 ms | 0.22 ms | 301x (Edge-local synchronization) |
Verify the edge synchronization visualizer in your local environment:
git clone https://github.com/Voxion-Labs/VXR-Continuum.git
cd VXR-Continuum
npm installnpm run devOpen your local browser to the displayed URL (typically http://localhost:5173/VXR-Continuum/). Open an incognito browser tab side-by-side to watch peer mutations synchronize across clients in real-time.
npm run buildThe production assets compile cleanly into the /dist/ folder for global static hosting.
|
Rudranarayan Jena Founder, Voxion Labs Academic Profile: @liambrooks-lab D.Y. Patil International University, Pune, India Applied researcher in distributed systems security and edge computing. Currently directing the VXR-Continuum initiative to study high-integrity eventual convergence and conflict-free replicated data types in sandboxed client layers. |
If you reference this work or utilize the VXR-Continuum eventual consistency model in your research, please cite our whitepaper:
@techreport{jena2026vxrcontinuum,
author = {Jena, Rudranarayan},
title = {VXR-Continuum: Distributed State Synchronization via Conflict-Free Replicated Data Cookies},
institution = {Voxion Labs Applied Systems Research Group},
year = {2026},
number = {VXR-2026-CT01},
url = {https://voxion-labs.github.io/VXR-Continuum/paper/VXR-Continuum_IEEE.pdf}
}- [1] M. Shapiro et al., "Conflict-free replicated data types," in Symposium on Self-Stabilizing Systems, Springer, 2011.
- [2] L. Lamport, "Time, clocks, and the ordering of events in a distributed system," Commun. ACM, 21(7):558-565, 1978.
- [3] I. Barth et al., "HTTP State Management Mechanism (RFC 6265)," IETF RFC Series, 2011.
- [4] S. Kulkarni et al., "Logical physical clocks and hybrid time synchronization," IEEE Trans. Parallel Distrib. Syst., 2016.
This repository is licensed under the MIT License.
Copyright (c) 2026 Voxion Labs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Voxion Labs Β· Applied Research Β· Zero-Backend Β· CRDT Edge Cookies Β· TypeScript Β· Vite


