# weggli-rs/weggli

weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.

Repository: https://github.com/weggli-rs/weggli
Canonical: https://ross.abutalabs.com/products/weggli
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2024-07-12T16:50:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1798, "days_push": 782, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2492, forks 143 (observed 2026-08-28T04:06:56.509155+00:00)

## What it is
weggli is a fast semantic search tool for C and C++ codebases that performs pattern matching on abstract syntax trees using a query language resembling C/C++ code. It is designed for security researchers to interactively identify interesting functionality in large codebases without needing to build the software.

## Use cases
- find memcpy calls writing into stack buffers in C code
- search large C++ codebases for vulnerable code patterns
- grep-like semantic search over source code without building the project
- identify interesting functionality during security audits
- find code patterns matching a C-like query in incomplete sources
- quickly locate uses of dangerous APIs in a codebase

## When to choose
- you need fast, interactive AST-based search over C or C++ code
- you cannot build the target software or sources are incomplete
- you want first-class support for modern C++ constructs like lambdas and range-based for loops
- you are doing security research or code review on large codebases

## When to avoid
- you need taint analysis or full dataflow analysis rather than pattern matching
- you need to search languages other than C and C++
- you want a CI-enforced policy engine like Semgrep with rule management

## Facets
- artifact type: cli-tool
- maturity: active
- function: search-engine, parser, developer-tools
- domain: security, developer-tools, parsers
- platform: windows, cli, rust
- tags: static-analysis, code-search, ast-pattern-matching, c, cpp, vulnerability-research, semgrep-alternative, command-line, linux, macos

## Member repositories
- weggli-rs/weggli (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.509155+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:46.779046+00:00, confidence not recorded.
  - readme: https://github.com/weggli-rs/weggli (fetched 2026-08-28T04:06:56.509155+00:00, sha fac073d29941)
- Data as of 2026-08-30T08:39:29.467469+00:00.
