{"id":27396864,"url":"https://github.com/kristapsdz/kcgi","last_synced_at":"2025-09-12T10:41:10.474Z","repository":{"id":38361929,"uuid":"50068029","full_name":"kristapsdz/kcgi","owner":"kristapsdz","description":" minimal CGI and FastCGI library for C/C++","archived":false,"fork":false,"pushed_at":"2024-12-26T20:56:19.000Z","size":2205,"stargazers_count":289,"open_issues_count":6,"forks_count":43,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-23T21:03:55.260Z","etag":null,"topics":["bchs","c","cgi","cgi-script","cplusplus","fastcgi","fastcgi-library"],"latest_commit_sha":null,"homepage":"https://kristaps.bsd.lv/kcgi","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kristapsdz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-01-20T23:30:58.000Z","updated_at":"2025-05-15T13:01:49.000Z","dependencies_parsed_at":"2023-11-20T22:24:54.641Z","dependency_job_id":"a75d4e57-e1ea-483f-a36c-e08698f9b44a","html_url":"https://github.com/kristapsdz/kcgi","commit_stats":null,"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"purl":"pkg:github/kristapsdz/kcgi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristapsdz%2Fkcgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristapsdz%2Fkcgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristapsdz%2Fkcgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristapsdz%2Fkcgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristapsdz","download_url":"https://codeload.github.com/kristapsdz/kcgi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristapsdz%2Fkcgi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274799769,"owners_count":25352171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bchs","c","cgi","cgi-script","cplusplus","fastcgi","fastcgi-library"],"created_at":"2025-04-14T00:48:30.341Z","updated_at":"2025-09-12T10:41:10.450Z","avatar_url":"https://github.com/kristapsdz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\n**kcgi** is an open source CGI and FastCGI library for C/C++ web applications.\nIt's minimal, secure, auditable, and fits within your\n[BCHS](https://learnbchs.org) software stack.\n\nTo keep up to date with the current stable release of **kcgi**, visit\nhttps://kristaps.bsd.lv/kcgi.  The website also contains canonical\ninstallation, deployment, examples, and usage documentation.\n\n# Installation\n\nYou'll need a C compiler ([gcc](https://gcc.gnu.org/) or\n[clang](https://clang.llvm.org/)), [zlib](https://zlib.net) (*zlib* or\n*zlib-dev* for some package managers), and BSD make (*bmake* for some\nmanagers) for building.\n\nOn some Linux systems, you might additionally need the Linux kernel\nheaders installed using the *linux-headers* package or similar.\n\nBegin by cloning or downloading.  Then configure with `./configure`,\ncompile with `make` (BSD make, so it may be `bmake` on your system),\nthen `make install` (or use `sudo` or `doas`, if applicable).  To\ninstall in an alternative directory to `/usr/local`, set the `PREFIX`\nvariable when you run `configure`.\n\n```sh\n./configure PREFIX=~/.local\nmake\nmake install\n```\n\nA common idiom for deploying on Linux is to use\n[libbsd](https://libbsd.freedesktop.org/wiki/) as noted in the\n[oconfigure](https://github.com/kristapsdz/oconfigure) documentation:\n\n```\nCFLAGS=$(pkg-config --cflags libbsd-overlay) \\\n    ./configure LDFLAGS=$(pkg-config --libs libbsd-overlay)\nmake\nmake install\n```\n\n# Testing\n\nIt's useful to run the installed regression tests on the bleeding edge\nsources.  (Again, this uses BSD make, so it may be `bmake` on your\nsystem.)  You'll need [libcurl](https://curl.se/libcurl/) installed\n(*curl-dev*, *libcurl-dev*, or *libcurl4-openssl-dev* with some package\nmanagers).\n\n```sh\nmake regress\n```\n\nThe system contains a full regression suite and is also built to work\nwith [AFL](http://lcamtuf.coredump.cx/afl/).  To run some of the bundled\ntests, use the binaries compiled into the `afl` directory.  (Again, this\nuses BSD make, so it may be `bmake` on your system.)\n\n```sh\nmake afl\ncd afl\nafl-fuzz -i in/urlencoded -o out -- ./afl-urlencoded\n```\n\nThe public GitHub repository repository for **kcgi** uses automated\ntesting on each check-in to run the regression tests.  These automated\ntests are primarily aimed at Linux, whose security mechanism requires\nconstant maintenance.  The following systems are checked:\n\n- Alpine/musl Linux (latest, aarch64, sandboxed)\n- Alpine/musl Linux (latest, armv7, sandboxed)\n- Alpine/musl Linux (latest, ppc64le, sandboxed)\n- Alpine/musl Linux (latest, s390x, sandboxed)\n- Alpine/musl Linux (latest, x86\\_64, sandboxed)\n- FreeBSD (latest, x86\\_64, sandboxed)\n- Mac OS X (latest, x86, sandboxed)\n- Ubuntu/glibc Linux (latest, x86\\_64, un-sandboxed)\n- Ubuntu/glibc Linux (latest, x86\\_64, sandboxed)\n- Ubuntu/glibc Linux (latest, x86\\_64, sandboxed, libbsd)\n\nDevelopment is primarily on OpenBSD.\n\nThese are also run weekly to catch any changes as new operating system\nfeatures come into play.\n\n# License\n\nAll sources use the ISC (like OpenBSD) license.\nSee the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristapsdz%2Fkcgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristapsdz%2Fkcgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristapsdz%2Fkcgi/lists"}