{"id":50508795,"url":"https://github.com/twilic/twilic-lua","last_synced_at":"2026-06-02T18:30:55.668Z","repository":{"id":361989167,"uuid":"1256765058","full_name":"twilic/twilic-lua","owner":"twilic","description":"Lua implementation of a fast, compact binary wire format for modern data transport.","archived":false,"fork":false,"pushed_at":"2026-06-02T04:32:11.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T06:22:38.535Z","etag":null,"topics":["lua","serialization","twilic"],"latest_commit_sha":null,"homepage":null,"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/twilic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T04:25:19.000Z","updated_at":"2026-06-02T04:32:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/twilic/twilic-lua","commit_stats":null,"previous_names":["twilic/twilic-lua"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/twilic/twilic-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilic%2Ftwilic-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilic%2Ftwilic-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilic%2Ftwilic-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilic%2Ftwilic-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twilic","download_url":"https://codeload.github.com/twilic/twilic-lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilic%2Ftwilic-lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33833277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":["lua","serialization","twilic"],"created_at":"2026-06-02T18:30:53.999Z","updated_at":"2026-06-02T18:30:55.662Z","avatar_url":"https://github.com/twilic.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilic (Lua)\n\nLua 5.4 implementation of the Twilic wire format and session-aware encoder/decoder.\n\nThis module's default `Twilic.encode` / `Twilic.decode` API targets Twilic v2. Stateful protocol features use `new_twilic_codec()` and `new_session_encoder()`.\n\n## Project layout\n\n```text\ntwilic-lua/\n  src/twilic/init.lua       # public API\n  src/twilic/core/          # wire, model, codec, session, protocol, v2\n  spec/                     # busted tests (ported from twilic-ruby)\n  bin/                      # Rust interop CLI scripts\n  scripts/                  # interop smoke checks\n```\n\n## Requirements\n\n- Lua 5.4\n- [LuaRocks](https://luarocks.org/) (for `busted` in development)\n\n## Install (LuaRocks)\n\n```bash\nluarocks install twilic-3.0.0-1.rockspec\n```\n\nOr use the tree directly by setting `LUA_PATH`:\n\n```bash\nexport LUA_PATH=\"$(pwd)/src/?.lua;$(pwd)/src/?/init.lua;;\"\n```\n\n## Quick start\n\n```lua\nlocal twilic = require(\"twilic\")\n\nlocal value = twilic.map({\n  id = twilic.u64(1001),\n  name = twilic.string(\"alice\"),\n})\n\nlocal bytes = twilic.encode(value)\nlocal decoded = twilic.decode(bytes)\nprint(twilic.equal(decoded, value)) -- true\n```\n\n## Session encoder\n\n```lua\nlocal twilic = require(\"twilic\")\n\nlocal enc = twilic.new_session_encoder()\nlocal value = twilic.map({\n  id = twilic.u64(1),\n  role = twilic.string(\"admin\"),\n})\nlocal bytes = enc:encode(value)\n```\n\n## Development\n\n```bash\nluarocks install busted\nexport LUA_PATH=\"src/?.lua;src/?/init.lua;;\"\nbusted spec\n```\n\nRust interop (requires `cargo` and optional sibling `twilic-rust`):\n\n```bash\nbash scripts/check-interop.sh\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilic%2Ftwilic-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwilic%2Ftwilic-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilic%2Ftwilic-lua/lists"}