# modo-studio/SugarRecord

CoreData/Realm sweet wrapper written in Swift

Repository: https://github.com/modo-studio/SugarRecord
Canonical: https://ross.abutalabs.com/products/sugarrecord
Language: Swift
License: MIT
License Family: permissive
Last push: 2020-09-10T07:39:54+00:00

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

## Adoption (not part of the score)
Stars 2100, forks 220 (observed 2026-08-28T04:06:13.599914+00:00)

## What it is
SugarRecord is a Swift persistence wrapper that simplifies working with CoreData and Realm through a fluent, protocol-based API. It lets developers choose their persistence stack and manage data with just a few lines of code.

## Use cases
- wrap coredata queries in a cleaner swift api
- simplify realm persistence in an ios app
- swap between coredata and realm stacks
- avoid singleton shared state in data layer
- add icloud sync to coredata persistence

## When to choose
- you use CoreData or Realm in an iOS/macOS/watchOS/tvOS app and want a friendlier fluent syntax
- you want a protocol-based, customizable persistence stack without singletons

## When to avoid
- you need a library with recent Swift version support or active maintenance (last release 2020)
- your project targets Swift versions newer than 3.0-era tooling
- you prefer using CoreData or Realm directly or via more modern alternatives like SwiftData or GRDB

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database
- domain: mobile-development, developer-tools
- platform: -
- tags: core-data, realm, persistence-wrapper, swift, ios, macos

## Member repositories
- modo-studio/SugarRecord (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.599914+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:54:20.979507+00:00, confidence not recorded.
  - readme: https://github.com/modo-studio/SugarRecord (fetched 2026-08-28T04:06:13.599914+00:00, sha db5bfb242ba7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
