@mdfriday/sync-core
v0.1.0
Published
CouchDB sync core logic for MDFriday — platform independent, zero hard Obsidian dependency
Maintainers
Readme
@mdfriday/sync-core
Platform-independent CouchDB sync core for MDFriday. Zero hard dependency on Obsidian APIs.
Features
- PouchDB local database management
- CouchDB replication with conflict resolution
- End-to-end encryption (HKDF)
- Content-defined chunking
- Connection monitoring & failure handling
- Hidden file sync support
- Server connectivity checking
Architecture
This package contains the pure sync logic extracted from the MDFriday Obsidian plugin.
Obsidian-specific APIs are injected via adapters (see src/interfaces/IPluginAdapters.ts).
src/
├── core/ # Pure sync logic (PouchDB, replication, encryption, etc.)
├── features/ # Feature modules (ConnectionMonitor, HiddenFileSync, etc.)
├── interfaces/ # Adapter interfaces (IHttpClient, IDomEventRegistrar, etc.)
└── index.ts # Public API entry pointUsage
import type { ISyncCore, IHttpClient, IDomEventRegistrar } from '@mdfriday/sync-core';License
Apache-2.0
