macOS
brew install melodylocal Homebrew formula metadata
安装
brew install melodylocal Homebrew formula metadata
nix profile install nixpkgs#melodynixpkgs package indexes · pkgs/by-name/me/melody/package.nix · 来源: api.github.com
sudo zypper install playmymusicopenSUSE Tumbleweed package metadata · playmymusic · 来源: download.opensuse.org
概览
Language that compiles to regular expressions
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
melody | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/yoav-lavi/melody
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | melody |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
melody
nix profile install nixpkgs#melodyplaymymusic 2.2.1-1.6
A music player for local files and remote streams
https://github.com/artemanufrij/playmymusic
sudo zypper install playmymusic来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.