# solnic/virtus

[DISCONTINUED ] Attributes on Steroids for Plain Old Ruby Objects

Repository: https://github.com/solnic/virtus
Canonical: https://ross.abutalabs.com/products/virtus
Language: Ruby
License: MIT
License Family: permissive
Last push: 2021-08-10T13:39:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5632, "days_push": 1849, "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 3744, forks 231 (observed 2026-08-28T04:08:16.068517+00:00)

## What it is
Virtus is a Ruby library for defining typed attributes on plain old Ruby objects, with type coercion, mass-assignment, and embedded object mapping. It is officially discontinued in favor of the dry-rb successors (dry-types, dry-struct, dry-schema).

## Use cases
- define typed attributes on ruby classes
- coerce input parameters in web applications
- map  payloads to domain objects
- build value objects with mass-assignment
- prototype domain models quickly

## When to choose
- maintaining a legacy ruby codebase that already depends on virtus
- you need a simple attribute DSL and are pinned to old ruby versions

## When to avoid
- starting a new ruby project - use dry-types, dry-struct, or dry-schema instead
- you need ongoing maintenance, security fixes, or modern ruby compatibility

## Facets
- artifact type: library
- maturity: abandoned
- function: serialization, developer-tools
- domain: developer-tools, web-development
- platform: ruby
- tags: attributes, coercion, value-objects, discontinued, dry-types-successor

## Member repositories
- solnic/virtus (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:16.068517+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-29T18:29:05.116930+00:00, confidence not recorded.
  - readme: https://github.com/solnic/virtus (fetched 2026-08-28T04:08:16.068517+00:00, sha cc7750a58b92)
- Data as of 2026-08-30T08:39:29.467469+00:00.
