{"id":18763740,"url":"https://github.com/inloop/codablestore","last_synced_at":"2025-04-13T04:32:48.180Z","repository":{"id":77722176,"uuid":"121536892","full_name":"inloop/CodableStore","owner":"inloop","description":"Persistance providers for swift Codables","archived":false,"fork":false,"pushed_at":"2019-04-09T14:17:13.000Z","size":676,"stargazers_count":6,"open_issues_count":5,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-26T21:45:55.394Z","etag":null,"topics":[],"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/inloop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-14T17:01:32.000Z","updated_at":"2020-06-22T14:12:43.000Z","dependencies_parsed_at":"2023-07-28T09:00:35.798Z","dependency_job_id":null,"html_url":"https://github.com/inloop/CodableStore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FCodableStore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FCodableStore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FCodableStore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FCodableStore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inloop","download_url":"https://codeload.github.com/inloop/CodableStore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248664186,"owners_count":21141910,"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":[],"created_at":"2024-11-07T18:27:17.822Z","updated_at":"2025-04-13T04:32:48.175Z","avatar_url":"https://github.com/inloop.png","language":"Swift","readme":"# CodableStore\n\n[![CI Status](http://img.shields.io/travis/inloop/CodableStore.svg?style=flat)](https://travis-ci.org/inloop/CodableStore)\n[![Version](https://img.shields.io/cocoapods/v/CodableStore.svg?style=flat)](http://cocoapods.org/pods/CodableStore)\n[![License](https://img.shields.io/cocoapods/l/CodableStore.svg?style=flat)](http://cocoapods.org/pods/CodableStore)\n[![Platform](https://img.shields.io/cocoapods/p/CodableStore.svg?style=flat)](http://cocoapods.org/pods/CodableStore)\n\n## Example\n\n`UserDefaults` as storage provider:\n\n```\nstruct Company {\n    let name: String\n}\n\nlet provider = UserDefaults.standard\n\nlet tesla = Company(name: \"Tesla\")\nlet companyKey = \"somekey\"\n\ntesla.create(provider, key: companyKey).then { (company: Company?) -\u003e Void in\n    // company: Company?\n}\nCompany.read(provider, key: companyKey).then { company -\u003e Void in\n    // company: Company?\n}\n```\n\n`URLSession` as storage provider:\n\n```\nstruct Post: Codable {\n    let title: String\n    let body: String\n}\n\nlet provider = URLSession.shared\n\nlet url = URL(string: \"http://jsonplaceholder.typicode.com/posts\")!\nlet detailUrl = URL(string: \"http://jsonplaceholder.typicode.com/posts/1\")!\n\n[Post].read(store, key: url).then { posts -\u003e Void in\n    // posts: [Post]?\n}\n\nPost.read(store, key: url).then { post -\u003e Void in\n    // post: Post?\n}\n\nlet newPost = Port(title: \"Foo\", body: \"Blah\")\nnewPost.create(store, key: url).then { (post: Post?) -\u003e Void in\n    // post: Post?\n}\n```\n\n### URLSession custom URLRequest\n\n## Custom provider\n\n## Requirements\n\n## Installation\n\nCodableStore is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'CodableStore'\n```\n\n## Author\n\nJakub Knejzlik, jakub.knejzlik@inloop.eu\n\n## License\n\nCodableStore is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fcodablestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finloop%2Fcodablestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fcodablestore/lists"}