# yoav-lavi/melody

Melody is a language that compiles to regular expressions and aims to be more readable and maintainable

Repository: https://github.com/yoav-lavi/melody
Canonical: https://ross.abutalabs.com/products/melody
Homepage: https://yoav-lavi.github.io/melody/book/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: regular-expression, language, regex, compiler, melody, melodylang, regexp, rust
Last push: 2024-11-24T19:14:44+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1662, "days_push": 647, "days_rel": 647, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4743, forks 58 (observed 2026-08-28T04:08:57.836782+00:00)

## What it is
Melody is a domain-specific language that compiles to ECMAScript regular expressions, designed to be more readable and maintainable than raw regex. It includes a Rust compiler crate, a CLI, and a web playground.

## Use cases
- write readable regex alternatives
- compile a dsl to regular expressions
- maintain complex regex patterns in a codebase
- teach regex concepts with friendlier syntax
- convert melody source to ecmascript regex

## When to choose
- you find raw regex hard to read or maintain
- you want a dsl that compiles to standard regex
- you work in a Rust or CLI-based toolchain

## When to avoid
- you need regex features beyond ECMAScript regex
- you only need simple patterns where regex is already clear
- you need a mature, widely-adopted tool

## Facets
- artifact type: library
- maturity: active
- function: compiler, parser, developer-tools
- domain: programming-languages, parsers, developer-tools
- platform: rust, cli, cross-platform
- tags: regex, regular-expressions, dsl, readability, compiler-to-regex

## Member repositories
- yoav-lavi/melody (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:57.836782+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-30T08:31:24.500115+00:00, confidence not recorded.
  - readme: https://github.com/yoav-lavi/melody (fetched 2026-08-28T04:08:57.836782+00:00, sha d28ab662b0d9)
  - homepage: https://yoav-lavi.github.io/melody/book/ (fetched 2026-08-29T09:02:27.669518+00:00, sha 972138ac0d4a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
