{"id":21260324,"url":"https://github.com/nlm/protoc-gen-mock","last_synced_at":"2026-05-17T17:37:55.968Z","repository":{"id":44404444,"uuid":"512232762","full_name":"nlm/protoc-gen-mock","owner":"nlm","description":"WIP: mock generator for gRPC services","archived":false,"fork":false,"pushed_at":"2022-07-19T10:42:56.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T06:44:45.872Z","etag":null,"topics":["grpc","protoc-gen","protocol-buffers"],"latest_commit_sha":null,"homepage":"","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/nlm.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":"2022-07-09T16:26:08.000Z","updated_at":"2025-01-29T23:03:02.000Z","dependencies_parsed_at":"2022-07-18T09:09:11.938Z","dependency_job_id":null,"html_url":"https://github.com/nlm/protoc-gen-mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nlm/protoc-gen-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fprotoc-gen-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fprotoc-gen-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fprotoc-gen-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fprotoc-gen-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlm","download_url":"https://codeload.github.com/nlm/protoc-gen-mock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fprotoc-gen-mock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268067919,"owners_count":24190452,"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-31T02:00:08.723Z","response_time":66,"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","protoc-gen","protocol-buffers"],"created_at":"2024-11-21T04:17:42.717Z","updated_at":"2026-05-17T17:37:50.948Z","avatar_url":"https://github.com/nlm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-mock\n\nmock generator from protobuf and grpc\n\n## build\n\nbuild the `protoc-gen-mock` plugin\n\n```sh\nmake build\n```\n\n## run the demo\n\nThis demo includes a gRPC server and a gRPC gateway for convenience.\nWhat you will want to do is play with `cmd/demo/main.go` to manipulate mocks.\n\nget submodules (if you want/need to regen proto files)\n\n```sh\ngit submodule init\ngit submodule update\n```\n\nrun the demo gRPC server, it will listen on port 9090\n\n```bash\nmake rundemo\n```\n\nin another terminal, run the demo gRPC gateway, it will listen on port 8080\n\n```sh\nmake rundemogw\n```\n\nin another terminal, query the gRPC gateway\n\n```sh\n$ curl -s http://localhost:8080/api/v1/persons\n{\"code\":2,\"message\":\"example error\",\"details\":[]}\n\n$ curl -s http://localhost:8080/api/v1/persons/jdoe\n{\"id\":\"123\",\"name\":\"John Doe\",\"email\":\"jdoe@example.com\"}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fprotoc-gen-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlm%2Fprotoc-gen-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fprotoc-gen-mock/lists"}