awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
sunshinejr avatar

sunshinejr/SwiftyUserDefaults

0
View on GitHub↗
radex.io/swift/nsuserdefaults/static↗

SwiftyUserDefaults

SwiftyUserDefaults is a type-safe Swift interface for reading and writing user preferences using the NSUserDefaults storage system. It provides a statically typed preference store that utilizes generic types and default values to prevent runtime type mismatches in application settings.

The library includes a custom type serializer to convert complex objects and arrays into compatible storage formats and an observer that uses key-value observing to trigger logic when preference values change. It also features an app group preference manager that utilizes suite names to exchange user preferences between applications and extensions.

The project covers broader capability areas including preference lifecycle management, in-memory value caching to reduce storage reads, and the ability to read application launch arguments as statically typed configuration values. It also provides utilities for managing multiple isolated key stores and resetting the preference store.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • User Preference Managers - Manages reading and writing application settings through a statically-typed interface to ensure type safety.
  • Standard Library Wrappers - Provides a type-safe Swift wrapper around the NSUserDefaults standard library to improve ergonomics and safety.
  • User Preference Management - Provides utilities to check for key existence and remove individual entries to maintain preference state.
  • User Preference Managers - Provides a type-safe interface for storing and retrieving application settings on iOS.
  • Type-Safe Configuration Stores - Implements a preference store using generic types and default values to prevent runtime type mismatches in settings.
  • Type-Safe Key Interfaces - Maps preference keys to specific Swift types to prevent runtime type mismatches during data retrieval.
  • App Group Synchronization - Provides a preference manager that uses suite names to exchange user settings between applications and extensions.
  • Storage Key Observation - Ships a monitoring tool that uses key-value observing to trigger logic when specific preference values are updated.
  • Custom Type Serializers - Allows specifying how custom types and arrays are transformed when reading from or writing to persistent storage.
  • Data Type Serialization - Provides logic for encoding and decoding complex custom types and arrays into persistent storage formats.
  • In-Memory Caches - Implements an in-memory cache for retrieved preferences to reduce direct read operations from persistent storage.
  • Preference Caches - Stores retrieved preference values in memory to reduce the frequency of direct reads from persistent storage.
  • Default Value Fallbacks - Provides fallback values when requested preference keys are absent to ensure non-optional returns.
  • Default Value Assignments - Assigns fallback values to keys so that lookups return a non-optional value when no data exists.
  • Inter-App Data Sharing - Uses shared suite names to synchronize user preferences and settings between a main application and its extensions.
  • App Group Storage - Directs preference operations to specific named containers to share data between applications and extensions.
  • Property Change Observers - Tracks updates to stored settings to trigger immediate logic changes within the application.
  • Shared Suite Access - Enables redirecting preference read and write operations to a shared container for use between applications and extensions.
  • State Change Observers - Uses key-value observing to trigger registered callbacks when stored preference values are updated.
  • Data Persistence - Cleaner syntax for UserDefaults.
  • Database Libraries - Statically-typed interface for UserDefaults.
4,881 stars·361 forks·Swift·MIT·17 views

Star history

Star history chart for sunshinejr/swiftyuserdefaultsStar history chart for sunshinejr/swiftyuserdefaults

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does sunshinejr/swiftyuserdefaults do?

SwiftyUserDefaults is a type-safe Swift interface for reading and writing user preferences using the NSUserDefaults storage system. It provides a statically typed preference store that utilizes generic types and default values to prevent runtime type mismatches in application settings.

What are the main features of sunshinejr/swiftyuserdefaults?

The main features of sunshinejr/swiftyuserdefaults are: User Preference Managers, Standard Library Wrappers, User Preference Management, Type-Safe Configuration Stores, Type-Safe Key Interfaces, App Group Synchronization, Storage Key Observation, Custom Type Serializers.

Which projects share features with sunshinejr/swiftyuserdefaults?

Projects with overlapping indexed features include: sindresorhus/electron-store — electron-store is a persistence layer and key-value storage solution for Electron applications. It manages user… mobxjs/mobx-react — mobx-react is a library that provides state bindings to connect React components to MobX observable state. It… pardom/activeandroid — ActiveAndroid is a persistence framework for managing local SQLite databases on Android. It provides an active record… johnestropia/corestore — CoreStore is a type-safe Swift interface and persistence wrapper for managing local data storage and object graphs… basedhardware/omi — Omi is an open-source wearable AI platform that captures audio and screen data to provide real-time conversational… ccgus/fmdb — fmdb is an object-oriented SQLite database library and persistence layer for native macOS and iOS environments. It…

Projects sharing features with SwiftyUserDefaults

These projects share indexed features with SwiftyUserDefaults. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • sindresorhus/electron-storesindresorhus avatar

    sindresorhus/electron-store

    5,030View on GitHub↗

    electron-store is a persistence layer and key-value storage solution for Electron applications. It manages user preferences and application state by saving and retrieving structured data as JSON files on the local file system. The library includes capabilities for obfuscating configuration files to prevent manual modification of saved data. It also provides a system for automatic data structure migration when the application version is incremented and supports custom serialization pipelines to replace standard JSON parsing. The project covers a broad surface of state management, including sc

    JavaScript
    View on GitHub↗5,030
  • mobxjs/mobx-reactmobxjs avatar

    mobxjs/mobx-react

    4,823View on GitHub↗

    mobx-react is a library that provides state bindings to connect React components to MobX observable state. It functions as a component state synchronizer, ensuring that user interface elements automatically re-render only when the specific observed data they consume changes. The project enables a decoupled state architecture by moving business logic and domain state into standalone stores, separating data management from the React component tree. It facilitates global state distribution across deep component hierarchies using providers and context to avoid manual prop drilling. The library c

    TypeScriptjavascriptmobxreact
    View on GitHub↗4,823
  • pardom/activeandroidpardom avatar

    pardom/ActiveAndroid

    4,656View on GitHub↗

    ActiveAndroid is a persistence framework for managing local SQLite databases on Android. It provides an active record object-relational mapping system that binds database tables to classes, allowing for data persistence and retrieval without writing manual SQL. The project distinguishes itself through a dedicated schema migration tool that updates database structures using versioned scripts loaded from application assets. It also includes a framework for sharing database content between different Android applications via a standard URI-based content provider interface. The library covers bro

    Java
    View on GitHub↗4,656
  • johnestropia/corestoreJohnEstropia avatar

    JohnEstropia/CoreStore

    4,048View on GitHub↗

    CoreStore is a type-safe Swift interface and persistence wrapper for managing local data storage and object graphs using the Core Data framework. It functions as an atomic persistence manager that executes data updates within transactional blocks to ensure changes are either fully saved or rolled back to prevent state corruption. The project provides a dedicated framework for performing sequential schema migrations through defined version chains and a type-safe object mapping system for importing external JSON data into persistent entities using Swift protocols. It includes a data binding la

    Swiftcarthagecocoapodscore-data
    View on GitHub↗4,048
Compare all 30 related projects→