# rails/jquery-ujs

Ruby on Rails unobtrusive scripting adapter for jQuery

Repository: https://github.com/rails/jquery-ujs
Canonical: https://ross.abutalabs.com/products/jquery-ujs
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-06-05T22:25:41+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6060, "days_push": 819, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2601, forks 503 (observed 2026-08-28T04:07:03.357313+00:00)

## What it is
A small JavaScript library that adds unobtrusive scripting support to jQuery, driven by HTML data attributes. It enables confirmation dialogs, non-GET link requests, Ajax form/link submission, and automatic submit-button disabling, primarily for Ruby on Rails apps.

## Use cases
- add confirm dialogs to destructive links in a Rails app
- submit forms via Ajax without writing custom JavaScript
- make hyperlinks issue POST/DELETE requests
- prevent double form submission by disabling submit buttons
- wire Rails remote forms with jQuery Ajax events
- add unobtrusive JS behavior to any backend via data attributes

## When to choose
- you maintain a legacy Rails app using jQuery and Turbolinks-free UJS patterns
- you want Ajax forms and confirm dialogs with minimal JavaScript
- your stack already depends on jQuery 1.8+

## When to avoid
- you use Rails with Turbo/Stimulus (rails-ujs is deprecated in favor of Turbo)
- you build a modern SPA without jQuery
- you need heavy client-side interactivity beyond simple Ajax enhancements

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, form-handling, http-client
- domain: web-development, frontend
- platform: browser
- tags: jquery, unobtrusive-javascript, ajax, rails, data-attributes, nodejs

## Member repositories
- rails/jquery-ujs (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:03.357313+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-30T02:21:16.320716+00:00, confidence not recorded.
  - readme: https://github.com/rails/jquery-ujs (fetched 2026-08-28T04:07:03.357313+00:00, sha c5183b5730c9)
  - registry_npm: https://registry.npmjs.org/jquery-ujs (fetched 2026-08-29T10:04:24.714629+00:00, sha 60d16af3bc88)
- Data as of 2026-08-30T08:39:29.467469+00:00.
