{"id":26056862,"url":"https://github.com/cloudwego/prutal","last_synced_at":"2025-07-09T04:05:28.505Z","repository":{"id":279582394,"uuid":"932012447","full_name":"cloudwego/prutal","owner":"cloudwego","description":"Pure Go alternative to protocol buffers with minimum code generation","archived":false,"fork":false,"pushed_at":"2025-05-21T05:50:38.000Z","size":471,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-18T12:09:44.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/cloudwego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2025-02-13T08:13:47.000Z","updated_at":"2025-06-12T11:02:00.000Z","dependencies_parsed_at":"2025-02-26T10:37:26.939Z","dependency_job_id":"f29a9290-bd0b-476b-9988-f0fcea9263ad","html_url":"https://github.com/cloudwego/prutal","commit_stats":null,"previous_names":["cloudwego/prutal"],"tags_count":3,"template":false,"template_full_name":"cloudwego/.github","purl":"pkg:github/cloudwego/prutal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwego%2Fprutal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwego%2Fprutal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwego%2Fprutal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwego%2Fprutal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwego","download_url":"https://codeload.github.com/cloudwego/prutal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwego%2Fprutal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264390709,"owners_count":23600561,"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":"2025-03-08T11:01:54.273Z","updated_at":"2025-07-09T04:05:28.494Z","avatar_url":"https://github.com/cloudwego.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Prutal\n\nPrutal is a pure Go alternative to [protocol buffers](https://protobuf.dev), it covers most of the functionality offered by Protocol Buffers.\n\nPrutal aims to minimize code generation as much as possible while ensuring serialization and maintaining good performance.\n\n**Since Prutal is NOT yet ready for production use, we are not providing usage documentation at this time, nor do we guarantee backward compatibility of the interface.**\n\n## Feature Comparison\n\n| Features | Prutal | Protobuf |\n| -- | -- | -- |\n| Supported Languages | Go | C++, Java, Python, Go, and more |\n| Code Generation | ✅ | ✅ |\n| Generated Code Size | 😄 compact | 😡 bulky |\n| Serialization | ✅ | ✅ |\n| Performance | ⭐️⭐️⭐️⭐️⭐️ | ⭐️⭐️⭐️ |\n| Extensibility | 😄 Package | 😡 Plugin |\n| Compatibility | ✅  (see Protobuf Compatibility) | ✅ |\n| gRPC | ✅ | ✅ |\n| Non-Pointer Field | ✅  (aka gogoproto.nullable) | ❌ |\n\n\n## Protobuf Compatibility\n\n* ✅ Works with code generated by the official Protocol Buffer Go\n* ✅ Parsing .proto file. syntax: proto2, proto3, edition 2023\n* ✅ Protobuf wire format\n    - double, float, bool, string, bytes\n    - int32, int64, uint32, uint64, sint32, sint64\n    - fixed32, fixed64, sfixed64, sfixed64\n    - enum\n    - repeated, map, oneof\n* ✅ Packed / unpack (proto2)\n    - PACKED / EXPANDED (repeated field encoding, edition2023)\n* ✅ Reserved\n* ✅ Unknown Fields\n* ⚠️  JSON support: JSON struct tag only\n* ⚠️  Code generation: Go only\n* ⚠️  [Protocol buffers well-known types](https://protobuf.dev/reference/protobuf/google.protobuf/)\n    - Prutal is able to generate code by reusing pkg [`google.golang.org/protobuf/type`](https://pkg.go.dev/google.golang.org/protobuf/types/known)\n    - Features of type like `Any` would be limited.\n* ❌ [Groups (proto2)](https://protobuf.dev/programming-guides/proto2/#groups)\n* ❌ [Overriding default scalar values (proto2, edition2023)](https://protobuf.dev/programming-guides/proto2/#explicit-default)\n\n\n## How to use Prutal with gRPC\n\n### Use Prutal without `prutalgen`\n\nAll you need is\n```go\nimport (\n    _ \"github.com/cloudwego/prutal/pkg/grpccodec\"\n)\n```\n\n###  Use Prutal with `prutalgen`\n\ncheck [grpc test case](tests/cases/grpc) for a full example\n\n\n## Contributing\n\nContributor guide: [Contributing](CONTRIBUTING.md).\n\n## License\n\nPrutal is licensed under the terms of the Apache license 2.0. See [LICENSE](LICENSE) for more information.\nDependencies used by `prutal` are listed under [licenses](licenses).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwego%2Fprutal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwego%2Fprutal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwego%2Fprutal/lists"}