{"id":50316338,"url":"https://github.com/kercylan98/vivid-proto","last_synced_at":"2026-05-29T00:03:05.373Z","repository":{"id":360609294,"uuid":"1151272434","full_name":"kercylan98/vivid-proto","owner":"kercylan98","description":"Protocol Buffers Codec for Vivid Remoting — optional serialization for cross-node Actor messages.","archived":false,"fork":false,"pushed_at":"2026-02-06T09:05:48.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T06:32:04.729Z","etag":null,"topics":["actor-model","codec","go","golang","protobuf","protocol-buffers","remoting","serialization","vivid"],"latest_commit_sha":null,"homepage":"https://kercylan98.github.io/vivid/docs/integrations/vivid-proto","language":"Go","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/kercylan98.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-06T09:03:41.000Z","updated_at":"2026-02-06T09:10:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kercylan98/vivid-proto","commit_stats":null,"previous_names":["kercylan98/vivid-proto"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kercylan98/vivid-proto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kercylan98%2Fvivid-proto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kercylan98%2Fvivid-proto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kercylan98%2Fvivid-proto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kercylan98%2Fvivid-proto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kercylan98","download_url":"https://codeload.github.com/kercylan98/vivid-proto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kercylan98%2Fvivid-proto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33631002,"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-05-28T02:00:06.440Z","response_time":99,"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":["actor-model","codec","go","golang","protobuf","protocol-buffers","remoting","serialization","vivid"],"created_at":"2026-05-29T00:03:03.650Z","updated_at":"2026-05-29T00:03:05.367Z","avatar_url":"https://github.com/kercylan98.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/kercylan98/vivid-proto.svg)](https://pkg.go.dev/github.com/kercylan98/vivid-proto)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Go Version](https://img.shields.io/badge/Go-1.25.1+-00ADD8?style=flat\u0026logo=go)](https://golang.org)\n\n**vivid-proto** 为 [Vivid](https://github.com/kercylan98/vivid) Actor 库提供基于 **Protocol Buffers** 的远程消息编解码器（Codec），用于 Remoting 跨节点通信时的消息序列化与反序列化。\n\n## 特性\n\n- **实现 vivid.Codec 接口**：可直接作为 `WithActorSystemCodec` 传入，与 Vivid Remoting 无缝集成\n- **类型名 + 载荷**：通过包装消息（类型全名 + 二进制载荷）支持多 Proto 消息类型，无需为每种消息单独注册\n- **依赖精简**：仅依赖 `github.com/kercylan98/vivid` 与 `google.golang.org/protobuf`\n\n## 系统要求与安装\n\n- **Go**：1.25.1+\n- **安装**：\n\n```bash\ngo get github.com/kercylan98/vivid-proto\n```\n\n## 使用方式\n\n1. 在业务中定义 `.proto` 并生成 Go 代码（需在运行时被 `protoregistry.GlobalTypes` 注册，通常由 `protoc` 生成代码中的 `init` 完成）。\n2. 创建 Codec 并传给 Vivid 的 ActorSystem：\n\n```go\nimport (\n    \"github.com/kercylan98/vivid\"\n    \"github.com/kercylan98/vivid-proto/pkg/codec\"\n    \"github.com/kercylan98/vivid/pkg/bootstrap\"\n)\n\nc := codec.New()\nsystem := bootstrap.NewActorSystem(\n    vivid.WithActorSystemRemoting(\"0.0.0.0:8080\"),\n    vivid.WithActorSystemCodec(c),\n)\n```\n\n跨节点传递的消息须为 `proto.Message`；本地可继续使用任意类型，仅经 Remoting 发送的消息会经此 Codec 编解码。完整示例见 [example](example/)。\n\n## 与 Vivid 的关系\n\n- **vivid**：[高性能、类型安全的 Go Actor 模型库](https://github.com/kercylan98/vivid)，提供 Actor 系统、Remoting、监督策略等。\n- **vivid-proto**：为 Vivid 提供可选的 Proto Codec 实现，用于 Remoting 消息序列化。未使用 Remoting 或采用其他 Codec/RegisterCustomMessage 时无需本库。\n\n## 许可证\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkercylan98%2Fvivid-proto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkercylan98%2Fvivid-proto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkercylan98%2Fvivid-proto/lists"}