Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, zypper 安装 melody

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install melody

local Homebrew formula metadata

Linux

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

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

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

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

概览

软件包摘要

Language that compiles to regular expressions

命令和别名

  • melody

历史

项目历史与用法

Melody is a small language that compiles to ECMAScript regular expressions. Its README says the goal is to make regular expressions more readable and maintainable, with a CLI, compiler crate, WebAssembly bindings, playground, book, editor extensions, and package integrations.

项目历史

The project is organized as a Rust workspace with crates for the compiler, CLI, and WASM bindings. The README shows Melody source examples compiling into ordinary regular expressions, along with syntax for quantifiers, symbols, literals, groups, assertions, variables, comments, and file extensions .mdy and .melody.

Melody evolved rapidly during 2022, as reflected in the changelog: early releases added the REPL, raw sequences, lookahead/lookbehind assertions, cleaner CLI output, a Pest grammar and AST, lazy quantifiers, negative symbols, variables, shell completions, Deno support, stdin support, CLI testing, file-based testing, and unicode-category support.

The project reached v0.20.0 in November 2024, when the changelog notes an MSRV bump to Rust 1.74.0 and removal of the unmaintained atty dependency.

采用历史

Melody is a niche developer tool rather than a large infrastructure package, but it has visible interest for a DSL project: the GitHub repository shows thousands of stars, a crates.io-published CLI/compiler path, a browser playground, documentation book, Homebrew installation, Nix packaging, and community-maintained Arch packaging.

Its adoption is tied to developers who want regex readability without abandoning regular expressions as the runtime artifact. That gives package managers a compact CLI and compiler tool whose output remains portable JavaScript-compatible regex.

使用方式

Users can install melody_cli with cargo, install from source, download macOS binaries from GitHub releases, or use Homebrew. The CLI reads a file or stdin, writes compiled regex to stdout or an output file, can test against strings or files, generates shell completions, and offers a REPL.

The book and README document syntax that maps readable constructs such as some of <word>, <start>, capture blocks, and either blocks to regular-expression primitives.

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

Melody is significant as a packaged regex DSL: it is not a runtime service, but a compiler that turns readable source into a ubiquitous target. That makes it easy to package and easy to evaluate, while still touching language tooling, WASM, editor extensions, and JavaScript ecosystem integrations.

时间线

  • 2022-02: Early releases added REPL, assertions, AST parsing, and CLI behavior changes.
  • 2022-04: v0.14.0 through v0.18.0 added stdin, shell completions, Deno support, CLI testing, file testing, and unicode categories.
  • 2023-07-16: v0.19.0 set the MSRV to Rust 1.65.0 and improved WASM/Deno behavior.
  • 2024-11-24: v0.20.0 set the MSRV to Rust 1.74.0 and removed atty.

Related projects

  • melody_compiler: the compiler crate.
  • melody_cli: the command-line wrapper around the compiler.
  • melody_wasm: the WebAssembly bindings.
  • ECMAScript regular expressions: the target regex dialect.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
melodycli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-08
管理器版本0.20.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v0.20.0

https://github.com/yoav-lavi/melody

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:melody
版本0.20.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/melody
主页https://yoav-lavi.github.io/melody/book
仓库https://github.com/yoav-lavi/melody
上游文档https://github.com/yoav-lavi/melody#readme
许可证Apache-2.0 OR MIT
源码归档https://github.com/yoav-lavi/melody/archive/refs/tags/v0.20.0.tar.gz
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemelody
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

melody

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

playmymusic 2.2.1-1.6

A music player for local files and remote streams

https://github.com/artemanufrij/playmymusic

sudo zypper install playmymusic
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: playmymusic
  • 17 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Melody
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: playmymusic from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment