protobuf.js

A fast, conformant JavaScript and TypeScript implementation of Protocol Buffers, no protoc required

Library
npm
v8.7.2
10,579stars
Custom / Unknown

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
94/100Excellent
Development Activity96
Maintenance96
Community84
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
81/100Excellent
Architecture86
Code Quality85
Innovation78
Learning Curve74

protobuf.js is a very fast, conformant, and unusually versatile JavaScript implementation of Google’s Protocol Buffers for Node.js and browsers. It works with .proto files out of the box, does not require the protoc compiler, and supports both runtime reflection and specialized code generation with strong TypeScript declarations.

Beyond basic encode/decode, protobuf.js supports programmatic schema definitions (no .proto file needed), transport-agnostic RPC services, optional extensions, and a companion CLI package (protobufjs-cli) for generating static code, TypeScript typings, and JSON reflection bundles — with an optional protoc-gen-pbjs path for teams that prefer a protoc-based toolchain.

What You Get

  • Runtime .proto file loading and reflection-based encode/decode with no protoc dependency
  • A protobufjs-cli add-on for generating static JS, TypeScript declarations, and JSON reflection bundles ahead of time
  • Programmatic schema definitions for building message types without a .proto file at all
  • Transport-agnostic Service/RPC support for wiring protobuf messages to any transport layer
  • Lightweight light/minimal build variants for bundle-size-sensitive browser deployments

Common Use Cases

  • Encoding/decoding Protocol Buffer messages in a Node.js backend or browser frontend without a native protoc toolchain
  • Generating static, tree-shakeable JS/TypeScript bindings from .proto schemas at build time via the CLI
  • Implementing gRPC-style or custom binary RPC services in JavaScript using protobuf.js’s transport-agnostic service layer
  • Interoperating with Protobuf-based systems written in Go, Java, Python, or C++ from a JS/TS codebase

Under The Hood

Architecture - the library’s core lives in src/ as a set of focused modules: root.js/namespace.js/type.js/field.js implement the reflective schema object model, encoder.js/decoder.js/reader.js/writer.js (under src/) handle wire-format serialization, parse.js/tokenize.js implement a hand-written .proto parser, and rpc/ provides the transport-agnostic Service abstraction; index.js, light.js, and minimal.js expose progressively smaller entrypoints for full/reflection-light/wire-only use cases. The separate cli/ package builds on this core to generate static code and TypeScript declarations ahead of time. Tech Stack - plain JavaScript (CommonJS) with hand-authored .d.ts TypeScript declaration files (index.d.ts, light.d.ts, minimal.d.ts), Node.js-based build/release tooling (release-please, GitHub Actions CI), and a google/ directory bundling well-known .proto types (Any, Timestamp, Struct, etc.). Code Quality - the tests/ directory contains 101 test files covering the parser, wire format, reflection API, and RPC layer, CI runs on every push via GitHub Actions, and the project has been continuously maintained by the community since dcodeIO’s original release, now under org-based stewardship. API Design - protobuf.load()/root.lookupType() gives a low-boilerplate entrypoint for dynamic schema loading, while the CLI’s generated static code gives TypeScript users compile-time-checked message types; the split between index/light/minimal entrypoints lets consumers explicitly trade reflection features for bundle size.

Used by 17 apps in this directory

TypeScript
72%
AGPL 3.0

APITable

Low Code Platforms · Databases

15,526

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
53
Repo Health
77
Technical
60
Dependency
Built with
TypeScript72%
Java22%
Updated 9 months ago
TypeScript
84%
MIT

Amical

Note Taking · AI Assistants

1,495

Local-first AI dictation that understands your active app — private, offline, and built for speed.

View details
79
Repo Health
82
Technical
67
Dependency
Built with
TypeScript84%
Updated 3 weeks ago
JavaScript
94%
MIT

Another Redis Desktop Manager

Developer Tools · Databases

34,643

Fast, stable Redis GUI with cluster, SSH, and massive key support

View details
84
Repo Health
56
Technical
67
Dependency
Built with
JavaScript94%
Updated yesterday
TypeScript
49%
MPL 2.0

Artillery

Devops · Developer Tools

9,054

Cloud-scale load testing and functional testing for APIs, WebSockets, gRPC, and headless browsers, distributed across AWS Lambda or Fargate with zero infrastructure to manage.

View details
89
Repo Health
73
Technical
68
Dependency
Built with
TypeScript49%
JavaScript48%
Updated 5 days ago
Go
76%
AGPL 3.0

Coder

Devops · Developer Tools · Code Editors

14,199

Self-hosted cloud development environments and AI coding agents — defined in Terraform, connected via WireGuard, automatically shut down when idle.

View details
93
Repo Health
90
Technical
71
Dependency
Built with
Go76%
TypeScript22%
Updated today
Go
84%
MIT

Hatchet

AI Development · Developer Tools · Automation

7,749

A Postgres-backed orchestration engine for background tasks, AI agents, and durable workflows that replaces Redis queues and multi-datastore durable execution platforms with a single self-hostable service.

View details
88
Repo Health
83
Technical
69
Dependency
Built with
Go84%
PLpgSQL11%
Updated today
TypeScript
91%
Apache 2.0

Helicone

Monitoring · AI Development · Analytics

6,083

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
62
Repo Health
81
Technical
66
Dependency
Built with
TypeScript91%
Updated 3 days ago
TypeScript
95%
MIT

HyperDX

Developer Tools · Analytics · Monitoring

9,841

Open source observability platform that unifies logs, traces, metrics, and session replays on ClickHouse — now the core of ClickStack.

View details
87
Repo Health
83
Technical
70
Dependency
Built with
TypeScript95%
Updated today
TypeScript
98%
Other

Langfuse

AI Development · Monitoring

33,366

Open source AI engineering platform for LLM observability, prompt management, evaluation, and debugging — self-host in minutes or use Langfuse Cloud.

View details
92
Repo Health
81
Technical
66
Dependency
Built with
TypeScript98%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search