{"id":15694389,"url":"https://github.com/kropp/kotlinx.serialization.msgpack","last_synced_at":"2025-05-08T20:58:00.075Z","repository":{"id":145599475,"uuid":"164493180","full_name":"kropp/kotlinx.serialization.msgpack","owner":"kropp","description":"Kotlin Serialization extension for MessagePack - msgpack.org[Kotlin Serialization]","archived":false,"fork":false,"pushed_at":"2020-10-02T10:12:11.000Z","size":173,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T20:57:53.905Z","etag":null,"topics":["kotlin","kotlin-serialization","messagepack","msgpack"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kropp.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":"2019-01-07T20:48:08.000Z","updated_at":"2022-10-31T03:20:10.000Z","dependencies_parsed_at":"2023-09-17T02:22:12.409Z","dependency_job_id":null,"html_url":"https://github.com/kropp/kotlinx.serialization.msgpack","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/kropp%2Fkotlinx.serialization.msgpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kropp%2Fkotlinx.serialization.msgpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kropp%2Fkotlinx.serialization.msgpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kropp%2Fkotlinx.serialization.msgpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kropp","download_url":"https://codeload.github.com/kropp/kotlinx.serialization.msgpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149568,"owners_count":21861719,"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":["kotlin","kotlin-serialization","messagepack","msgpack"],"created_at":"2024-10-03T18:57:43.062Z","updated_at":"2025-05-08T20:58:00.070Z","avatar_url":"https://github.com/kropp.png","language":"Kotlin","readme":"# Kotlin Serialization MessagePack library\n\nThis library extends [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization/) framework to support\n[MessagePack](https://msgpack.org/) format.\n\n## Implementation details\n\nWhen multiple equivalent encodings exist, the shortest (in terms of number of bytes) is used.\nDecoders decode any format and convert it to a required type (possibly loosing precision or significant higher digits)\n\nThus, not for any input decoding and encoding back will produce the exact same byte array. However, for any `@Serializable` class\nencoding and decoding should result in the equivalent instance.\n\n## Current Limitations\n\n* Only JVM is supported as of now\n* Unsigned integers can't be encoded because kotlinx.serialization framework [doesn't support `inline` classes](https://github.com/Kotlin/kotlinx.serialization/issues/259) (yet)\n* MessagePack extensions are not supported\n\n## Verification\n\nThe implementation is tested against https://github.com/kawanet/msgpack-test-suite/\n\n## Usage\n\n```kotlin\nimport com.github.kropp.messagepack.MessagePack\n\n@Serializable\ndata class Demo(val compact: Boolean, val schema: Int)\n\nval bytes = byteArrayOf(0x82.toByte(), 0xA7.toByte(), 0x63, 0x6F, 0x6D, 0x70, 0x61, 0x63, 0x74, 0xC3.toByte(), 0xA6.toByte(), 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x00)\nval demo = MessagePack.decode(Demo.serializer(), bytes)\n\nassertEquals(demo.compact, true)\nassertEquals(demo.schema, 0)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkropp%2Fkotlinx.serialization.msgpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkropp%2Fkotlinx.serialization.msgpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkropp%2Fkotlinx.serialization.msgpack/lists"}