# hashrocket/decent_exposure

A helper for creating declarative interfaces in controllers

Repository: https://github.com/hashrocket/decent_exposure
Canonical: https://ross.abutalabs.com/products/decent_exposure
Language: Ruby
License: MIT
License Family: permissive
Last push: 2023-04-11T16:09:31+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6077, "days_push": 1240, "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 1799, forks 107 (observed 2026-08-28T04:05:37.898083+00:00)

## What it is
A Ruby gem providing declarative helpers (expose, expose!, exposure_config) for Rails controllers to lazily expose models and memoized attributes. It reduces boilerplate in CRUD controllers by automatically finding or building records from params.

## Use cases
- reduce boilerplate in Rails CRUD controllers
- declaratively expose models to controller actions and views
- memoize controller instance variables lazily
- customize how records are fetched or built per controller
- clean up controller code in a Rails monolith

## When to choose
- you maintain a Ruby on Rails app with repetitive controller code
- you want a small, focused DSL for controller exposures
- you prefer declarative controller patterns over manual find/new logic

## When to avoid
- you don't use Ruby on Rails
- you prefer explicit controller code without metaprogramming magic
- you need a library with frequent recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, web-framework
- domain: web-development, backend, developer-tools
- platform: ruby
- tags: rails, controllers, gem, crud, declarative, web-server

## Member repositories
- hashrocket/decent_exposure (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:37.898083+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-30T03:22:17.424340+00:00, confidence not recorded.
  - readme: https://github.com/hashrocket/decent_exposure (fetched 2026-08-28T04:05:37.898083+00:00, sha 6f65aa1c8f20)
- Data as of 2026-08-30T08:39:29.467469+00:00.
