{"id":20711207,"url":"https://github.com/cypherpoet/coredatakit","last_synced_at":"2025-09-27T11:30:34.802Z","repository":{"id":48639910,"uuid":"223546525","full_name":"CypherPoet/CoreDataKit","owner":"CypherPoet","description":"A collection of utilities for building Core Data applications in SwiftUI.","archived":false,"fork":false,"pushed_at":"2021-09-18T21:14:50.000Z","size":835,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T02:14:21.431Z","etag":null,"topics":["coredata","coredata-swiftui","swift-packages","swiftui","xcode"],"latest_commit_sha":null,"homepage":"https://cypherpoet.github.io/CypherPoetCoreDataKit/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CypherPoet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://tippin.me/@cypher_poet"]}},"created_at":"2019-11-23T07:04:38.000Z","updated_at":"2023-04-30T05:13:41.000Z","dependencies_parsed_at":"2022-09-03T18:20:20.139Z","dependency_job_id":null,"html_url":"https://github.com/CypherPoet/CoreDataKit","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CypherPoet%2FCoreDataKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CypherPoet%2FCoreDataKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CypherPoet%2FCoreDataKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CypherPoet%2FCoreDataKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CypherPoet","download_url":"https://codeload.github.com/CypherPoet/CoreDataKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234429243,"owners_count":18831240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["coredata","coredata-swiftui","swift-packages","swiftui","xcode"],"created_at":"2024-11-17T02:14:28.224Z","updated_at":"2025-09-27T11:30:29.337Z","avatar_url":"https://github.com/CypherPoet.png","language":"Swift","funding_links":["https://tippin.me/@cypher_poet"],"categories":[],"sub_categories":[],"readme":"# CoreData Kit\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"600px\" src=\"./Extras/Images/Banner-1.png\" alt=\"CypherPoetCoreDataKit Header Image\"\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Swift-5.5-F06C33.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/iOS-15.0+-865EFC.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/iPadOS-15.0+-F65EFC.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/macOS-12.0+-179AC8.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/tvOS-15.0+-41465B.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/watchOS-8.0+-1FD67A.svg\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" /\u003e\n    \u003cimg src=\"https://github.com/CypherPoet/CypherPoetCoreDataKit/workflows/Build%20\u0026%20Test/badge.svg\" /\u003e\n    \u003ca href=\"https://github.com/apple/swift-package-manager\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/cypher_poet\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Contact-@cypher_poet-lightgrey.svg?style=flat\" alt=\"Twitter: @cypher_poet\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n\n_A collection of utilities for building Core Data-backed applications in Swift._\n\n\u003cp /\u003e\n\n\n## 🚧 Disclaimer\n\nThis library is still very much a WIP as I study/experiment with/develop best practices, patterns, and affordances for Core Data after the releases of Swift 5.5 and \"SwiftUI 3.0\". Please treat it as a guideline/reference for the time being 🙂.\n\n\n## Features\n\n- ✅ A [`CoreDataManager`](./Sources/CoreDataManager/) that handles setting up a [\"Core Data Stack\"](https://developer.apple.com/documentation/coredata/core_data_stack).\n- ✅ A [`rich set of utilities`](./Sources/Migration/) for performing Core Data migrations.\n- ✅ A [`FetchedResultsControlling` protocol](./Sources/FetchUtils/FetchedResultsControlling.swift) that helps architect `NSFetchedResultsController` instances and extract data from their `NSFetchRequest` results.\n- ✅ Utilities for composing `NSPredicate` instances in a strongly-typed fashion.\n- ✅ Strongly-typed errors under types like `CoreDataManager`, `PersistentStoreMigrator` and more.\n- ✅ `NSPersistentStore` helpers for using different SQLite writing locations in development and production.\n\n\n## Installation\n\n### Xcode Projects\n\nSelect `File` -\u003e `Swift Packages` -\u003e `Add Package Dependency` and enter `https://github.com/CypherPoet/CypherPoetCoreDataKit`.\n\n\n### Swift Package Manager Projects\n\nYou can add this project as a package dependency in your `Package.swift` file:\n\n```swift\nlet package = Package(\n    //...\n    dependencies: [\n        .package(\n            url: \"https://github.com/CypherPoet/CoreDataKit\",\n            .exact(\"0.0.21\")\n        ),\n    ],\n    //...\n)\n```\n\nFrom there, refer to the `CoreDataKit` \"product\" delivered by the `CypherPoetCoreDataKit` \"package\" inside of any of your project's target dependencies:\n\n```swift\ntargets: [\n    .target(\n        name: \"YourLibrary\",\n        dependencies: [\n            .product(name: \"CoreDataKit\", package: \"CypherPoetCoreDataKit\"),\n        ],\n        ...\n    ),\n    ...\n]\n```\n\nThen simply `import CoreDataKit` wherever you’d like to use it.\n\n\n\n## Usage\n\nCurrently, usage of these utilities is best demonstrated by the various example applications [here](./Examples/). But a few pointers...\n\n### Dynamically initializing a Core Data Stack for your app depending on whether it's running for production or for Xcode Previews.\n\n- [🔗 Example](https://github.com/CypherPoet/CoreDataKit/blob/migration-helpers/Examples/ReviewJournal/Shared/Misc%20Utils/Extensions/CoreDataManager%2BUtils.swift)\n\n### Setting up the Core Data stack on launch\n\n- [🔗 iOS Example](./Examples/ReviewJournal/iOS/App/AppDelegate.swift)\n- [🔗 macOS Example](./Examples/ReviewJournal/macOS/App/AppDelegate.swift)\n\n\n\u003c!-- ### [Advanced Fetching]() (adapted from _Core Data by Tutorials_) --\u003e\n\n### Core Data Migrations\n\n- [🔗 Example application built specifically around this.](./Examples/ReviewJournal)\n\n\n### Requirements\n\n- Xcode 13.0+ (Recommended)\n\n\n### 📜 Generating Documentation\n\nDocumentation is generated by [Swift Doc](https://github.com/SwiftDocOrg/swift-doc). Installation instructions can be found [here](https://github.com/SwiftDocOrg/swift-doc#installation), and as soon as you have it set up, docs can be generated simply by running `./Scripts/generate-html-docs.zsh` from the command line.\n\n📝 Note that this will only generate a `.build/documentation` folder for you to view locally. This folder is being ignored by `git`, and a GitHub [action](./.github/workflows/PublishDocumentation.yml) exists to automatically generate docs at the root level and serve them on the project's `gh-pages` branch.\n\n\n\n## 🏷 License\n\n`CypherPoetCoreDataKit` is available under the MIT license. See the [LICENSE file](./LICENSE) for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypherpoet%2Fcoredatakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcypherpoet%2Fcoredatakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypherpoet%2Fcoredatakit/lists"}