Instant gRPC & REST mock servers
Instant gRPC & REST mock servers
FauxRPC generates fake implementations of gRPC, gRPC-Web, Connect, and REST services directly from Protobuf definitions. It solves the bottleneck of frontend and other backend teams waiting on backend engineers to finish their APIs. Spinning up a mock server lets you start building and testing application logic against a realistic interface immediately. The system supports loading schemas dynamically from multiple sources like local files, the Buf Schema Registry, or server reflection. Built on ConnectRPC, it handles multiple protocols out of the box and transcodes HTTP requests to gRPC, letting you test REST endpoints alongside your gRPC services seamlessly. FauxRPC automatically generates fake data that strictly respects your protovalidate constraints. This ensures your mock data is structurally accurate and adheres to business rules without manual effort. For specific edge cases or predictable testing behaviors, you can easily define custom stubs to override the auto-generated data. A built-in web dashboard provides real-time insights into request logs, schemas, and registered stubs. Go developers can also use its Testcontainers integration to spin up isolated mock servers during automated tests, keeping environments clean and reliable without relying on heavy external dependencies.