# cypriss/mutations

Compose your business logic into commands that sanitize and validate input.

Repository: https://github.com/cypriss/mutations
Canonical: https://ross.abutalabs.com/products/mutations
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-01-15T11:11:59+00:00

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

## Adoption (not part of the score)
Stars 1396, forks 92 (observed 2026-08-28T04:04:36.632825+00:00)

## What it is
A Ruby gem for composing business logic into command objects that sanitize, coerce, and validate input before executing. It provides a structured alternative to ActiveRecord validations and controller callbacks for Rails and plain Ruby apps.

## Use cases
- validate and sanitize user signup input in a rails controller
- replace strong parameters and model validations with command objects
- organize business operations like signup, login, and password change into reusable commands
- build multi-model create flows without nested attributes
- reuse the same business logic across web controllers and background jobs

## When to choose
- you want input validation and business logic separated from controllers and models
- you're building a rails or ruby app with complex multi-model operations
- you need commands reusable across API endpoints, jobs, and other contexts

## When to avoid
- you prefer service objects or dry-rb's dry-validation ecosystem
- your app has simple CRUD operations with minimal validation needs
- you're not working in Ruby or Rails

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, middleware
- domain: web-development, backend, developer-tools
- platform: ruby
- tags: command-pattern, business-logic, input-sanitization, rails, form-validation

## Member repositories
- cypriss/mutations (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.632825+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-30T04:39:18.998518+00:00, confidence not recorded.
  - readme: https://github.com/cypriss/mutations (fetched 2026-08-28T04:04:36.632825+00:00, sha c940add747e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
