{"id":20918233,"url":"https://github.com/almazrafi/dictionarycoder","last_synced_at":"2026-01-16T17:12:25.403Z","repository":{"id":38291057,"uuid":"237015567","full_name":"almazrafi/DictionaryCoder","owner":"almazrafi","description":"Fast dictionary encoder / decoder for Swift Codable types","archived":false,"fork":false,"pushed_at":"2025-01-10T16:18:21.000Z","size":141,"stargazers_count":61,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T03:57:06.094Z","etag":null,"topics":["carthage","cocoapods","codable","decodable","dictionaryencoder","encodable","ios","macos","spm","swift","tvos","watchos","xcode"],"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/almazrafi.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":"2020-01-29T15:27:13.000Z","updated_at":"2025-01-27T04:10:40.000Z","dependencies_parsed_at":"2025-01-09T17:44:02.557Z","dependency_job_id":"f1c9ac3d-71a7-4fab-a24d-7da0dbda7a6d","html_url":"https://github.com/almazrafi/DictionaryCoder","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.08510638297872342,"last_synced_commit":"c340c90eeb4ff318ccea992e57e9ace8aaf3357d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FDictionaryCoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FDictionaryCoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FDictionaryCoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FDictionaryCoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almazrafi","download_url":"https://codeload.github.com/almazrafi/DictionaryCoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154997,"owners_count":21056542,"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":["carthage","cocoapods","codable","decodable","dictionaryencoder","encodable","ios","macos","spm","swift","tvos","watchos","xcode"],"created_at":"2024-11-18T16:38:13.783Z","updated_at":"2026-01-16T17:12:25.398Z","avatar_url":"https://github.com/almazrafi.png","language":"Swift","readme":"# DictionaryCoder\n[![Build Status](https://github.com/almazrafi/DictionaryCoder/workflows/CI/badge.svg)](https://github.com/almazrafi/DictionaryCoder/actions)\n[![Codecov](https://codecov.io/gh/almazrafi/DictionaryCoder/branch/master/graph/badge.svg)](https://codecov.io/gh/almazrafi/DictionaryCoder)\n[![Cocoapods](https://img.shields.io/cocoapods/v/DictionaryCoder)](http://cocoapods.org/pods/DictionaryCoder)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen)](https://github.com/Carthage/Carthage)\n[![SPM compatible](https://img.shields.io/badge/SPM-Compatible-brightgreen)](https://swift.org/package-manager/)\n[![Platforms](https://img.shields.io/cocoapods/p/DictionaryCoder)](https://developer.apple.com/discover/)\n[![Xcode](https://img.shields.io/badge/Xcode-16-blue)](https://developer.apple.com/xcode)\n[![Swift](https://img.shields.io/badge/Swift-5.9-orange)](https://swift.org)\n[![License](https://img.shields.io/github/license/almazrafi/DictionaryCoder)](https://opensource.org/licenses/MIT)\n\n## Requirements\n- iOS 13.0+ / macOS 11.5+ / watchOS 6.0+ / tvOS 13.0+\n- Xcode 16.4+\n- Swift 5.9+\n\n## Usage\n```swift\nstruct User: Codable {\n   var id: Int\n   var name: String\n}\n\n// Encode to [String: Any]\nlet user = User(id: 123, name: \"Neo\")\nlet dictionary = try DictionaryEncoder().encode(user)\n\n// Decode from [String: Any]\nlet dictionary: [String: Any] = [\"id\": 123, \"name\": \"Neo\"]\nlet user = try DictionaryDecoder().decode(User.self, from: dictionary)\n```\n\n## Installation\n### Swift Package Manager\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nTo integrate DictionaryCoder into your Xcode project using Swift Package Manager,\nadd the following as a dependency to your `Package.swift`:\n``` swift\n.package(url: \"https://github.com/almazrafi/DictionaryCoder.git\", from: \"1.4.0\")\n```\nand then specify `\"DictionaryCoder\"` as a dependency of the Target in which you wish to use DictionaryCoder.\n\nHere's an example `Package.swift`:\n``` swift\n// swift-tools-version:5.9\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyPackage\",\n    products: [\n        .library(name: \"MyPackage\", targets: [\"MyPackage\"])\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/almazrafi/DictionaryCoder.git\", from: \"1.4.0\")\n    ],\n    targets: [\n        .target(name: \"MyPackage\", dependencies: [\"DictionaryCoder\"])\n    ]\n)\n```\n\n### Carthage\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with Homebrew using the following command:\n``` bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate DictionaryCoder into your Xcode project using Carthage, specify it in your `Cartfile`:\n``` ogdl\ngithub \"almazrafi/DictionaryCoder\" ~\u003e 1.4.0\n```\n\nFinally run `carthage update` to build the framework and drag the built `DictionaryCoder.framework` into your Xcode project.\n\n### CocoaPods\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n``` bash\n$ gem install cocoapods\n```\n\nTo integrate DictionaryCoder into your Xcode project using [CocoaPods](http://cocoapods.org), specify it in your `Podfile`:\n``` ruby\nplatform :ios, '13.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'DictionaryCoder'\nend\n```\n\nFinally run the following command:\n``` bash\n$ pod install\n```\n\n\n## Communication\n- If you need help, open an issue.\n- If you found a bug, open an issue.\n- If you have a feature request, open an issue.\n- If you want to contribute, submit a pull request.\n\n## License\nDictionaryCoder is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmazrafi%2Fdictionarycoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmazrafi%2Fdictionarycoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmazrafi%2Fdictionarycoder/lists"}