macOS
brew install kcgilocal Homebrew formula metadata
brew
Minimal CGI and FastCGI library for C/C++. Version 1.0.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#kcgi.
install
brew install kcgilocal Homebrew formula metadata
sudo apk add kcgiAlpine Linux edge package indexes · kcgi · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#kcginixpkgs package indexes · pkgs/by-name/kc/kcgi/package.nix · source: api.github.com
overview
Minimal CGI and FastCGI library for C/C++
history
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.
security posture
library-like 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 |
|---|---|---|---|
kfcgi | 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.
install metadata
| Package key | brew:kcgi |
|---|---|
| Version | 1.0.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/kcgi |
| Homepage | https://kristaps.bsd.lv/kcgi/ |
| Repository | https://github.com/kristapsdz/kcgi |
| Upstream docs | https://kristaps.bsd.lv/kcgi |
| License | ISC |
| Source archive | https://kristaps.bsd.lv/kcgi/snapshots/kcgi-1.0.1.tgz |
| Build dependencies | bmake |
| 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 | 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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-staticsource 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.