# saoudrizwan/Disk

Easily persist structs, images, and data on iOS

Repository: https://github.com/saoudrizwan/Disk
Canonical: https://ross.abutalabs.com/products/disk
Language: Swift
License: MIT
License Family: permissive
Topics: swift, ios, xcode, swift4, ios-swift, ios10, ios11, ios9
Last push: 2024-08-08T05:57:32+00:00

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

## Adoption (not part of the score)
Stars 3112, forks 172 (observed 2026-08-28T04:07:43.981298+00:00)

## What it is
Disk is a Swift library for iOS that simplifies persisting Codable structs, images, and data to disk with minimal code. It handles encoding/decoding automatically and follows Apple's iOS Data Storage Guidelines.

## Use cases
- persist structs to disk in an iOS app
- save images to local storage with one line of code
- store Codable objects without manual encoding/decoding
- cache data files on iOS following storage guidelines
- save and retrieve arrays of models from disk
- manage local file storage in Swift apps

## When to choose
- you're building an iOS app in Swift 4+ and need simple local persistence
- you want to save Codable structs or UIImage objects without boilerplate
- you need lightweight file storage that respects Apple's data storage guidelines

## When to avoid
- you need a full database with queries, indexing, or relationships
- you're targeting platforms other than iOS
- you need cross-platform persistence or cloud sync

## Facets
- artifact type: library
- maturity: maintenance
- function: file-system, serialization
- domain: mobile-development, developer-tools
- platform: -
- tags: swift, codable, persistence, file-storage, cocoapods, carthage, spm, ios-tools, ios

## Member repositories
- saoudrizwan/Disk (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.981298+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-30T07:26:42.687862+00:00, confidence not recorded.
  - readme: https://github.com/saoudrizwan/Disk (fetched 2026-08-28T04:07:43.981298+00:00, sha ee6be739a3c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
