radar/by_star
Lets you find ActiveRecord + Mongoid objects by year, month, fortnight, week and more! observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: n/a
- age_days: 6492
- days_rel: n/a
- days_push: 1323
- n_releases_24m: 0
Adoption not part of the score
1047 stars · 72 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ByStar is a Ruby gem that adds time-based query scopes to ActiveRecord and Mongoid models, letting you find records by year, month, fortnight, week, day, or arbitrary time ranges. It provides convenient finder methods like by_year, by_month, between_times, before, and after for time-oriented data queries.
Use cases
- query posts created in a given year or month
- find records between two dates or times
- get all records from yesterday or last week
- find the next or previous record relative to a given record
- query records by calendar month, weekend, or fortnight
- filter ActiveRecord or Mongoid models by time ranges
When to choose
- you use Rails ActiveRecord or Mongoid and frequently query by time periods
- you want reliable, tested scopes for year/month/week/fortnight queries instead of hand-writing date math
- you need calendar-aware queries like calendar months or weekends
When to avoid
- you don't use ActiveRecord or Mongoid (e.g. Sequel, ROM, or non-Ruby stacks)
- your time queries are too complex or custom for the provided scopes
- you need a non-Ruby ORM time-querying solution
Facets
library · maturity maintenance
orm database date-time databases web-development developer-tools ruby jvm activerecord mongoid time-based-queries rails gem
2 sources
- readme: https://github.com/radar/by_star · fetched 2026-08-28 · f5ca879255d2
- homepage: http://ryanbigg.com · fetched 2026-08-29 · 7de34b15c737
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| radar/by_star | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem