Skip to content

Getting Started

GreenGate is a single compiled Rust binary — no runtime dependencies, no package managers to fight.

Installation

macOS (Apple Silicon / M1+):

bash
curl -sL https://github.com/ThinkGrid-Labs/greengate/releases/latest/download/greengate-macos-arm64 \
  -o /usr/local/bin/greengate && chmod +x /usr/local/bin/greengate

macOS (Intel):

bash
curl -sL https://github.com/ThinkGrid-Labs/greengate/releases/latest/download/greengate-macos-amd64 \
  -o /usr/local/bin/greengate && chmod +x /usr/local/bin/greengate

Linux (x64):

bash
curl -sL https://github.com/ThinkGrid-Labs/greengate/releases/latest/download/greengate-linux-amd64 \
  -o /usr/local/bin/greengate && chmod +x /usr/local/bin/greengate

Windows (x64) — PowerShell:

powershell
Invoke-WebRequest -Uri "https://github.com/ThinkGrid-Labs/greengate/releases/latest/download/greengate-windows-amd64.exe" `
  -OutFile "$env:USERPROFILE\.local\bin\greengate.exe"
# Add $env:USERPROFILE\.local\bin to your PATH if not already present

Build from source (requires Rust 1.85+)

bash
cargo install --git https://github.com/ThinkGrid-Labs/greengate

Verify installation

bash
greengate --version
# greengate 0.2.6

Quick Start

bash
# Scan for secrets and run SAST on JS/TS files
greengate scan

# Lint all Kubernetes YAML files
greengate lint --dir ./k8s

# Enforce 80% minimum test coverage
greengate coverage --file coverage/lcov.info --min 80

# Audit dependencies for known CVEs
greengate audit

# Install as a git pre-commit hook
greengate install-hooks

# Gate on Lighthouse web performance scores
greengate lighthouse --url https://yourapp.com

# Gate on React component performance regressions
greengate reassure

What GreenGate solves

ProblemCommand
Hardcoded secrets pushed to gitgreengate scan
XSS, eval, command injection in JS/TSgreengate scan (SAST)
Kubernetes manifests missing resource limitsgreengate lint
Test coverage silently droppinggreengate coverage
Vulnerable dependencies shipping to productiongreengate audit
Secrets committed before anyone noticesgreengate install-hooks
Lighthouse score regressing between deploysgreengate lighthouse
React component render performance regressinggreengate reassure

Next steps

Released under the MIT License.