{"id":16728465,"url":"https://github.com/tmc/protoc-gen-d2","last_synced_at":"2025-04-10T11:03:40.600Z","repository":{"id":189657088,"uuid":"681045460","full_name":"tmc/protoc-gen-d2","owner":"tmc","description":"protoc-gen-d2","archived":false,"fork":false,"pushed_at":"2023-10-01T01:30:37.000Z","size":106,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:47:15.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tmc.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}},"created_at":"2023-08-21T06:33:25.000Z","updated_at":"2024-06-14T20:23:52.000Z","dependencies_parsed_at":"2025-04-10T11:01:28.045Z","dependency_job_id":null,"html_url":"https://github.com/tmc/protoc-gen-d2","commit_stats":null,"previous_names":["tmc/protoc-gen-d2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fprotoc-gen-d2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fprotoc-gen-d2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fprotoc-gen-d2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fprotoc-gen-d2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmc","download_url":"https://codeload.github.com/tmc/protoc-gen-d2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248207139,"owners_count":21065194,"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":"2024-10-12T23:10:27.002Z","updated_at":"2025-04-10T11:03:40.574Z","avatar_url":"https://github.com/tmc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-d2\n\nThis project is a protoc plugin to render a d2 diagrams of protobuf packages.\n\n\nExample:\n\n![example](./testdata/acme/test/v1/test.erd.svg)\n\nis rendered from\n\n[./testdata/acme/test/v1/test.proto](./testdata/acme/test/v1/test.proto)\n```proto\n\nsyntax = \"proto3\";\n\npackage acme.test.v1;\n\n// Sample service for our test proto.\nservice TestService {\n  // GetTestMessage retrieves a TestMessage\n  rpc GetTestMessage (GetTestMessageRequest) returns (GetTestMessageResponse);\n  // CreateTestMessage creates a new TestMessage.\n  rpc CreateTestMessage (CreateTestMessageRequest) returns (CreateTestMessageResponse);\n}\n\n// Status enumeration.\nenum Status {\n  STATUS_UNSPECIFIED = 0;\n  STATUS_ACTIVE = 1;\n  STATUS_INACTIVE = 2;\n}\n\n// Address nested message.\nmessage Address {\n  string street = 1;\n  string city = 2;\n  string state = 3;\n  string country = 4;\n}\n\n// Sample message representing our test proto.\nmessage TestMessage {\n  string id = 1;\n  string name = 2;\n  repeated string items = 3;\n  Status status = 4; // Enumeration field\n  Address address = 5; // Nested message\n  map\u003cstring, string\u003e metadata = 6; // Map field\n  oneof payload { // Oneof field\n    string text_payload = 7;\n    bytes binary_payload = 8;\n  }\n}\n\n\n// GetTestMessageRequest is the request for GetTestMessage.\nmessage GetTestMessageRequest {\n  string id = 1;\n}\n\n// GetTestMessageResponse is the response for GetTestMessage.\nmessage GetTestMessageResponse {\n  TestMessage message = 1;\n}\n\n// CreateTestMessageRequest is the request for CreateTestMessage.\nmessage CreateTestMessageRequest {\n  TestMessage message = 1;\n}\n\n// CreateTestMessageResponse is the response for CreateTestMessage.\nmessage CreateTestMessageResponse {\n  TestMessage message = 1;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fprotoc-gen-d2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmc%2Fprotoc-gen-d2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fprotoc-gen-d2/lists"}