protoc-gen-pothos

JSON →
library 0.8.0 ·javascript
verified Jun 7, 2026

protoc-gen-pothos (v0.8.0) is a protoc plugin that generates Pothos GraphQL DSL code from Protocol Buffers IDL files. It integrates with ts-proto for TypeScript type definitions and requires Buf or protoc for code generation. Released roughly monthly, it supports custom scalar mappings, optional emission of imported file types, and configuration via Buf plugins. Unlike manual GraphQL schema building, it auto-generates Pothos builder calls corresponding to protobuf messages, enums, services, and fields, reducing boilerplate. Requires Pothos GraphQL and ts-proto as peer dependencies, and is designed for TypeScript server applications using GraphQL and gRPC.