DmitryTsepelev/store_model
Work with JSON-backed attributes as ActiveRecord-ish models observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2759
- days_rel: n/a
- days_push: 13
- n_releases_24m: 0
Adoption not part of the score
1232 stars · 109 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
StoreModel is a Ruby gem that wraps JSON-backed database columns (like jsonb) with ActiveModel-like classes using the Rails Attributes API. It lets you define typed attributes, validations, enums, and nested models for structured data stored inside a single JSON column.
Use cases
- wrap jsonb column in a rails model with typed attributes
- validate data stored in a json column
- replace verbose hash access on json attributes with model objects
- define nested models for json attributes in activerecord
- keep json column logic out of the parent activerecord model
When to choose
- you store structured, frequently-accessed data in a json/jsonb column in Rails
- you need validations, enums, or nested attributes for JSON-backed fields
- you want to follow single-responsibility by isolating JSON column logic in its own class
When to avoid
- you only read a few simple keys from a JSON column with no logic around them
- your project is not Ruby on Rails / ActiveRecord based
- the data would be better served by a separate relational table or document database
Facets
library · maturity active
serialization orm json form-handling web-development databases developer-tools ruby activerecord jsonb activemodel attributes-api gem rails
1 source
- readme: https://github.com/DmitryTsepelev/store_model · fetched 2026-08-28 · e4f851b76ff8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| DmitryTsepelev/store_model | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="DmitryTsepelev/store_model")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem