# DavyJonesLocker/client_side_validations

Client Side Validations made easy for Ruby on Rails

Repository: https://github.com/DavyJonesLocker/client_side_validations
Canonical: https://ross.abutalabs.com/products/client_side_validations
Language: Ruby
License: MIT
License Family: permissive
Topics: clientsidevalidations, rails
Last push: 2026-08-24T14:50:04+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 92, longevity 100
- inputs: {"age_days": 5694, "days_push": 9, "days_rel": 59, "gap_med": 0, "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 2680, forks 395 (observed 2026-08-28T04:07:09.976908+00:00)

## What it is
A Ruby gem and JavaScript package that automatically extracts ActiveModel validation rules from a Rails backend and applies them as client-side form validations. It renders validation errors identically to server-side rendering and supports custom validators, nested fields, and a plugin system for additional form builders and ORMs.

## Use cases
- validate rails forms in the browser without page reloads
- reuse server-side activemodel validation rules on the client
- show inline form validation errors matching server-side rendering
- validate nested form fields client-side
- add client-side validation to a custom rails form builder
- avoid duplicating validation logic between backend and frontend

## When to choose
- you have a Rails 7.2 or 8.x app with ActiveModel::Validations and want instant client-side feedback
- you want client-side errors to look identical to server-side validation errors
- you need support for nested fields and custom validations out of the box
- you want a jQuery-free, plugin-extensible validation solution

## When to avoid
- you are not using Ruby on Rails or ActiveModel-based models
- your validations rely heavily on conditional callbacks like :if/:unless, which fall back to the server
- you use a frontend framework (React, Vue) with its own form validation ecosystem
- you need validations for non-Rails backends

## Facets
- artifact type: library
- maturity: active
- function: form-handling, frontend-framework, plugin-system
- domain: web-development, frontend, developer-tools
- platform: ruby, browser
- tags: ruby-on-rails, client-side-validation, activemodel, form-validation, gem, javascript, web-server

## Member repositories
- DavyJonesLocker/client_side_validations (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.976908+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:17:56.180965+00:00, confidence not recorded.
  - readme: https://github.com/DavyJonesLocker/client_side_validations (fetched 2026-08-28T04:07:09.976908+00:00, sha 8479922d325f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
