{"id":13778068,"url":"https://github.com/chronolaw/lua-resty-msgpack","last_synced_at":"2025-05-13T10:40:29.877Z","repository":{"id":85209165,"uuid":"114504157","full_name":"chronolaw/lua-resty-msgpack","owner":"chronolaw","description":"Lua messagepack for ngx_lua/stream_lua/OpenResty","archived":false,"fork":false,"pushed_at":"2018-07-11T02:28:59.000Z","size":17,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:53:00.371Z","etag":null,"topics":["messagepack","ngx","openresty"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/chronolaw.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":"2017-12-17T02:32:24.000Z","updated_at":"2023-04-07T07:27:55.000Z","dependencies_parsed_at":"2023-05-31T05:00:42.650Z","dependency_job_id":null,"html_url":"https://github.com/chronolaw/lua-resty-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/chronolaw%2Flua-resty-msgpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronolaw%2Flua-resty-msgpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronolaw%2Flua-resty-msgpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronolaw%2Flua-resty-msgpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chronolaw","download_url":"https://codeload.github.com/chronolaw/lua-resty-msgpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253559924,"owners_count":21927701,"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":["messagepack","ngx","openresty"],"created_at":"2024-08-03T18:00:50.954Z","updated_at":"2025-05-13T10:40:29.829Z","avatar_url":"https://github.com/chronolaw.png","language":"Lua","readme":"# lua-resty-msgpack\nLua messagepack for ngx_lua/stream_lua/OpenResty\n\nThis is an opm wrapper for [lua-MessagePack](https://github.com/fperrad/lua-MessagePack.git)(But it is broken now)\n\nAnother choice is [luajit-msgpack-pure](https://github.com/catwell/luajit-msgpack-pure), but it has a different API.\n\n## Installation\n\nPlease use `opm`, such as :\n\n```lua\nopm get chronolaw/lua-resty-msgpack\n```\n\n## Usage\n\n### Basics\n\n```lua\nlocal mp = require \"resty.msgpack\"\n\nlocal my_data = {this = {\"is\",4,\"test\"}}\nlocal encoded = mp.pack(my_data)\nlocal decoded = mp.unpack(encoded)\n```\n\n### Concatenating encoded data\n\n```lua\nlocal mp = require \"resty.msgpack\"\n\nlocal my_data_1 = 42\nlocal my_data_2 = \"foo\"\nlocal encoded = mp.pack(my_data_1) .. mp.pack(my_data_2)\n\nfor _,v in mp.unpacker(encoded) do\n    ngx.say(\"unpack is \", type(v), \" : \", v)\nend\n```\n","funding_links":[],"categories":["Libraries","Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronolaw%2Flua-resty-msgpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchronolaw%2Flua-resty-msgpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronolaw%2Flua-resty-msgpack/lists"}