{"id":43787043,"url":"https://github.com/mikros-dev/protoc-gen-mikros-extensions","last_synced_at":"2026-02-18T21:04:34.249Z","repository":{"id":257821465,"uuid":"816759219","full_name":"mikros-dev/protoc-gen-mikros-extensions","owner":"mikros-dev","description":"A mikros framework protoc/buf plugin to extend features for services and applications","archived":false,"fork":false,"pushed_at":"2026-02-02T10:35:53.000Z","size":522,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-02T23:39:09.252Z","etag":null,"topics":["buf","plugin","protobuf","protoc"],"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/mikros-dev.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":"2024-06-18T10:56:25.000Z","updated_at":"2025-12-29T00:48:05.000Z","dependencies_parsed_at":"2025-12-29T03:15:28.455Z","dependency_job_id":null,"html_url":"https://github.com/mikros-dev/protoc-gen-mikros-extensions","commit_stats":null,"previous_names":["mikros-dev/protoc-gen-mikros-extensions","rsfreitas/protoc-gen-mikros-extensions"],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/mikros-dev/protoc-gen-mikros-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikros-dev%2Fprotoc-gen-mikros-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikros-dev%2Fprotoc-gen-mikros-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikros-dev%2Fprotoc-gen-mikros-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikros-dev%2Fprotoc-gen-mikros-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikros-dev","download_url":"https://codeload.github.com/mikros-dev/protoc-gen-mikros-extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikros-dev%2Fprotoc-gen-mikros-extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["buf","plugin","protobuf","protoc"],"created_at":"2026-02-05T19:07:01.765Z","updated_at":"2026-02-05T19:07:02.277Z","avatar_url":"https://github.com/mikros-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-mikros-extensions\n\nA mikros framework protoc/buf plugin to extend features for services and applications.\n\n## Features\n\nThe plugin adds the following features for generated source code:\n\n* New entities for domain, inbound and outbound messages.\n* Validation for wire input messages.\n* HTTP server routes for HTTP services.\n* Unit test helpers API for creating entities.\n* The possibility of extending the plugin using [addons](docs/addons.md).\n\n## Installation and usage into projects\n\nTo install the plugin latest version and use it in your projects, use the command:\n```bash\ngo install github.com/mikros-dev/protoc-gen-mikros-extensions@latest\n```\n\nAssuming that a project is using [buf](https://buf.build/docs/) tool to compile\nand manage protobuf files, this plugin can be used the following way:\n\n\u003e Note: We assume buf version 2 here, if you're using version 1, use buf docs\n\u003e to check how to set a local plugin (or to migrate your settings to version 2).\n\n* Edit your **buf.gen.yaml** file, in the `plugins` section and add the following\nexcerpt:\n```yaml\nplugins:\n  - local: protoc-gen-mikros-extensions\n    out: gen # Where your generated files will be\n    opt:\n      - settings=extensions_settings.toml # The file name of your plugin settings\n```\n\n* Edit the **buf.yaml** file, in the `deps` section, add the following excerpt:\n```yaml\ndeps:\n  - buf.build/mikros-dev/protoc-gen-mikros-extensions\n```\n\n* Execute the command:\n```bash\nbuf dep update\n```\n\n## Building and installing locally\n\nIn order to compile and install the plugin locally you'll need to follow the steps:\n\n* Install the go compiler;\n* Execute the commands:\n  * `go generate`\n  * `go build \u0026\u0026 go install`\n\n## Protobuf extensions available\n\n* [Service](docs/service.md)\n* [Enum](docs/enum.md)\n* [RPC Methods](docs/method.md)\n* [Fields](docs/field.md)\n* [Messages](docs/message.md)\n\n## Usage\n\nThe plugin should be used according your environment, if you're using `buf` or\n`protoc`. It does not need any mandatory option to execute over your proto files.\n\nBut, if you want to use custom settings, the option named **settings** must point\nto a valid TOML file in your system. Its syntax details are described [here](docs/settings.md).\n\n## Example\n\nUsing the extensions inside a .proto file:\n\n```protobuf\nsyntax = \"proto3\";\n\npackage services.person;\n\nimport \"mikros_extensions.proto\";\n\noption go_package = \"github.com/example/services/gen/go/services/person;person;\";\n\nservice PersonService {\n  rpc CreatePerson(CreatePersonRequest) returns (CreatePersonResponse);\n}\n\nmessage CreatePersonRequest {\n  string name = 1;\n  int32 age = 2;\n}\n\nmessage CreatePersonResponse {\n  PersonWire person = 1;\n}\n\nmessage PersonWire {\n  string id = 1;\n  string name = 2;\n  int32 age = 3;\n}\n```\n\nFor a more complete example, check the [examples](examples/README.md) directory.\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikros-dev%2Fprotoc-gen-mikros-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikros-dev%2Fprotoc-gen-mikros-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikros-dev%2Fprotoc-gen-mikros-extensions/lists"}