{"id":30719832,"url":"https://github.com/dankinsoid/simplecoders","last_synced_at":"2025-09-03T10:42:21.686Z","repository":{"id":63907531,"uuid":"450896489","full_name":"dankinsoid/SimpleCoders","owner":"dankinsoid","description":"Simple protocols to write custom Encoders and Decoders","archived":false,"fork":false,"pushed_at":"2025-02-01T07:37:58.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T05:39:58.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dankinsoid.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}},"created_at":"2022-01-22T18:04:50.000Z","updated_at":"2025-02-01T07:38:02.000Z","dependencies_parsed_at":"2023-12-25T17:49:34.490Z","dependency_job_id":"3cf34654-d46c-4ca0-abca-1dbfe4b3fda8","html_url":"https://github.com/dankinsoid/SimpleCoders","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"1527a7ab9a00a7a8a5a031c3102efc9cfccb49d4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dankinsoid/SimpleCoders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FSimpleCoders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FSimpleCoders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FSimpleCoders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FSimpleCoders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankinsoid","download_url":"https://codeload.github.com/dankinsoid/SimpleCoders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FSimpleCoders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431361,"owners_count":25104491,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-09-03T10:42:20.836Z","updated_at":"2025-09-03T10:42:21.676Z","avatar_url":"https://github.com/dankinsoid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleCoders\n\n## Description\nThis repository includes some useful tools for `Codable` protocol and data decoding.\n\n## Usage\n\n1. `PlainCodingKey` \n\nSimple `CodingKey` struct.\n\n2. Type reflection for `Decodable` types\n\n```swift\nlet properties: [String: Any.Type] = Mirror.reflect(SomeType.self)\n//or Mirror(SomeType.self).children\n``` \n9. Tools for creating custom encoders/decoders\n\nBased on similar logic when writing different encoders/decoders `DecodingUnboxer` and `EncodingBoxer` protocols were implemented.\nExamples of usage are all encoders in decoders in this repo.\n\n## Installation\n1. [Swift Package Manager](https://github.com/apple/swift-package-manager)\n\nCreate a `Package.swift` file.\n```swift\n// swift-tools-version:5.0\nimport PackageDescription\n\nlet package = Package(\n  name: \"SomeProject\",\n  dependencies: [\n    .package(url: \"https://github.com/dankinsoid/SimpleCoders.git\", from: \"1.5.0\")\n    ],\n  targets: [\n    .target(name: \"SomeProject\", dependencies: [\"SimpleCoders\"])\n    ]\n)\n```\n```ruby\n$ swift build\n```\n2.  [CocoaPods](https://cocoapods.org)\n\nAdd the following line to your Podfile:\n```ruby\npod 'SimpleCoders'\n```\nand run `pod update` from the podfile directory first.\n\n## Author\n\nVoidilov, voidilov@gmail.com\n\n## License\n\nVDCodable 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%2Fdankinsoid%2Fsimplecoders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankinsoid%2Fsimplecoders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Fsimplecoders/lists"}