A static analysis tool that finds bugs and security issues using rules that look like the code itself. Supports many languages and runs in CI, covering part of what Snyk does.
Open sourceTechnical setup
Free alternative to
Code activity
- Stars
- 18,070
- Forks
- 1,231
- Open issues & PRs
- 1,017
- Last commit
- 3 days ago
- Latest release
- 1 week ago
Details
- Type
- Open source
- License
- LGPL-2.1
- Written in
- COCamlPythonJavaScript
- Platforms
- Linux · Mac · Windows · Web
- Ease of use
- Technical setup

Pros
- Custom rules are easy to write and read like code
- Large library of community rules
- Runs fast locally or in CI
Cons
- Cross-file analysis and premium rules are in paid tiers
- Some false positives, rules need tuning
- Dependency vulnerability scanning is not in the free tool
Use Semgrep instead of
- gSnykReplaces the static code analysis (SAST) part of Snyk: fast in CI, with ready security rules for many languages and rules that look like the code they match.
Similar apps
No apps match. Try removing a filter.
How is the 90/100 "Health" score calculated?
Dorabot computes it weekly from public GitHub data; it is not a review of software quality: 40 points for code freshness (a commit in the last 30 days earns full points), 25 points for popularity by stars, 20 points for a recent release, 15 points for the ratio of open issues to stars. 80+ is Good, 60–79 Fair, below 60 Weak.
FAQ
Is Semgrep free?
Yes. Semgrep is open source (LGPL-2.1 license) and free for personal and commercial use.
Which platforms does Semgrep run on?
Semgrep is available for Linux, Mac, Windows and Web.
What can I use Semgrep instead of?
Semgrep is a free alternative to Snyk.