# madeintandem/jsonb_accessor

Adds typed jsonb backed fields to your ActiveRecord models.

Repository: https://github.com/madeintandem/jsonb_accessor
Canonical: https://ross.abutalabs.com/products/jsonb_accessor
Language: Ruby
License: MIT
License Family: permissive
Topics: activerecord, jsonb, jsonb-accessor, postgres, ruby, query
Last push: 2026-06-22T10:05:06+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 63, longevity 100
- inputs: {"age_days": 4172, "days_push": 72, "days_rel": 166, "gap_med": 57, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1128, forks 97 (observed 2026-08-28T04:03:41.645446+00:00)

## What it is
A Ruby gem that adds typed b-backed fields to ActiveRecord models, making JSONB columns behave like first-class typed attributes. It also provides generic scopes for querying b columns in PostgreSQL.

## Use cases
- store typed fields in a b column on ActiveRecord models
- query b columns with generic scopes in Rails
- add defaults and arrays to b-backed attributes
- map model attributes to custom store keys in b
- avoid migrations when adding flexible fields to Rails models

## When to choose
- you use Rails with PostgreSQL and want typed, queryable fields inside a b column
- you need flexible schema-less attributes alongside regular ActiveRecord columns

## When to avoid
- you don't use PostgreSQL or ActiveRecord
- you need actively developed new features, since the gem is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, serialization, database
- domain: databases, web-development, backend
- platform: ruby
- tags: activerecord, b, postgresql, rails, gem, postgres

## Member repositories
- madeintandem/jsonb_accessor (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.645446+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:38:33.625363+00:00, confidence not recorded.
  - readme: https://github.com/madeintandem/jsonb_accessor (fetched 2026-08-28T04:03:41.645446+00:00, sha 90c9a9b12789)
- Data as of 2026-08-30T08:39:29.467469+00:00.
