# activerecord-hackery/squeel

Active Record, improved. Live again :)

Repository: https://github.com/activerecord-hackery/squeel
Canonical: https://ross.abutalabs.com/products/squeel
Homepage: http://erniemiller.org/2013/11/17/anyone-interested-in-activerecord-hackery/
Language: Ruby
License: MIT
License Family: permissive
Archived: true
Last push: 2022-03-29T17:18:31+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5625, "days_push": 1618, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2380, forks 207 (observed 2026-08-28T04:06:42.263286+00:00)

## What it is
Squeel is a Ruby gem that enhances Active Record queries by providing a block-based DSL that exposes Arel in a more Ruby-like way, reducing reliance on SQL strings. The project is now archived and unmaintained.

## Use cases
- write activerecord queries without sql strings
- build complex where clauses in ruby
- make arel easier to use in rails
- query associations with a dsl
- replace string-based rails conditions

## When to choose
- you maintain a legacy Rails app already using Squeel
- you're on an old Rails/Ruby version where it still works

## When to avoid
- starting a new Rails project
- you're on modern Rails versions with built-in where chaining and Arel support
- you need maintained software with security updates

## Facets
- artifact type: library
- maturity: abandoned
- function: orm, database
- domain: databases, web-development, backend
- platform: ruby
- tags: activerecord, arel, query-dsl, rails, archived

## Member repositories
- activerecord-hackery/squeel (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:42.263286+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-30T02:34:51.922311+00:00, confidence not recorded.
  - readme: https://github.com/activerecord-hackery/squeel (fetched 2026-08-28T04:06:42.263286+00:00, sha 044e38b57a78)
- Data as of 2026-08-30T08:39:29.467469+00:00.
