Blueprinter
Simple, Fast, and Declarative Serialization Library for Ruby (by procore-oss)
ROM
Data mapping and persistence toolkit for Ruby (by rom-rb)
Blueprinter | ROM | |
---|---|---|
12 | 5 | |
1,063 | 2,065 | |
1.1% | 0.1% | |
8.8 | 5.5 | |
7 days ago | 18 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Blueprinter
Posts with mentions or reviews of Blueprinter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-18.
-
Recommended Controllers Serializer Gem?
Blueprinter is something we use on a project, it's also having difficulty staying alive, but right now there is active development here, a fork from the original blueprinted gem.
-
Efficient JSON Serialization with Blueprinter for Ruby on Rails
Beware of this
-
Understanding Clean Architecture with small Ruby libraries
Serializer: procore/blueprinter: Simple, Fast, and Declarative Serialization Library for Ruby
-
ActiveModel::Serializer and You
Today I thought I'd run through a few of the powerful things that the ActiveModel::Serializer gem brings to the table when used in a Ruby on Rails application. Sure, there are faster alternatives, but AMS is the first one I learned how to use, and thus it holds a special place in my heart. Quick question before we dive too much deeper, though...
-
What are you using for API JSON serialization in 2022?
Blueprint
-
What are the gems that every Ruby dev should know how to use?
Just an FYI: While I agree that the blueprinter gem is awesome, there are currently no active maintainers: https://github.com/procore/blueprinter/issues/288
-
Hunting down spooky JSON module redefinition via Oj
In a happy coincidence, we're knee-deep in the middle of a migration of our serialisers to use Blueprinter instead of AMS. One benefit, in this case, is that it lets you explicitly set what generator you're using, like so:
-
Accessing [grand+]child through multiple queries VS having direct reference to the [grand+]parent on every model.
What made me think about this is that I'm using (maybe in the wrong way) some gems like Blueprinter and Amoeba.
-
What is the best way to retrieve all instances of a model, along with it's associations, in an index action when using React (or not Rails Views)?
I've been using Blueprinter so far, and it has been working great, but I'd like to ditch it if I can.
-
Looking for a full Rswag example project.
We use it extensively for one project. The only annoying bit involves defining the response json-schema. Luckily we are using a gem called blueprinter for JSON serialization, so we added a bunch of overrides that store metadata, so we can generate the json-schema with meta programming. You might need to find a library that would help you write the schemas fluently [1] / [2] to make it easier to define them.
ROM
Posts with mentions or reviews of ROM.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-01.
-
Understanding Clean Architecture with small Ruby libraries
Object Mapper: rom-rb/rom: Data mapping and persistence toolkit for Ruby
-
Rails is not written in Ruby
Just wanted to say that the authors libraries, especially ROM [0], are incredible and have played a huge influence on me as a developer. I learned a lot using and diving through the code.
[0]: https://rom-rb.org/
-
Catching up on things
Better gems. dry-rb, ROM, and Hanami are doing interesting stuff. I also hear web_pipe is popular?
-
10 Years of Open Source
This is exactly how I ended up contributing to DataMapper, then joining the core team, then releasing Virtus, then working on DataMapper 2.0, then turning it into rom-rb, then joining dry-rb and building 1.25 library / month on average for about 2 years or so to eventually join Hanami team...and, yeah, it's been kinda nuts now when I look back.
-
Best of (Ruby) Gems Series - What's Next? What's Hot?
Ruby Object Mapper
What are some alternatives?
When comparing Blueprinter and ROM you can also consider the following projects:
ActiveModel::Serializers - ActiveModel::Serializer implementation and Rails hooks
Sequel - Sequel: The Database Toolkit for Ruby
Fast JSON API - No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
ActiveRecord
jbuilder - Jbuilder: generate JSON objects with a Builder-style DSL
DataMapper
Rails::API - Rails for API only applications
Hanami::Model - Ruby persistence framework with entities and repositories
alba - Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.
Ohm - Object-Hash Mapping for Redis
jsonapi-serializer - A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)
Mongoid - The Official Ruby Object Mapper for MongoDB