New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@picassio/sync-core

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@picassio/sync-core

Platform-neutral contracts and crash-safe ordered client state machine for WebObsidian Sync Protocol 1.0

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

@picassio/sync-core

Shared, platform-neutral Sync Protocol 1.0 contracts and deterministic client state machine for WebObsidian Central Sync. It includes strict Zod schemas/types, path policy, SHA-256 helpers, replay/conflict primitives, golden fixtures, and ordered manifest/catch-up/apply-intent/offline-queue orchestration.

import { OrderedSyncClient, HandshakeResponseSchema, PROTOCOL_VERSION } from '@picassio/sync-core';

Adapters provide persistence, transport, and local materialization; this package performs no filesystem, Obsidian, browser, or credential storage itself. A client must durably record an apply intent before local materialization and advance/acknowledge its cursor only afterward. Wake and polling work flush durable local operations before pulling remote events. Adapters that maintain a separate dirty-path marker can call enqueue(), durably clear that marker, and then call flush() so the server echo cannot race the local preparation boundary. Servers advertising ordered-batch-stop-v1 allow ordered publication in protocol-sized batches; older servers remain at one operation/request. Optional lifecycle observers expose safe bootstrap/progress boundaries only after the corresponding persistence transition.

  • Protocol and OpenAPI: https://github.com/picassio/webobsidian/tree/main/docs/sync
  • Source: https://github.com/picassio/webobsidian/tree/main/packages/sync-core
  • Security reports: https://github.com/picassio/webobsidian/security/advisories/new

MIT licensed. Protocol 1.0 is pre-stable until the corresponding WebObsidian stable release is published.

Keywords

sync

FAQs

Package last updated on 16 Jul 2026

Related posts