z-pattern-matching/z
Pattern Matching for Javascript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4019
- days_rel: n/a
- days_push: 1040
- n_releases_24m: 0
Adoption not part of the score
1712 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript library providing native-style pattern matching, allowing expressive matching on values, object properties, types, class instances, and array contents with head/tail destructuring. It encourages functional, immutable code as an alternative to imperative conditionals.
Use cases
- match objects by property values in javascript
- pattern match on array contents with head and tail
- replace switch statements with pattern matching
- match values by type or class instance
- write recursive array processing with pattern matching
- functional style conditionals in node.js
When to avoid
- you need TypeScript-native pattern matching with type safety
- your project is performance-critical and can't afford abstraction overhead
- you need a library with frequent updates and active maintenance
Facets
library · maturity maintenance
parser developer-tools programming-languages web-development cross-platform pattern-matching functional-programming immutability switch-statement algorithms nodejs javascript
3 sources
- readme: https://github.com/z-pattern-matching/z · fetched 2026-08-28 · 416095cd7bb6
- homepage: https://z-pattern-matching.github.io/ · fetched 2026-08-29 · 316845f1b81f
- registry_npm: https://registry.npmjs.org/z · fetched 2026-08-29 · 6c7ddf3f2986
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| z-pattern-matching/z | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="z-pattern-matching/z")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem