# activerecord-hackery/ransack

Object-based searching.

Repository: https://github.com/activerecord-hackery/ransack
Canonical: https://ross.abutalabs.com/products/ransack
Homepage: https://activerecord-hackery.github.io/ransack/
Language: Ruby
License: MIT
License Family: permissive
Topics: search, search-interface, ruby, ruby-gem, ruby-library, ruby-on-rails, activerecord, sql, rails
Last push: 2026-05-31T20:24:55+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 50, longevity 100
- inputs: {"age_days": 5635, "days_push": 94, "days_rel": 338, "gap_med": 4, "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 5863, forks 823 (observed 2026-08-28T04:09:31.754538+00:00)

## What it is
Ransack is a Ruby gem that adds object-based searching and filtering to Ruby on Rails applications via ActiveRecord. It lets developers build simple and advanced search forms using standard Ruby and ERB without external search infrastructure.

## Use cases
- add search to a Rails app
- build advanced filter forms for ActiveRecord models
- query records with dynamic conditions from URL params
- sort and filter tables without Elasticsearch
- create admin panel search interfaces

## When to choose
- you have a Rails app with ActiveRecord and need search/filtering
- you want to avoid running Elasticsearch or Algolia infrastructure
- you need SQL-based searching with i18n support

## When to avoid
- you need full-text search across large datasets
- your app is not Ruby on Rails
- you need fuzzy or typo-tolerant search

## Facets
- artifact type: library
- maturity: active
- function: search-engine, orm, web-framework
- domain: web-development, databases
- platform: ruby
- tags: activerecord, ruby-on-rails, sql-query-builder, search-forms, filtering, search, web-server

## Member repositories
- activerecord-hackery/ransack (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:31.754538+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-29T17:51:37.508079+00:00, confidence not recorded.
  - readme: https://github.com/activerecord-hackery/ransack (fetched 2026-08-28T04:09:31.754538+00:00, sha 7e188875a4b8)
  - homepage: https://activerecord-hackery.github.io/ransack/ (fetched 2026-08-29T08:47:07.000834+00:00, sha 29b2247546da)
- Data as of 2026-08-30T08:39:29.467469+00:00.
