active-hash/active_hash
A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 93
- Release rhythm 45
- 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: 244
- age_days: 6252
- days_rel: 155
- days_push: 43
- n_releases_24m: 2
Adoption not part of the score
1354 stars · 187 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem providing an ActiveRecord-like base class backed by in-memory hashes, YAML files, or custom file data sources instead of a database. It supports ActiveRecord-style associations like has_many and belongs_to, letting static data models drop into Rails apps seamlessly.
Use cases
- use static lookup data like countries in Rails forms without a database
- replace ActiveRecord models with hash-backed models for seed or reference data
- test gems or plugins that rely on ActiveRecord behavior without a database
- load model data from YAML files instead of a database table
- seamlessly upgrade hash-backed models to full ActiveRecord models later
When to choose
- you have small, static, readonly datasets in a Rails app
- you want ActiveRecord-like APIs for data that lives in hashes or YAML files
- you need database-free models for fast test suites
When to avoid
- you need writable, persistent data with queries across large datasets
- your data changes at runtime and must be stored in a real database
- you are not working in Ruby or a Rails-compatible environment
Facets
library · maturity active
orm database serialization web-development backend developer-tools testing ruby jvm activerecord yaml in-memory-data rails readonly-models fixtures
1 source
- readme: https://github.com/active-hash/active_hash · fetched 2026-08-28 · 93533f1ef38e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| active-hash/active_hash | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="active-hash/active_hash")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem