macOS
brew install capnplocal Homebrew formula metadata
brew
Data interchange format and capability-based RPC system. Version 1.4.0 via Homebrew; verified 2026-05-04.
install
brew install capnplocal Homebrew formula metadata
scoop install main/capnpScoop official bucket manifest trees · bucket/capnp.json · source: api.github.com
overview
Data interchange format and capability-based RPC system
history
Cap'n Proto is a binary data interchange format, schema language, code generator, and capability-based RPC system designed around zero-copy access, fast generated code, and object-capability RPC.
Cap'n Proto was announced in 2013 by Kenton Varda, who had been the primary author of Protocol Buffers version 2 at Google. The official introduction presents Cap'n Proto as an answer to years of experience with Protocol Buffers: a binary format that avoids a separate encode/decode step by making the serialized format suitable as an in-memory representation.
The first official release, v0.1, was published on June 27, 2013. At that point the C++ implementation already covered schema files, code generation, file descriptor and stream I/O, text-format output, reflection, dynamic schemas, code-generator plugins, and Linux/macOS testing, while RPC and non-C++ implementations were still developing.
Over the following decade, Cap'n Proto grew from serialization into a full RPC stack and companion C++ toolkit, KJ. The official 1.0 announcement in July 2023 described Cap'n Proto as production-proven and released 1.0 as a long-term-support point before future C++ API work.
The official introduction says Cap'n Proto was built for Sandstorm.io and is heavily used in Cloudflare Workers. The 1.0 announcement adds that Cloudflare had used it before employing Varda and that Cap'n Proto encoded enormous volumes of messages and data in production.
Cap'n Proto spread through package managers because it is both a compiler tool and a runtime library. The package metadata in this batch shows Homebrew and Scoop coverage, while the official site documents C++ plus implementations or bindings for other languages.
Users write .capnp schema files, compile them with capnp and language-specific plugins such as capnpc-c++, then use generated accessors to build, read, and traverse messages without a normal parse step.
Beyond local serialization, Cap'n Proto RPC is used for capability-style distributed object calls, promise pipelining, and patterns such as streaming through temporary RPC objects. It is commonly considered alongside Protocol Buffers, FlatBuffers, SBE, Thrift, Ice, and gRPC depending on whether the problem is schema encoding, RPC, or both.
Cap'n Proto is a package-nerd landmark because a tiny command-line compiler sits at the intersection of ABI concerns, wire formats, generated code, language bindings, and RPC semantics. Packaging it correctly means shipping both the capnp compiler and the libraries plugins expect.
It is also one of the clearest examples of a serialization package becoming infrastructure: originally interesting for zero-copy encoding, then important as part of Cloudflare Workers and KJ's async C++ ecosystem.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
capnp | cli | global executable | |
capnpc | cli | global executable | |
capnpc-c++ | cli | global executable | |
capnpc-capnp | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/capnproto/capnproto
install metadata
| Package key | brew:capnp |
|---|---|
| Version | 1.4.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/capnp |
| Homepage | https://capnproto.org/ |
| Repository | https://github.com/capnproto/capnproto |
| Upstream docs | https://capnproto.org/ |
| License | MIT |
| Source archive | https://github.com/capnproto/capnproto/archive/refs/tags/v1.4.0.tar.gz |
| Last updated | 2026-05-04T12:53:05Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | capnp |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
main/capnp
scoop install main/capnpsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.