head to head · open source

trivy vs stategraph

trivy has 39,445 GitHub stars, 896 forks, 269 open issues and last shipped yesterday. stategraph has 1,327 stars, 83 forks, 114 open issues and last shipped yesterday. trivy leads on adoption by 2,872% (39,445 vs 1,327 stars). trivy is written in Go under Apache-2.0; stategraph is written in OCaml under MPL-2.0. trivy has attracted 2% as many forks as stars, stategraph 6%. trivy was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 2 topic tags (iac, infrastructure-as-code), so they are genuine substitutes rather than adjacent tools.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

trivy ★ 39K stategraph ★ 1.3K category Infrastructure & Operations

← all 20902 open source comparisons

Side by side

trivy stategraph
GitHub stars ★ 39K ★ 1.3K
License Apache-2.0 MPL-2.0
Written in Go OCaml
Last push 2026-11-16 2026-11-16
Forks ⑂ 896 ⑂ 83
Self-hosting Yes Yes
Data ownership Your server Your server

pick trivy if

  • You weight community size — 39K stars and counting
  • You want the Apache-2.0 license terms
  • Your stack matches Go
  • You value the larger contributor base for long-term maintenance

full trivy profile →

pick stategraph if

  • You want the stategraph feature set and don't need the biggest community
  • You prefer the MPL-2.0 license terms
  • Your stack matches OCaml
  • You evaluated both and stategraph fits your workflow better

full stategraph profile →

About trivy

[![GitHub Release][release img]][release] [![Test][test img]][test] [![Go Report Card][go report img]][go report] [![License: Apache 2.0][license img]][license] [![GitHub Downloads][github downloads img]][release] ![Docker Pulls][docker pulls] [📖 Documentation][docs] Trivy ([pronunciation][pronunciation]) is a comprehensive and versatile security scanner. Trivy has scanners that look for security issues, and targets where it can find those issues. Targets (what Trivy can scan): Container Image Filesystem Git Repository (remote) Virtual Machine Image Kubernetes Scanners (what Trivy can find there): OS packages…

read the full trivy overview →

About stategraph

Terraform without the state file bottleneck Terraform and OpenTofu from pull requests, with state stored as a dependency graph in PostgreSQL. Plans read only what a change touches. Changes that do not overlap run at the same time. Website · Docs · Blog · Slack What is Stategraph? Stategraph runs Terraform and OpenTofu from pull requests, and can store your state as a graph in PostgreSQL instead of a state file. It has two parts: Stategraph Orchestration : plans every pull request on GitHub or GitLab and posts the result as a comment. Policy checks, cost estimates, and approvals run in the review. The apply runs…

read the full stategraph overview →

More in Infrastructure & Operations

Related comparisons

More Cloud Infrastructure Management projects

Compare either of these against the rest of the Cloud Infrastructure Management field.

Frequently asked questions

Is trivy or stategraph more popular?

trivy has 39,445 GitHub stars and stategraph has 1,327. trivy has the larger community by that measure.

Are trivy and stategraph free?

Both are open source. trivy is licensed under Apache-2.0 and stategraph under MPL-2.0. Neither carries a licence fee.

What is the difference between trivy and stategraph?

trivy is written in Go and stategraph in OCaml. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, trivy or stategraph?

Choose trivy if you want the larger community (39,445 stars) or its Apache-2.0 licence terms. Choose stategraph if its feature set, stack or MPL-2.0 licence fits better. Both are self-hostable.