# 3lvis/SwiftSync

JSON to SwiftData and back. SwiftData Sync.

Repository: https://github.com/3lvis/SwiftSync
Canonical: https://ross.abutalabs.com/products/swiftsync
Language: Swift
License: MIT
License Family: permissive
Topics: coredata, json, swift, restkit, carthage, cocoapods, core-data, sync
Last push: 2026-06-27T09:58:57+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 43, longevity 100
- inputs: {"age_days": 4322, "days_push": 67, "days_rel": 171, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2541, forks 259 (observed 2026-08-28T04:06:59.430499+00:00)

## What it is
SwiftSync is a Swift library that syncs JSON API payloads into local SwiftData models and exports them back to JSON. It provides convention-first mapping, deterministic diffing, relationship syncing, and reactive SwiftUI reads.

## Use cases
- sync REST API JSON into local SwiftData storage
- keep an iOS app's local database in sync with a backend
- map nested JSON objects with relationships into SwiftData models
- build offline-first apps that push local changes to a server
- display auto-updating SwiftUI lists from synced data
- export local SwiftData records back into API-ready JSON

## When to choose
- you build iOS/macOS apps with SwiftData that consume JSON APIs
- you need offline-first sync with relationship handling
- you want a modern SwiftData replacement for RestKit-style syncing

## When to avoid
- your app does not use SwiftData or Core Data
- you need server-side or non-Apple-platform syncing
- you need conflict resolution beyond last-writer-wins

## Facets
- artifact type: library
- maturity: active
- function: serialization, database, orm, caching
- domain: mobile-development, databases, apis, developer-tools
- platform: -
- tags: swiftdata, core-data, -mapping, offline-sync, swiftui, restkit-successor, swift, ios, macos, mobile

## Member repositories
- 3lvis/SwiftSync (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:59.430499+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:07.369256+00:00, confidence not recorded.
  - readme: https://github.com/3lvis/SwiftSync (fetched 2026-08-28T04:06:59.430499+00:00, sha 812b39bfd63e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
