Skip to content
SPECIFICTION
Get listed

Granc vs grpcmock-go

Granc

codeberg.org

grpcmock-go

github.com

Side by side

FigureGrancgrpcmock-go
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
Self-hosted—Yes
Plans published11
Spec score · gRPC Tools7.7 (#15)8.1 (#6)
LicenseThe project is offered under either the Apache License 2.0 or the MIT license, at the user’s option.The repository identifies its license as MIT.

Plans

Granc

  • Free/open-source softwareFree

Granc pricing →

grpcmock-go

  • Open-source Go moduleFree

grpcmock-go pricing →

In their own words

Granc

Granc is a free, open-source Linux command-line tool written in Rust for dynamic gRPC calls. It sends JSON payloads without requiring service Protobuf files to be compiled into the client, translating JSON to Protobuf and back at runtime. Using a descriptor, it detects unary, server-streaming, client-streaming, and bidirectional RPCs. Schemas can come from server reflection or a local binary FileDescriptorSet file. Commands list services and describe services, messages, and enums. Granc also creates static Markdown documentation cross-linked between services and types. Requests may include custom headers such as authorization or tracing metadata, and JSON is validated before transmission. The core logic is available as a separate library crate for integration tests, proxies, and automation tools. Installation is documented with cargo install --locked granc. The project has moved to Codeberg, while its GitHub repository was archived on March 9, 2026. It is offered under Apache License 2.0 or MIT. TLS support with configurable roots and client identity is on the roadmap.

Visit codeberg.org

grpcmock-go

grpcmock-go is a free, MIT-licensed Go module providing gRPC testing utilities. It helps tests mock gRPC servers, configure expectations for methods, headers, and payloads, and invoke client calls. Supported methods include unary, client-streaming, server-streaming, and bidirectional-streaming patterns. Request matching can use exact values, regular expressions, JSON, or custom matchers. Mock responses may return payloads, errors, or custom-handler results, and streaming client invocations can use custom handlers. Services can be registered from generated Go code, service instances, or individual methods when generated code is unavailable. The project recommends MockServerWithBufConn for in-memory application testing, with examples using bufconn listeners and context dialers. Installation uses `go get go.nhat.io/grpcmock`, and Go 1.25 or later is required. GitHub lists v0.34.0, released December 12, 2025, as the latest release. The Open-source Go module plan costs nothing.

Visit github.com