protoc-gen-js
« Back to VersTracker
Description:
Protocol buffers JavaScript generator plugin
Type: Formula  |  Latest Version: 4.0.1@2  |  Tracked Since: Nov 19, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: protobuf grpc serialization javascript code-generation
Install: brew install protoc-gen-js
About:
protoc-gen-js is a plugin for the Protocol Buffers compiler (protoc) that generates JavaScript code from .proto files. It enables developers to serialize and deserialize structured data efficiently between clients and servers. This tool is essential for building robust web applications that communicate with gRPC or REST APIs using protobufs.
Key Features:
  • Generates idiomatic JavaScript classes and messages
  • Supports both CommonJS and ES6 module formats
  • Seamless integration with the protoc compiler
  • Optimized for size and performance in web environments
Use Cases:
  • Generating client-side code for gRPC-Web services
  • Implementing efficient data serialization for web APIs
  • Building isomorphic JavaScript applications that share data models with backend services
Alternatives:
  • protobuf-ts – Generates TypeScript definitions natively, offering better type safety for modern TS projects.
  • google-protobuf – The official Google library; provides a runtime but requires a separate generator like protoc-gen-js.
Version History
Detected Version Rev Change Commit
Jan 25, 2026 12:41pm 2 REVISION_ONLY 5eb5b350
Jan 11, 2026 10:54am 1 REVISION_ONLY 5c92c6a5
Nov 19, 2025 11:59am 0 VERSION_BUMP de578526
Jan 10, 2025 5:04am 7 VERSION_BUMP 6afd74ae
Nov 25, 2024 9:36am 3 VERSION_BUMP c55f0949
Sep 26, 2024 5:19am 2 VERSION_BUMP e171a9d3
Sep 14, 2024 7:50am 1 VERSION_BUMP 5a7eed0d