Automic VaultAutomic Vault

brew

使用 Homebrew, scoop 安装 capnp

查看 capnp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install capnp

local Homebrew formula metadata

Windows

Scoop已验证 · 92%
scoop install main/capnp

Scoop official bucket manifest trees · bucket/capnp.json · 来源: api.github.com

概览

软件包摘要

Data interchange format and capability-based RPC system

命令和别名

  • capnp
  • capnpc
  • capnpc-c++
  • capnpc-capnp

历史

项目历史与用法

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.

时间线

  • 2013-03: capnproto/capnproto repository is created on GitHub.
  • 2013-04-01: Cap'n Proto is announced.
  • 2013-06-27: First official release, v0.1, is published.
  • 2013-12: Cap'n Proto v0.4 introduces time-traveling RPC.
  • 2014: v0.5 adds features including generics, Visual C++, Java, C#, and Sandstorm.io-related work.
  • 2021: v0.9 announcement says Cloudflare Workers Durable Objects make heavy use of Cap'n Proto RPC.
  • 2023-07-28: Cap'n Proto 1.0 is released.

Related projects

  • Protocol Buffers is the explicit comparison point and personal predecessor for Kenton Varda.
  • Sandstorm.io is named by the official introduction as an original target environment.
  • Cloudflare Workers and workerd are named in official Cap'n Proto news as major production users and drivers of KJ work.
  • KJ is the C++ toolkit developed with Cap'n Proto.
  • FlatBuffers and SBE are serialization formats compared in Cap'n Proto's official news.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
capnpcli全局可执行文件
capnpccli全局可执行文件
capnpc-c++cli全局可执行文件
capnpc-capnpcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.5.0
管理器更新时间2026-07-10
本地数据OK
上游当前
检测到的最新版本v1.5.0

https://github.com/capnproto/capnproto

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:capnp
版本1.5.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/capnp
主页https://capnproto.org/
仓库https://github.com/capnproto/capnproto
上游文档https://capnproto.org/
许可证MIT
源码归档https://github.com/capnproto/capnproto/archive/refs/tags/v1.5.0.tar.gz
最后更新2026-07-10T03:17:47Z
Pulseupdated
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecapnp
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Scoop95%

main/capnp

scoop install main/capnp
  • normalized package name match
  • 匹配方式:Capnp
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/capnp.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment