Editor Extensions » Protobuf Generator

Protobuf Generator

The "Protobuf Generator" extension allows you to generate Protocol Buffers (protobuf) definitions based on your project's data model.

In the extensions panel, click on the "Protobuf Generator" extension. A modal window will appear where you need to configure the following settings:

  • Project Identifier: A unique name or identifier for this project used within the generated protobuf package and code files.
  • Go Module: The Go module path (e.g., github.com/yourusername/project) if you plan to import the generated files into a Go project.
  • Generate Protoc: If enabled, the extension will run the protoc compiler to output fully generated compiler stubs (such as .pb.go files) alongside the raw .proto definitions. If disabled, only the raw .proto files will be produced.

Once you have filled out these settings, click the execute button. The extension will:

  1. Resolve your data model structure.
  2. Generate the appropriate proto schemas (and optionally run the compiler).
  3. Package all output files into a single ZIP archive.
  4. Provide a secure download link for the generated ZIP file.

Run via CLI

You can also run the Protobuf Generator extension directly on your machine using the nuzur CLI. This writes the generated protobuf files directly to your local filesystem without requiring you to download a ZIP archive from the browser:

nuzur-cli run-extension

The CLI will guide you to select your project, version, configuration settings, and the output folder where the generated files will be written.

Next steps