{"id":18360579,"url":"https://github.com/samasaur1/bencodekit","last_synced_at":"2025-04-10T03:36:30.107Z","repository":{"id":261120608,"uuid":"882581960","full_name":"Samasaur1/BencodeKit","owner":"Samasaur1","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-03T17:47:39.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T18:36:57.399Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samasaur1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-03T07:15:17.000Z","updated_at":"2025-04-03T17:47:43.000Z","dependencies_parsed_at":"2024-11-04T20:32:19.794Z","dependency_job_id":"92c25d4a-844d-4f41-a50a-8ca1d4c14696","html_url":"https://github.com/Samasaur1/BencodeKit","commit_stats":null,"previous_names":["samasaur1/bencodekit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FBencodeKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FBencodeKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FBencodeKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FBencodeKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samasaur1","download_url":"https://codeload.github.com/Samasaur1/BencodeKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248153488,"owners_count":21056441,"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-05T22:29:01.394Z","updated_at":"2025-04-10T03:36:30.088Z","avatar_url":"https://github.com/Samasaur1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BencodeKit\n\nThis package provides the `BencodeEncoder` and `BencodeDecoder` types, which allow converting `Codable` structs to data and back.\n\n### Usage\n\nSee the `Tests/BencodeKitTests` directory for example usage.\n\n### Strengths\n\nThis library integrates well with the existing `Codable` protocols and follows the same pattern as `JSONEncoder`/`JSONDecoder`, which means its use is familiar to Swift developers.\n\n### Limitations\n\nWe are limited to the types that bencode supports. This means that for things such as `Bool`s, the two options are to immediately crash (what we do), to encode them as types that bencode supports, or to introduce a `BenCodable` struct that conforms to `Codable` but doesn't allow `Bool`s or other non-bencode-supported types.\n\nThere are also some cases where this library will crash instead of throwing an error that can be handled, due to how it is structured internally. This is on my list to improve.\n\n### Notes\n\nA huge amount of credit goes to \u003chttps://github.com/Flight-School/MessagePack/tree/master\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fbencodekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamasaur1%2Fbencodekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fbencodekit/lists"}