{"id":13429643,"url":"https://github.com/crystal-community/msgpack-crystal","last_synced_at":"2025-07-27T14:31:07.208Z","repository":{"id":32487943,"uuid":"36068409","full_name":"crystal-community/msgpack-crystal","owner":"crystal-community","description":"MessagePack implementation in Crystal msgpack.org[Crystal]","archived":false,"fork":false,"pushed_at":"2023-06-03T20:31:14.000Z","size":435,"stargazers_count":133,"open_issues_count":3,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-06T00:04:50.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/crystal-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-05-22T11:18:31.000Z","updated_at":"2024-03-09T22:05:12.000Z","dependencies_parsed_at":"2024-05-02T19:59:42.003Z","dependency_job_id":"360808fa-e424-4a7c-9d06-16cbcef9990d","html_url":"https://github.com/crystal-community/msgpack-crystal","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fmsgpack-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fmsgpack-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fmsgpack-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fmsgpack-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crystal-community","download_url":"https://codeload.github.com/crystal-community/msgpack-crystal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227810270,"owners_count":17823176,"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-07-31T02:00:43.067Z","updated_at":"2024-12-02T22:15:19.112Z","avatar_url":"https://github.com/crystal-community.png","language":"Crystal","funding_links":[],"categories":["Networking","Network Protocols","Crystal","\u003ca name=\"Crystal\"\u003e\u003c/a\u003eCrystal"],"sub_categories":[],"readme":"# MessagePack\n[![Build Status](https://github.com/crystal-community/msgpack-crystal/actions/workflows/ci.yml/badge.svg)](https://github.com/crystal-community/msgpack-crystal/actions/workflows/ci.yml?query=branch%3Amaster+event%3Apush)\n\nMessagePack implementation in Crystal.\n\n## Installation\n\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  msgpack:\n    github: crystal-community/msgpack-crystal\n```\n\n## Usage\n\n```crystal\nrequire \"msgpack\"\n\nclass Location\n  include MessagePack::Serializable\n\n  property lat : Float64\n  property lng : Float64\nend\n\nclass House\n  include MessagePack::Serializable\n\n  property address : String\n  property location : Location?\nend\n\nhouse = House.from_msgpack({address: \"Road12\", location: {lat: 12.3, lng: 34.5}}.to_msgpack)\np house\n# =\u003e \u003cHouse:0x1b06de0 @address=\"Road12\", @location=#\u003cLocation:0x1b06dc0 @lat=12.3, @lng=34.5\u003e\u003e\n\np house.to_msgpack\n# =\u003e Bytes[130, 167, 97, 100, 100, 114, 101, 115, 115, 166, 82, 111, 97, 100, ...\n\nhouse.address = \"Something\"\nhouse = House.from_msgpack(house.to_msgpack)\np house\n# =\u003e #\u003cHouse:0x13f0d80 @address=\"Something\", @location=#\u003cLocation:0x13f0d60 @lat=12.3, @lng=34.5\u003e\u003e\n\nhouse = House.from_msgpack({\"address\" =\u003e \"Crystal Road 1234\"}.to_msgpack)\np house\n# =\u003e \u003cHouse:0x1b06d80 @address=\"Crystal Road 1234\", @location=nil\u003e\n```\n\n## More Examples\n\n[examples](https://github.com/benoist/msgpack-crystal/tree/master/examples)\n\n## Msgpack-RPC\n\n[implemented by simple_rpc shard](https://github.com/kostya/simple_rpc)\n\n## Copyright\n\nCopyright 2015 Benoist Claassen\n\n_Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License You may obtain a copy of the License at_\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n_Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-community%2Fmsgpack-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystal-community%2Fmsgpack-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-community%2Fmsgpack-crystal/lists"}