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
z-pattern-matching avatar

z-pattern-matching/z

0
View on GitHub↗
1,715 stars·48 forks·JavaScript·Apache-2.0·10 viewsz-pattern-matching.github.io↗

Z

Z is a pattern matching library for JavaScript that evaluates variables against structural shapes, data types, and literal values to branch program execution conditionally. It functions as a functional programming utility designed to deconstruct arrays and objects into parts during conditional evaluation.

The library transforms human-friendly pattern matching syntax into optimized nested conditional statements during compilation or initialization phases, evaluating complex structural conditions and returning matching branch results directly as standard expression values. It inspects runtime data shapes, types, and literal values dynamically to ensure safe type narrowing across matched branches, and evaluates target objects against structural templates to extract inner values and execute corresponding handler functions. Additionally, it splits variable-length sequences into discrete head elements and remaining tail arrays to process collections recursively.

Features

  • JavaScript Libraries - Provides a JavaScript pattern matching library for evaluating variables against structural shapes, types, and literal values to branch program execution.
  • Pattern Matching Deconstruction - Provides a functional programming utility that deconstructs arrays and objects into parts during conditional evaluation.
  • Object and Array Destructuring - Splitting arrays into individual leading elements and remaining tail segments during conditional evaluation to process collections recursively.
  • Conditional Execution Utilities - Writing conditional logic that inspects object shapes, data types, and literal values to branch program execution cleanly.
  • Head-Tail - Splits variable-length sequences into discrete head elements and remaining tail arrays to process collections recursively.
  • Template Inspections - Evaluating complex nested data structures against structural templates to extract values and run corresponding handler functions.
  • Expression-Oriented Evaluation - Evaluates complex structural conditions and returns matching branch results directly as standard expression values.
  • Pattern Syntax Transformers - Transforms human-friendly pattern matching syntax into optimized nested conditional statements during compilation or initialization phases.
  • Data Shape Inspections - Execute conditional logic by inspecting the shape, data types, and specific literal values of target variables.
  • Array Structure Matching - Evaluate variables against literal values, structural shapes, arrays, types, and class instances to branch program execution.
  • Object Structure Matching - Evaluates target objects against structural templates to extract inner values and execute corresponding handler functions conditionally.
  • Structured Binding Decompositions - Splitting complex nested data structures and variable-length arrays into parts to extract values and run corresponding handlers.
  • Branch Matching Functions - Evaluating target values against specific structural templates and returning matching branch results directly as standard expression values.
  • Structural Guards - Inspects runtime data shapes, types, and literal values dynamically to ensure safe type narrowing across matched branches.

Star history

Star history chart for z-pattern-matching/zStar history chart for z-pattern-matching/z

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. 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

Open-source alternatives to Z

Similar open-source projects, ranked by how many features they share with Z.
  • tc39/proposal-pattern-matchingtc39 avatar

    tc39/proposal-pattern-matching

    5,782View on GitHub↗

    This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a match expression that allows developers to inspect and branch on data structures using patterns with destructuring, guards, and logical combinators. The proposal defines a custom matcher protocol via a well-known symbol, enabling objects to implement user-defined matching logic with arbitrary extraction and decomposition. The proposal supports matching against literal primitives using SameValue equality with special handling for signed zero and NaN, as well as relational comparison

    HTML
    View on GitHub↗5,782
  • rust-lang/rust-by-examplerust-lang avatar

    rust-lang/rust-by-example

    8,026View on GitHub↗

    This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre

    Handlebars
    View on GitHub↗8,026
  • metagrover/es6-for-humansmetagrover avatar

    metagrover/ES6-for-humans

    6,987View on GitHub↗

    ES6-for-humans is an educational resource and technical manual providing a structured tutorial and programming guide for the ECMAScript 2015 language standards. It serves as a reference for transitioning from legacy JavaScript to modern syntax and coding patterns. The project covers modern language constructs including block-scoped variables, arrow functions, and class hierarchies. It provides guidance on implementing functional programming patterns via generators and lexically scoped functions, as well as object-oriented design using prototype-based inheritance. The documentation covers asy

    educationes2015es6
    View on GitHub↗6,987
  • amber-lang/amberamber-lang avatar

    amber-lang/amber

    4,731View on GitHub↗

    Amber is a transpiler that translates high-level source code into executable shell scripts for Bash, Zsh, and Ksh. It provides a type-safe environment for shell script generation, allowing for static type validation and the creation of standalone executable scripts. The project distinguishes itself through a compilation process that includes tree-shaking import optimization to reduce output size and template-based script wrapping for custom headers and footers. It utilizes a module-based dependency resolution system with visibility controls to manage code reuse across multiple files. The lan

    Rustbashbash-scriptingcompilers
    View on GitHub↗4,731
See all 15 alternatives to Z→

Frequently asked questions

What does z-pattern-matching/z do?

Z is a pattern matching library for JavaScript that evaluates variables against structural shapes, data types, and literal values to branch program execution conditionally. It functions as a functional programming utility designed to deconstruct arrays and objects into parts during conditional evaluation.

What are the main features of z-pattern-matching/z?

The main features of z-pattern-matching/z are: JavaScript Libraries, Pattern Matching Deconstruction, Object and Array Destructuring, Conditional Execution Utilities, Head-Tail, Template Inspections, Expression-Oriented Evaluation, Pattern Syntax Transformers.

What are some open-source alternatives to z-pattern-matching/z?

Open-source alternatives to z-pattern-matching/z include: tc39/proposal-pattern-matching — This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a `match`… rust-lang/rust-by-example — This project is an interactive programming education resource and tutorial designed for learning the Rust programming… metagrover/es6-for-humans — ES6-for-humans is an educational resource and technical manual providing a structured tutorial and programming guide… saulpw/visidata — VisiData is a terminal-based interactive data analysis tool and browser designed for exploring, filtering, and sorting… amber-lang/amber — Amber is a transpiler that translates high-level source code into executable shell scripts for Bash, Zsh, and Ksh. It… balloonwj/cppguide — CppGuide is a curated collection of educational resources and practical guides focused on C++ server development,…

Curated searches featuring Z

Hand-picked collections where Z appears.
  • Object destructuring patterns