{"id":992,"url":"https://github.com/muukii/OneStore","last_synced_at":"2025-07-30T20:30:41.366Z","repository":{"id":62449592,"uuid":"66297855","full_name":"muukii/OneStore","owner":"muukii","description":"📕A single value proxy for NSUserDefaults, with clean API.","archived":true,"fork":false,"pushed_at":"2022-02-01T15:39:14.000Z","size":73,"stargazers_count":27,"open_issues_count":5,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T00:52:50.655Z","etag":null,"topics":["ios","store","userdefaults"],"latest_commit_sha":null,"homepage":"","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/muukii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-22T18:28:33.000Z","updated_at":"2023-01-28T00:51:39.000Z","dependencies_parsed_at":"2022-11-01T23:18:07.112Z","dependency_job_id":null,"html_url":"https://github.com/muukii/OneStore","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/muukii/OneStore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muukii%2FOneStore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muukii%2FOneStore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muukii%2FOneStore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muukii%2FOneStore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muukii","download_url":"https://codeload.github.com/muukii/OneStore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muukii%2FOneStore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267935131,"owners_count":24168267,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ios","store","userdefaults"],"created_at":"2024-01-05T20:15:36.471Z","updated_at":"2025-07-30T20:30:41.079Z","avatar_url":"https://github.com/muukii.png","language":"Swift","funding_links":[],"categories":["Database"],"sub_categories":["Getting Started","Other free courses","Linter"],"readme":"# OneStore\n\n[![CI Status](http://img.shields.io/travis/muukii/OneStore.svg?style=flat)](https://travis-ci.org/muukii/OneStore)\n[![Version](https://img.shields.io/cocoapods/v/OneStore.svg?style=flat)](http://cocoapods.org/pods/OneStore)\n[![License](https://img.shields.io/cocoapods/l/OneStore.svg?style=flat)](http://cocoapods.org/pods/OneStore)\n[![Platform](https://img.shields.io/cocoapods/p/OneStore.svg?style=flat)](http://cocoapods.org/pods/OneStore)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nA single value proxy for NSUserDefaults, with clean API.\n\nWith OneStore…\n- Create one proxy(an `OneStore` object) for each NSUserDefaults value.\n- Multiple NSUserDefaults and namespaces are supported with `Stacks`.\n\n## Example\n\n**Basic**\n\n```swift\nlet name = OneStore\u003cString\u003e(\"name\")\nlet age = OneStore\u003cInt\u003e(\"age\")\n\nname.value = \"muukii\"\nage.value = 18\n```\n\n**Specify Stack**\n\n```swift\nlet stack = Stack(userDefaults: NSUserDefaults(suiteName: \"group.me.muukii.Fil\")!, namespace: \"me\")\nlet name = OneStore\u003cString\u003e(\"name\", stack: stack)\nlet age = OneStore\u003cInt\u003e(\"age\", stack: stack)\n\nname.value = \"muukii\"\nage.value = 18\n```\n\n**Remove object**\n\n```swift\nlet name = OneStore\u003cString\u003e(\"name\", stack: stack)\nname.value = nil\n```\n\n**Remove all objects on namespace**\n\n```swift\n\nlet stack = Stack(userDefaults: NSUserDefaults.standardUserDefaults(), namespace: \"me\")\nlet name = OneStore\u003cString\u003e(\"name\", stack: stack)\n\nstack.removeAllObjectsOnNamespace()\n/* or */\nname.stack.removeAllObjectsOnNamespace()\n```\n\n**Realworld example**\n\n```swift\n\nenum Me {\n\n    static let name = OneStore\u003cString\u003e(\"name\", stack: Me.stack)\n    static let age = OneStore\u003cInt\u003e(\"age\", stack: Me.stack)\n\n    private static let stack = Stack(userDefaults: NSUserDefaults.standardUserDefaults(), namespace: \"me\")\n}\n\nMe.name.value = \"muukii\"\n```\n\n## Requirements\n\nSwift 3.0\n\n## Installation\n\nOneStore is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"OneStore\"\n```\n\n## Author\n\nmuukii, m@muukii.me\n\n## License\n\nOneStore is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuukii%2FOneStore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuukii%2FOneStore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuukii%2FOneStore/lists"}