drapergem/draper
Decorators/View-Models for Rails Applications observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 84
- Release rhythm 57
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 5543
- days_rel: 288
- days_push: 96
- n_releases_24m: 4
Adoption not part of the score
5276 stars · 523 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Draper is a Ruby gem that adds a decorator/view-model layer to Rails applications. It wraps ActiveRecord models with presentation-specific logic, keeping views clean and models free of display concerns.
Use cases
- move view helper logic into testable objects
- format dates and statuses for display in Rails views
- keep presentation logic out of ActiveRecord models
- organize view-model code for complex Rails UIs
- replace global helper methods with object-oriented decorators
When to choose
- you have a Rails app with presentation logic cluttering models or helpers
- you want testable, object-oriented view logic
- you need per-model display formatting without helper namespace pollution
When to avoid
- you use Sinatra, Hanami, or a non-Rails Ruby framework
- your views are simple and helpers suffice
- you prefer a different view-model pattern like plain POROs or ViewComponents
Facets
library · maturity stable
templating middleware web-development backend developer-tools ruby decorators view-models rails presentation-layer mvc web-server
1 source
- readme: https://github.com/drapergem/draper · fetched 2026-08-28 · 1e1117abda43
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| drapergem/draper | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="drapergem/draper")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem