# railsware/js-routes

Brings Rails named routes to javascript

Repository: https://github.com/railsware/js-routes
Canonical: https://ross.abutalabs.com/products/js-routes
Homepage: http://railsware.github.io/js-routes/
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-06-21T09:40:30+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 77, longevity 100
- inputs: {"age_days": 5509, "days_push": 73, "days_rel": 73, "gap_med": 58, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1698, forks 158 (observed 2026-08-28T04:05:24.065422+00:00)

## What it is
A Ruby gem that generates a JavaScript (and TypeScript definition) file exposing all Rails named routes as callable helper functions. It lets frontend code build Rails URLs without duplicating route logic.

## Use cases
- generate URLs in JavaScript from Rails routes
- share Rails route helpers with a JS frontend
- avoid hardcoding API paths in JavaScript
- get TypeScript autocompletion for Rails routes
- keep JS route links in sync with Rails routing config

## When to choose
- you have a Rails app with a JavaScript frontend that needs named route URLs
- you want route definitions to stay in sync automatically between Rails and JS
- you want typed route helpers via generated .d.ts files

## When to avoid
- your project does not use Ruby on Rails
- your frontend is fully decoupled from Rails and consumes only a fixed API
- you rely on legacy Sprockets setups without migration plans

## Facets
- artifact type: library
- maturity: active
- function: routing, templating, developer-tools
- domain: web-development, backend, frontend, developer-tools
- platform: ruby
- tags: rails, ruby-gem, url-helpers, typescript-definitions, webpacker, sprockets, nodejs, web-server

## Member repositories
- railsware/js-routes (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:24.065422+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-30T03:37:50.062719+00:00, confidence not recorded.
  - readme: https://github.com/railsware/js-routes (fetched 2026-08-28T04:05:24.065422+00:00, sha 8612ac56da82)
  - homepage: http://railsware.github.io/js-routes/ (fetched 2026-08-29T11:12:30.330649+00:00, sha 144601a233ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
