awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
yoav-lavi avatar

yoav-lavi/melody

0
View on GitHub↗
4,747 stars·57 forks·Rust·Apache-2.0·21 viewsyoav-lavi.github.io/melody/book↗

Melody

Melody is a regular expression transpiler and pattern compiler that translates a high-level, human-readable syntax into standard regular expressions. It functions as a tool to simplify the creation and maintainability of complex matching patterns.

The project provides a specialized syntax for defining reusable variables and macros to reduce duplication within expressions. It includes native support for mapping specialized labels to Unicode category properties and automatically handles the escaping of literal text.

The system is accessible through several interfaces, including a command-line tool for compiling and testing patterns against strings or files, a stateful interactive REPL for real-time evaluation, and a Babel plugin for integrating syntax transformations into JavaScript build pipelines. It also offers a browser-based interface for testing syntax without local installation.

The compiler supports standard regular expression capabilities such as capture groups, lookaround assertions, character classes, and quantifiers.

Features

  • Syntax Transpilers - Translates high-level human-readable syntax into standard regular expression strings for various target environments.
  • Readable Syntax Transpilers - Translates a high-level, human-readable syntax into standard regular expressions to simplify complex pattern creation.
  • Regex Transpilers - Translates a high-level, human-readable syntax into standard regular expressions to simplify complex pattern creation.
  • Unicode Category Filters - Matches characters based on international linguistic properties like script-specific letters, currency signs, and punctuation.
  • Pattern Variable Reuse - Allows defining pattern sequences as reusable variables to reduce duplication in complex expressions.
  • CLI Regex Compilers - Includes a command-line interface for transforming custom high-level syntax into standard regular expressions.
  • Interactive REPLs - Provides an interactive session to write and test regular expression expressions in real time.
  • Regular Expression Converters - Translates high-level human-readable syntax into standard regular expressions to improve maintainability.
  • Syntax-Based Regex Generators - Generates standard regular expressions by transpiling human-readable syntax and definitions.
  • Property Mappings - Maps specialized syntax labels to official Unicode category properties for internationalized character matching.
  • Readable Regex Constructors - Enables the construction of regular expressions using human-readable, natural-language helpers.
  • Unicode Property Matching - Includes native support for mapping specialized labels to official Unicode category properties for internationalized text.
  • Unicode Regex Processors - Provides specialized syntax to target characters based on their Unicode category or property.
  • Interactive Read-Eval-Print Loops - Provides a stateful interactive REPL for real-time evaluation and refinement of pattern logic.
  • Pattern Macros - Allows defining reusable variables and macros to store recurring patterns and reduce duplication in expressions.
  • Pattern Compilers - Acts as a pattern compiler that generates complex regular expressions from simplified, variable-supported definitions.
  • Pattern Variables - Store a sequence of patterns in a named variable to reference them multiple times throughout a definition.
  • Regular Expression Converters - Converts custom human-readable syntax patterns into standard regular expressions for use in pattern matching.
  • Unicode Pattern Matching - Handles internationalized text processing by matching characters based on predefined Unicode categories.
  • Negative Regex Assertions - Supports negating patterns to ensure target strings do not contain specified characters or sequences.
  • Advanced Regex Logic - Supports advanced regular expression capabilities including lazy quantifiers, nested groups, and lookaround assertions.
  • Character Class Matching - Provides support for matching character classes, whitespace, and word boundaries within the transpiled patterns.
  • Read-Eval-Print Loops - Ships a stateful interactive REPL for real-time evaluation and refinement of pattern logic.
  • Regex CLI Testers - Includes a command-line tool to compile and test patterns against raw strings or external files.
  • Raw String Literals - Embeds exact characters into patterns using automatic escaping or raw string options.
  • Text Literals - Matches exact strings by automatically escaping reserved symbols to treat them as plain text.
  • Web-Based Pattern Testers - Offers a browser-based interface for real-time testing of syntax and resulting regular expressions.
  • Capture Groups - Supports the creation of named or positional capture groups for structured text extraction.
  • Character Classes - Supports the definition of character sets and ranges to match specific types of characters like digits or whitespace.
  • Lookaround Assertions - Implements lookahead and lookbehind assertions to verify patterns without consuming characters.
  • Babel Transformations - Integrates with the Babel build pipeline to transform custom pattern syntax into regular expressions.
  • Regex Syntax Transformations - Integrates a Babel plugin to transform custom pattern syntax into regular expressions during the build pipeline.
  • Regex Syntax Transformers - Provides a Babel plugin to integrate custom syntax transformations directly into JavaScript build pipelines.
  • Named Capture Groups - Supports the definition of named capture groups to isolate and extract specific parts of a match.
  • Non-Consuming Assertions - Implements non-consuming assertions to check for patterns without consuming characters in the string.
  • Regex Literal Escapers - Automatically escapes reserved regular expression symbols to ensure literal matching of plain text.
  • Regex Quantifiers - Supports specifying the exact or ranged number of times a pattern must repeat using quantifiers.
  • Regex Pattern Validators - Allows validating compiled expressions against raw strings or external files via the command line.
  • Regex Testing Tools - Provides utilities for validating regular expression patterns against sample text and file contents.
  • Pattern Test Runners - Provides a command-line interface to validate compiled regex patterns against raw strings or files.
  • Text Processing - Language that compiles to readable regular expressions.

Star history

Star history chart for yoav-lavi/melodyStar history chart for yoav-lavi/melody

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Melody

These projects share indexed features with Melody. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • ziishaned/learn-regexziishaned avatar

    ziishaned/learn-regex

    46,092View on GitHub↗

    This project is a regular expression learning resource and tutorial designed to teach the syntax and logic used to find, match, and manipulate text strings. It serves as a comprehensive guide and syntax reference for building complex search queries and data validation logic. The material covers the use of meta-characters, quantifiers, and boundary markers to define precise text match patterns. It includes instructional content on the logic of greedy and lazy matching, as well as the implementation of capture groups. The resource details a wide range of pattern matching capabilities, includin

    learn-regexregexregular-expression
    View on GitHub↗46,092
  • francisrstokes/super-expressivefrancisrstokes avatar

    francisrstokes/super-expressive

    4,615View on GitHub↗

    Super-expressive is a zero-dependency JavaScript library and domain-specific language used to construct complex regular expressions. It functions as a pattern generator that uses natural language syntax to produce native regular expression objects or strings, supporting international text standards through Unicode property matching. The library replaces manual string manipulation and escaping with a method-chaining fluent interface. It allows for modular expression composition, enabling the creation of reusable pattern hierarchies where existing expression instances can be nested as subexpres

    JavaScript
    View on GitHub↗4,615
  • unjs/magic-regexpunjs avatar

    unjs/magic-regexp

    4,331View on GitHub↗

    magic-regexp is a type-safe regular expression builder and TypeScript compiler. It allows for the construction of JavaScript regular expressions using a readable syntax that automatically generates precise types for captured groups, ensuring predictable data extraction. The project functions as a build-time transformer that converts custom pattern syntax into standard regular expression objects. This static compilation removes runtime overhead by shifting the transformation logic to the build process. The tool covers named capture group generation and a readable construction API that replace

    TypeScripthacktoberfestregexregexp
    View on GitHub↗4,331
  • traefik/yaegitraefik avatar

    traefik/yaegi

    8,311View on GitHub↗

    Yaegi is a Go language interpreter and embedded scripting engine that executes Go source code at runtime without requiring a separate compilation step. It provides a mechanism for evaluating Go expressions and files dynamically, functioning as both a library for compiled applications and a standalone read-eval-print-loop environment. The project enables the integration of dynamic Go scripts into compiled programs to allow for runtime extensibility and plugin development. It facilitates the conversion of interpreted symbols from evaluated scripts into usable interfaces and types within a compi

    Gogogolanginterpreter
    View on GitHub↗8,311
Compare all 30 related projects→

Frequently asked questions

What does yoav-lavi/melody do?

Melody is a regular expression transpiler and pattern compiler that translates a high-level, human-readable syntax into standard regular expressions. It functions as a tool to simplify the creation and maintainability of complex matching patterns.

What are the main features of yoav-lavi/melody?

The main features of yoav-lavi/melody are: Syntax Transpilers, Readable Syntax Transpilers, Regex Transpilers, Unicode Category Filters, Pattern Variable Reuse, CLI Regex Compilers, Interactive REPLs, Regular Expression Converters.

Which projects share features with yoav-lavi/melody?

Projects with overlapping indexed features include: ziishaned/learn-regex — This project is a regular expression learning resource and tutorial designed to teach the syntax and logic used to… francisrstokes/super-expressive — Super-expressive is a zero-dependency JavaScript library and domain-specific language used to construct complex… unjs/magic-regexp — magic-regexp is a type-safe regular expression builder and TypeScript compiler. It allows for the construction of… traefik/yaegi — Yaegi is a Go language interpreter and embedded scripting engine that executes Go source code at runtime without… oils-for-unix/oils — Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and… pemistahl/grex — Grex is a regular expression generator and Rust pattern library that synthesizes a single regular expression from a…