pkg.soopen package index

brew / 排名 11975

使用 Homebrew, apk, Nix, zypper 安装 weggli

查看 weggli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install weggli

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add weggli

Alpine Linux edge package indexes · weggli · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#weggli

nixpkgs package indexes · pkgs/by-name/we/weggli/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install weggli

openSUSE Tumbleweed package metadata · weggli · 来源: download.opensuse.org

概览

软件包摘要

Fast and robust semantic search tool for C and C++ codebases

命令和别名

  • weggli

历史

项目历史与用法

weggli is a Rust semantic-search tool for C and C++ codebases, designed for security researchers who want fast, code-shaped queries over large or incomplete source trees. Its README says it matches user-provided patterns on abstract syntax trees and uses a query language that resembles C and C++.

项目历史

The current GitHub repository was created in September 2021, and crates.io metadata shows package publication beginning in October 2021. The README states that weggli is inspired by Semgrep, Coccinelle, joern, and CodeQL, but intentionally makes different tradeoffs for C/C++ review.

Those tradeoffs define the project: first-class support for modern C++ constructs, minimal setup without requiring a successful build, interactive performance, and greedy matching that finds useful variants even at the cost of false positives. The implementation is built on tree-sitter C and C++ grammars, with queries translated into tree-sitter query machinery plus weggli-specific behavior.

采用历史

weggli's adoption is strongest in vulnerability research and manual code-review circles rather than general developer search. A 2024 HN Security article described converting C/C++ vulnerability patterns from Semgrep into weggli queries and using the tool to identify hotspots such as buffer overflows, integer issues, format strings, memory-management mistakes, and command-injection patterns.

By July 2026, the repository had about 2.5 thousand GitHub stars, which is sizable for a specialized security CLI. Its package-manager niche is clear: it gives reviewers a fast semantic grep for C and C++ without requiring a full CodeQL database, compiler build, or heavyweight SAST workflow.

使用方式

A typical invocation is `weggli <PATTERN> <PATH>`, where the pattern is written in a C/C++-like language with metavariables and wildcards. For example, patterns can look for a stack buffer followed by a `memcpy` call, suspicious arithmetic before allocation, or API-specific call sequences.

In practice, users run weggli interactively while reading source: write a pattern, inspect matches, refine the query, and then manually audit nearby code. It is especially useful for variant analysis after one bug is found and for quickly mapping attack-surface idioms in unfamiliar C/C++ projects.

为什么软件包爱好者会关心

weggli is package-nerd significant because it is the small, installable middle ground between `grep` and heavyweight static-analysis platforms. It makes AST-aware C/C++ searching feel like a fast CLI habit rather than an infrastructure project.

时间线

  • 2021-09: GitHub repository created.
  • 2021-10: crates.io package created and early 0.2.x releases began.
  • 2022-05: v0.2.4 release published.
  • 2024-01: HN Security published a practitioner pattern collection and workflow article for C/C++ vulnerability research.

Related projects

  • The README names Semgrep, Coccinelle, joern, and CodeQL as inspirations. In use, weggli is closest to a semantic grep for C/C++ reviewers, while those related tools cover broader rule management, program analysis, source transformation, or database-backed code queries.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
weggli可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.2.4
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:weggli
版本0.2.4
软件包管理器Homebrew
主页https://github.com/weggli-rs/weggli
仓库https://github.com/weggli-rs/weggli
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

weggli

nix profile install nixpkgs#weggli
  • normalized package name match
  • 匹配方式:Weggli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/we/weggli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

weggli 0.2.4-r1

Semantic search tool for C and C++ codebases

https://github.com/googleprojectzero/weggli

sudo apk add weggli
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: weggli
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Weggli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: weggli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
zypper95%

weggli 0.2.4-2.13

A semantic search tool for C and C++ codebases

https://github.com/googleprojectzero/weggli

sudo zypper install weggli
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: weggli
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Weggli
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: weggli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation