macOS
brew install kcgilocal Homebrew formula metadata
安装
brew install kcgilocal Homebrew formula metadata
sudo apk add kcgiAlpine Linux edge package indexes · kcgi · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#kcginixpkgs package indexes · pkgs/by-name/kc/kcgi/package.nix · 来源: api.github.com
概览
Minimal CGI and FastCGI library for C/C++
历史
kcgi is Kristaps Dzonsons's minimal CGI and FastCGI library for C and C++ web applications. Its canonical site emphasizes security, auditability, and use in the BCHS stack.
The public GitHub repository was created in January 2016, while the project site serves as the canonical release and documentation surface. kcgi grew around a conservative C web-programming model: parse CGI/FastCGI requests, validate inputs, produce HTTP output, and keep the untrusted request path small enough to audit.
The release archive shows a long 0.x series before 1.0.0 on November 10, 2025. Notable evolution includes bearer-token validation in 2021, seccomp maintenance changes in 2021, asynchronous FastCGI descriptor support in 2023, CORS header support in 2024, and fetch metadata/Priority header support in the 1.0.0 release.
The official installation page names system packages for OpenBSD, FreeBSD, Homebrew, Arch Linux, and other systems. The batch input also records Alpine, Homebrew, and Nix packages, reflecting its niche but durable role in BSD-flavored C web stacks.
kcgi is used as a C/C++ library rather than primarily as a standalone command. The documentation centers on CGI and FastCGI request parsing, HTTP headers and bodies, typed input validation, formatted writers for JSON/XML/HTML output, compression, authentication helpers, and sandboxing or process separation for untrusted input.
kcgi is interesting to package nerds because it preserves a small-C, manpage-first, BSD-style approach to web development while still being packaged for modern Unix systems. Its release archive is unusually explicit about ABI, platform, and security tradeoffs.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kfcgi | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:kcgi |
|---|---|
| 版本 | 1.0.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/kcgi |
| 主页 | https://kristaps.bsd.lv/kcgi/ |
| 仓库 | https://github.com/kristapsdz/kcgi |
| 上游文档 | https://kristaps.bsd.lv/kcgi |
| 许可证 | ISC |
| 源码归档 | https://kristaps.bsd.lv/kcgi/snapshots/kcgi-1.0.1.tgz |
| 构建依赖 | bmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kcgi |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
kcgi
nix profile install nixpkgs#kcgikcgi 1.0.1-r0
CGI and FastCGI library for C/C++ web applications
sudo apk add kcgikcgi-dev 1.0.1-r0
CGI and FastCGI library for C/C++ web applications (development files)
sudo apk add kcgi-devkcgi-doc 1.0.1-r0
CGI and FastCGI library for C/C++ web applications (documentation)
sudo apk add kcgi-dockcgi-static 1.0.1-r0
CGI and FastCGI library for C/C++ web applications (static library)
sudo apk add kcgi-static来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.