{"id":21357623,"url":"https://github.com/ronnygunawan/protobuf-converters","last_synced_at":"2025-10-03T22:44:47.361Z","repository":{"id":44600512,"uuid":"414535902","full_name":"ronnygunawan/protobuf-converters","owner":"ronnygunawan","description":"Use Protobuf generated classes in System.Text.Json or MessagePack serialization.","archived":false,"fork":false,"pushed_at":"2022-02-05T17:31:31.000Z","size":55,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T07:51:05.133Z","etag":null,"topics":["grpc","json","messagepack","protobuf","signalr"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ronnygunawan.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}},"created_at":"2021-10-07T09:20:24.000Z","updated_at":"2023-07-04T17:12:05.000Z","dependencies_parsed_at":"2022-09-08T23:31:27.245Z","dependency_job_id":null,"html_url":"https://github.com/ronnygunawan/protobuf-converters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronnygunawan/protobuf-converters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnygunawan%2Fprotobuf-converters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnygunawan%2Fprotobuf-converters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnygunawan%2Fprotobuf-converters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnygunawan%2Fprotobuf-converters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronnygunawan","download_url":"https://codeload.github.com/ronnygunawan/protobuf-converters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnygunawan%2Fprotobuf-converters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267432984,"owners_count":24086319,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["grpc","json","messagepack","protobuf","signalr"],"created_at":"2024-11-22T05:08:41.231Z","updated_at":"2025-10-03T22:44:47.267Z","avatar_url":"https://github.com/ronnygunawan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RG.ProtobufConverters.Json\n\n[![NuGet](https://img.shields.io/nuget/v/RG.ProtobufConverters.Json.svg)](https://www.nuget.org/packages/RG.ProtobufConverters.Json/) [![.NET](https://github.com/ronnygunawan/protobuf-converters/actions/workflows/dotnet.yml/badge.svg)](https://github.com/ronnygunawan/protobuf-converters/actions/workflows/dotnet.yml)\n\nUse Protobuf generated classes in System.Text.Json serialization.\n\n```cs\n// Serialize to json\nstring json = foo.SerializeToJson();\n\n// Deserialize from json\nFooMessage? foo = json.DeserializeToProtobufMessage\u003cFooMessage\u003e();\n```\n\n## Use Protobuf classes in SignalR\n\nConfigure hub:\n```cs\nservices.AddSignalR()\n    .AddJsonProtocol(options =\u003e options.PayloadSerializerOptions = ProtobufJsonConverter.Options);\n```\n\nConfigure client:\n```cs\nvar connection = new HubConnectionBuilder()\n    .WithUrl(\"https://yoururl/yourhub\")\n    .AddJsonProtocol(options =\u003e options.PayloadSerializerOptions = ProtobufJsonConverter.Options)\n    .Build();\n```\n\n---\n\n# RG.ProtobufConverters.MessagePack\n\n[![NuGet](https://img.shields.io/nuget/v/RG.ProtobufConverters.MessagePack.svg)](https://www.nuget.org/packages/RG.ProtobufConverters.MessagePack/) [![.NET](https://github.com/ronnygunawan/protobuf-converters/actions/workflows/dotnet.yml/badge.svg)](https://github.com/ronnygunawan/protobuf-converters/actions/workflows/dotnet.yml)\n\n```cs\n// Serialize to MessagePack bytes\nbyte[] bytes = foo.SerializeUsingMessagePack();\n\n// Deserialize from MessagePack bytes\nFooMessage? foo = bytes.DeserializeUsingMessagePack();\n```\n\n## Use Protobuf classes in SignalR\n\nConfigure hub:\n```cs\nservices.AddSignalR()\n    .AddMessagePackProtocol(options =\u003e options.SerializerOptions = ProtobufResolver.Options);\n```\n\nConfigure client:\n```cs\nvar connection = new HubConnectionBuilder()\n    .WithUrl(\"https://yoururl/yourhub\")\n    .AddMessagePackProtocol(options =\u003e options.SerializerOptions = ProtobufResolver.Options)\n    .Build();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnygunawan%2Fprotobuf-converters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronnygunawan%2Fprotobuf-converters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnygunawan%2Fprotobuf-converters/lists"}