# collectiveidea/interactor

Interactor provides a common interface for performing complex user interactions.

Repository: https://github.com/collectiveidea/interactor
Canonical: https://ross.abutalabs.com/products/interactor
Language: Ruby
License: MIT
License Family: permissive
Last push: 2025-07-10T16:02:16+00:00

## Health v2 (maintenance only)
Score: 46/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 31, release rhythm 35, longevity 100
- inputs: {"age_days": 4787, "days_push": 419, "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 3458, forks 211 (observed 2026-08-28T04:08:05.575169+00:00)

## What it is
A Ruby gem providing a common interface for encapsulating business logic in single-purpose objects called interactors. Each interactor operates on a context with support for success/failure handling, hooks, and organizing logic into organizers.

## Use cases
- encapsulate business logic in ruby
- replace fat rails controllers with service objects
- organize complex multi-step operations
- handle success and failure flows in ruby apps
- chain multiple operations with rollback
- structure application logic for testability

## When to choose
- building Ruby or Rails applications with complex business logic
- you want a lightweight, well-established service object pattern
- you need composable operations with before/after hooks and failure handling

## When to avoid
- using non-Ruby languages
- you prefer plain POROs or a different service object approach
- your logic is simple enough that an abstraction adds overhead

## Facets
- artifact type: library
- maturity: stable
- function: middleware, workflow-automation, error-handling
- domain: web-development, backend, developer-tools
- platform: ruby, jvm
- tags: service-objects, business-logic, interactor-pattern, command-pattern, rails

## Member repositories
- collectiveidea/interactor (main) score 46

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.575169+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:36:57.307662+00:00, confidence not recorded.
  - readme: https://github.com/collectiveidea/interactor (fetched 2026-08-28T04:08:05.575169+00:00, sha d2b94f4d2f11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
