{"id":47617258,"url":"https://github.com/softadastra/sync","last_synced_at":"2026-05-30T22:00:52.450Z","repository":{"id":331815774,"uuid":"1106555219","full_name":"softadastra/sync","owner":"softadastra","description":"Durable synchronization engine built on WAL, outbox, retries, and explicit conflict handling.","archived":false,"fork":false,"pushed_at":"2026-05-30T10:55:20.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T12:19:29.702Z","etag":null,"topics":["acks","convergence","outbox","recovery","snapshots","softadastra","wal"],"latest_commit_sha":null,"homepage":"https://softadastra.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softadastra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-29T13:41:10.000Z","updated_at":"2026-05-30T10:55:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/softadastra/sync","commit_stats":null,"previous_names":["softadastra/softadastra-sync","softadastra/sync"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/softadastra/sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Fsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Fsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Fsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Fsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softadastra","download_url":"https://codeload.github.com/softadastra/sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Fsync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33711018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acks","convergence","outbox","recovery","snapshots","softadastra","wal"],"created_at":"2026-04-01T21:37:24.284Z","updated_at":"2026-05-30T22:00:52.444Z","avatar_url":"https://github.com/softadastra.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# softadastra/sync\n\n\u003e Local-first synchronization primitives for reliable Softadastra products.\n\n`softadastra/sync` provides the synchronization orchestration layer of the Softadastra C++ stack.\n\nSoftadastra builds reliability-first products for local-first, offline-first, and distributed applications. This module moves durable local operations between nodes without embedding network transport.\n\n## Purpose\n\n`softadastra/sync` exists to coordinate local-first synchronization.\n\nIt is used by higher-level SDKs, product APIs, and distributed Softadastra infrastructure.\n\nThe core rule is simple:\n\n\u003e Persist locally first. Sync later.\n\nIt is designed to be:\n\n- Local-first\n- Transport-agnostic\n- Deterministic\n- Retry-aware\n- Observable\n- Product-ready\n\n## What it provides\n\nThis module provides synchronization primitives such as:\n\n- Sync operations\n- Sync envelopes\n- Outbox management\n- Deterministic send queues\n- Acknowledgement tracking\n- Remote operation application\n- Conflict resolution policies\n- Sync engine orchestration\n- Observable sync state\n\n## What it does not do\n\n`softadastra/sync` does not contain:\n\n- Peer discovery\n- Socket handling\n- HTTP transport\n- P2P transport\n- Encryption\n- Distributed consensus\n- Product-specific logic\n\nIt prepares, tracks, retries, and applies sync operations. Another layer decides how those operations are transported.\n\n## Core model\n\n```txt\nLocal operation\n      |\nPersist to local store\n      |\nQueue for sync\n      |\nSend through transport\n      |\nAck / retry / apply remote\n```\n\nThe sync module keeps synchronization logic deterministic while leaving transport outside the core engine.\n\n## Where it fits\n\n```txt\nSoftadastra products\n        |\nSDKs and product APIs\n        |\nsoftadastra/sync\n        |\nsoftadastra/store\n        |\nsoftadastra/wal\n        |\nsoftadastra/core\n```\n\n`softadastra/sync` depends on `softadastra/store`, `softadastra/wal`, and `softadastra/core`. It provides synchronization orchestration for higher-level products and adapters.\n\n## Installation\n\n```bash\nvix add @softadastra/sync\n```\n\n## Usage\n\n```cpp\n#include \u003csoftadastra/sync/Sync.hpp\u003e\n#include \u003csoftadastra/store/Store.hpp\u003e\n```\n\n## Example\n\n```cpp\n#include \u003csoftadastra/store/Store.hpp\u003e\n#include \u003csoftadastra/sync/Sync.hpp\u003e\n\n#include \u003ciostream\u003e\n\nint main()\n{\n    softadastra::store::engine::StoreEngine store{\n        softadastra::store::core::StoreConfig::durable(\"data/store.wal\")\n    };\n\n    auto config = softadastra::sync::core::SyncConfig::durable(\"node-a\");\n\n    softadastra::sync::core::SyncContext context{store, config};\n    softadastra::sync::engine::SyncEngine sync{context};\n\n    auto operation = softadastra::store::core::Operation::put(\n        softadastra::store::types::Key{\"user:1\"},\n        softadastra::store::types::Value::from_string(\"Gaspard\")\n    );\n\n    auto submitted = sync.submit_local_operation(operation);\n\n    if (submitted.is_err())\n    {\n        std::cout \u003c\u003c submitted.error().message() \u003c\u003c \"\\n\";\n        return 1;\n    }\n\n    auto batch = sync.next_batch();\n\n    std::cout \u003c\u003c \"Queued operations: \" \u003c\u003c batch.size() \u003c\u003c \"\\n\";\n    return 0;\n}\n```\n\n## Requirements\n\n- C++20\n- `softadastra/core`\n- `softadastra/wal`\n- `softadastra/store`\n\n## Documentation\n\nFor the full documentation, visit [docs.softadastra.com](https://docs.softadastra.com).\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftadastra%2Fsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftadastra%2Fsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftadastra%2Fsync/lists"}