# makandra/active_type

Make any Ruby object quack like ActiveRecord

Repository: https://github.com/makandra/active_type
Canonical: https://ross.abutalabs.com/products/active_type
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-01-22T15:42:12+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 63, release rhythm 35, longevity 100
- inputs: {"age_days": 4576, "days_push": 223, "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 1122, forks 77 (observed 2026-08-28T04:03:40.129044+00:00)

## What it is
A Ruby gem that lets any Ruby object behave like an ActiveRecord model, with attributes, validations, and callbacks, without requiring a database table. It supports form/presenter models and extending existing ActiveRecord records with model-specific behavior.

## Use cases
- create form models not backed by a database table
- add sign-up-only validations and callbacks to a user model
- build presenter models in Rails with ActiveRecord amenities
- define virtual attributes with defaults on plain Ruby objects
- keep controller-specific logic out of shared ActiveRecord models

## When to choose
- you need ActiveRecord-like validations and callbacks on non-database-backed models
- you want per-form behavior on top of existing ActiveRecord records
- you need lazy or instance-context attribute defaults beyond Rails' built-in .attribute

## When to avoid
- you only need simple virtual attributes available in vanilla Rails 5+
- your project does not use ActiveRecord or Rails
- you need to override existing database-backed column behavior

## Facets
- artifact type: library
- maturity: active
- function: orm, form-handling
- domain: web-development, backend, developer-tools
- platform: ruby
- tags: activerecord, rails, form-models, virtual-attributes, presenters, web-server

## Member repositories
- makandra/active_type (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.129044+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-30T06:40:56.422367+00:00, confidence not recorded.
  - readme: https://github.com/makandra/active_type (fetched 2026-08-28T04:03:40.129044+00:00, sha b2db9da1817d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
