Ross ROSS = Recommend OSS · open-source software intelligence for agents

pillarjs/path-to-regexp

Turn a path string such as `/user/:name` into a regular expression observed · 2026-08-28

github.com/pillarjs/path-to-regexp · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

90/100

  • Activity 96
  • Release rhythm 77
  • 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: 1.0
  • age_days: 5145
  • days_rel: 154
  • days_push: 29
  • n_releases_24m: 13

Full methodology

Adoption not part of the score

8602 stars · 484 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A TypeScript library that converts path strings like `/user/:name` into regular expressions for route matching. It supports named parameters, wildcards, optional segments, and reverse compilation of paths from parameters.

Use cases

  • match url paths with named parameters like /user/:name
  • convert route patterns to regular expressions
  • extract route params from a url path
  • build a router with wildcard and optional path segments
  • generate url paths from route templates and params
  • validate whether a path matches a route pattern

When to choose

  • you need express-style path matching in a nodejs router or framework
  • you want to parse parameters from ordered path strings
  • you need to compile parameterized paths back into url strings

When to avoid

  • you need to match query strings or arbitrarily ordered url data
  • you need a full-featured router rather than a path-matching utility
  • you are not working with path-like ordered strings

Facets

library · maturity stable

routing parser web-framework web-development backend developer-tools path-matching regexp express url-routing route-parameters nodejs javascript typescript

2 sources

Member repositories

RepositoryRoleHealth v2
pillarjs/path-to-regexpmain90

For agents

markdown · JSON · MCP: product_card(name="pillarjs/path-to-regexp")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem