Ross ROSS = Recommend OSS · open-source software intelligence for agents

sunshinejr/SwiftyUserDefaults

Modern Swift API for NSUserDefaults observed · 2026-08-28

github.com/sunshinejr/SwiftyUserDefaults · homepage · Swift · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4243
  • days_rel: n/a
  • days_push: 891
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

4888 stars · 362 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A Swift library providing a modern, statically-typed API over NSUserDefaults (UserDefaults). It lets developers define typed keys in one place and read/write preferences with compile-time safety and expressive syntax.

Use cases

  • store user preferences in an iOS app with type safety
  • define UserDefaults keys in one place to avoid stringly-typed code
  • increment a launch counter stored in UserDefaults
  • persist Codable custom types to user defaults
  • observe preference changes with KVO
  • use property wrappers for app settings

When to choose

  • you're building an iOS, macOS, watchOS, or tvOS app in Swift and want a safer UserDefaults API
  • you want compile-time checks and typed keys instead of raw string keys
  • you want convenient support for Codable, RawRepresentable, and custom types in defaults

When to avoid

  • you need a full database or sync engine rather than simple key-value preferences
  • your project targets platforms outside Apple's ecosystem
  • you prefer the native UserDefaults API or a Swift property-wrapper-only solution like @AppStorage
  • you need a library under very active development, as the project appears to be in maintenance mode

Facets

library · maturity maintenance

developer-tools serialization mobile-development developer-tools apple-ecosystem cross-platform userdefaults swift statically-typed preferences key-value-storage property-wrappers ios macos

4 sources

Member repositories

RepositoryRoleHealth v2
sunshinejr/SwiftyUserDefaultsmain23

For agents

markdown · JSON · MCP: product_card(name="sunshinejr/SwiftyUserDefaults")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem