Building from Source & Developer Guide
Go and Node.js toolchain requirements, compiling frontend and backend assets, running automated test suites, and regression testing with attack corpora.
This guide is intended for developers contributing code or building CheeseWAF directly from source. For standard production deployments, using official pre-compiled releases from GitHub Releases is strongly recommended.
1. Development Toolchain Requirements
- Go Compiler: Go 1.26 or higher
- Frontend Environment: Node.js 24.x LTS and
npmpackage manager
2. Compile Frontend Assets & Main Daemon
Console Assets Embedding Note: When compiling from source, run bash scripts/ci/build-web.sh before go build. The script uses npm ci --ignore-scripts and builds with CHEESEWAF_AGENT_EYES=0; @agent-eyes/agent-eyes is development-only and must not enter release packages or production images. Do not use a bare npm ci that triggers its monorepo postinstall.
BASH
3. Running Automated Tests & Code Quality Checks
BASH
cheesewaf-corpus runs built-in attack samples and false-positive corpora against the AST semantic analyzer, ensuring high detection rates without regression.