Open-source projects categorized as ActiveRecord | Edit details
Language filter: + Ruby + C# + Java

Top 23 ActiveRecord Open-Source Projects

  • GitHub repo Ruby on Rails

    Ruby on Rails

    Project mention: What does adding Rails in front of logger do different? | reddit.com/r/ruby | 2021-06-17

    Rails.logger will be an ActiveSupport::Logger, unless another logging provider is being used, but it should at least extend from that.

  • GitHub repo PaperTrail

    Track changes to your rails models

    Project mention: Avo for Rails v1.0 💪 🎉 | reddit.com/r/rails | 2021-03-31

    They might be referring to the model change checking gem, not the log aggregation service.

  • GitHub repo ransack

    Object-based searching.

    Project mention: API - convention for filter that can have an occurrence of the value passed? | reddit.com/r/rails | 2021-05-11

    You might be looking for something like Ransack - https://github.com/activerecord-hackery/ransack

  • GitHub repo AASM

    AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)

    Project mention: Code review of an Order object implemented as a state machine | reddit.com/r/ruby | 2021-03-21

    AASM gem is great too! Easy to use and actively maintained.

  • GitHub repo Annotate

    Annotate Rails classes with schema and routes info

  • GitHub repo Elasticsearch Rails

    Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

  • GitHub repo PublicActivity

    Easy activity tracking for models - similar to Github's Public Activity

    Project mention: How to Create A Flexible, Performant Audit Trail In Ruby on Rails With A GraphQL API | dev.to | 2021-04-08

    You often want to track what user's are doing throughout your app. There are some gems that help you do this. For example, activerecord_activity_tracker or public_activity. However, gems like these sometimes utilize polymorphic relationships, which don't scale well, or they're very opinionated about the setup. When your requirements differ from the default setup, it can become cumbersome to implement.

  • GitHub repo Scenic

    Versioned database views for Rails

    Project mention: Logidze 1.0, postgres-specific alternative to eg paper_trail for recording ActiveRecord change history | reddit.com/r/ruby | 2021-01-27

    TIL about fx gem for storing triggers in schema.rb. That makes me so happy because scenic gem for creating database views is one of my favorites. Postgres is very powerful and it's great to see tools for exposing that through Rails.

  • GitHub repo SqlKata Query Builder

    SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird

    Project mention: Windyquery: A non-blocking Python PostgreSQL query builder | news.ycombinator.com | 2021-05-10

    That is basically the description of an object mapper, with all the guarantees of an object mapper :). It seems if you actually use the query builder as such, no guarantees exist.

    I'm pretty picky regarding query builders and ORM's, to the extent of having written several of them over the years, in different languages (both dynamic and strong typed, unfortunately closed-source). I'm a strong advocate of schema-first design, and usually a query builder will allow you to design your queries explicitly, but having some internal behaviors (such as string concatenation, identifier quoting and automatic in-order separation of parameters and values to be bound) taken care of. As good examples of this, I'd mention golang's goqu (https://github.com/doug-martin/goqu) and - to some extent - C# SqlKata (https://sqlkata.com/). Following my frustrations with Python ORMs, I built my own toy project, sort-of-in-beta, called rickdb (https://github.com/oddbit-project/rick_db).

  • GitHub repo IdentityCache

    IdentityCache is a blob level caching solution to plug into Active Record. Don't #find, #fetch!

  • GitHub repo Enumerize

    Enumerated attributes with I18n and ActiveRecord/Mongoid support

  • GitHub repo Closure Tree

    Easily and efficiently make your ActiveRecord models support hierarchies

    Project mention: Find all objects of a chain of associations on the same table | reddit.com/r/rails | 2021-03-02

    I’ve used this for that https://github.com/ClosureTree/closure_tree

  • GitHub repo counter_culture

    Turbo-charged counter caches for your Rails app.

    Project mention: 26 most popular Ruby/Rails repositories on GitHub in July-August 2020 | dev.to | 2020-09-05

    counter_culture is a turbo-charged counter cache for your Rails app. 1,301 stars by now

  • GitHub repo validates_timeliness

    Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.

  • GitHub repo Spreadsheet Architect

    Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data.

  • GitHub repo ObjectiveSql

    ObjectiveSQL is an ORM framework in Java based on ActiveRecord pattern, which encourages rapid development and clean, codes with the least and convention over configuration.

    Project mention: Weekly Developer Roundup #23 - Sun Nov 22 2020 | dev.to | 2020-11-21

    Show HN: A new way of ORM in Java: https://github.com/braisdom/ObjectiveSql

  • GitHub repo Logidze

    Database changes log for Rails

  • GitHub repo Goldiloader

    Just the right amount of Rails eager loading

    Project mention: Prosopite is trending on GitHub! Thank you! | reddit.com/r/ruby | 2021-02-20

    Prosopite looks cool, it's is similar to https://github.com/salsify/goldiloader, though goldiloader will also rewrite the query to address the N+1 issue. You should be able to use both and verify goldiloader is working by checking that prosopite logs no N+1 queries.

  • GitHub repo lockbox

    Modern encryption for Ruby and Rails

    Project mention: Rails 7 introduces Active Record Encryption | reddit.com/r/ruby | 2021-04-02

    I've been using the lockbox gem to encrypt specified attributes.

  • GitHub repo active_record_doctor

    Identify database issues before they hit production.

    Project mention: 15 Resources I Learned Something From This Weekend | dev.to | 2020-09-27

    gregnavis / active_record_doctor

  • GitHub repo SQL Server

    SQL Server Adapter For Rails

  • GitHub repo ActiveRecordExtended

    Adds additional postgres functionality to an ActiveRecord / Rails application

  • GitHub repo Polo

    Polo travels through your database and creates sample snapshots so you can work with real world data in development.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-06-17.


What are some of the best open-source ActiveRecord projects? This list will help you:

Project Stars
1 Ruby on Rails 48,553
2 PaperTrail 6,085
3 ransack 4,872
4 AASM 4,323
5 Annotate 3,730
6 Elasticsearch Rails 2,848
7 PublicActivity 2,799
8 Scenic 2,718
9 SqlKata Query Builder 1,915
10 IdentityCache 1,679
11 Enumerize 1,606
12 Closure Tree 1,580
13 counter_culture 1,450
14 validates_timeliness 1,364
15 Spreadsheet Architect 1,165
16 ObjectiveSql 1,122
17 Logidze 1,116
18 Goldiloader 1,105
19 lockbox 985
20 active_record_doctor 940
21 SQL Server 919
22 ActiveRecordExtended 862
23 Polo 701