finds.dev

rails-api/active_model_serializers

ActiveModel::Serializer implementation and Rails hooks

View on GitHub

★ 5,342RubyMITupdated Dec 2025

// the take

ActiveModelSerializers (AMS) is a Ruby gem that gives Rails apps an explicit serializer layer for turning models into JSON, with adapters for plain attributes, generic JSON, and JSON:API. It's for Rails teams who want serialization logic out of their models/controllers and into dedicated serializer classes, typically on the stable 0.10.x branch rather than master.

The serializer-class pattern (one serializer per resource, explicit attributes/associations) is a genuinely useful decoupling that a lot of other Ruby serialization gems copied. The JSON:API adapter handles the fiddly parts of the spec (included resources, type/id normalization) instead of making every app roll its own. It's been in production in a huge number of Rails apps for a decade, so the 0.10-stable branch is battle-tested against real-world edge cases, not just toy examples. Built-in fragment caching of serialized output is a real feature for apps serializing the same records repeatedly.

The project's own README says master has no released version and is stuck in a 'renovation' limbo that's been open since the JSON:API 1.0 era — almost none of the original maintainers are still active, and there's no credible roadmap to a 1.0. The maintainers themselves point newcomers to alternatives (fast_jsonapi, Alba, jsonapi-rb, blueprinter) in the README, which is a bad sign for picking this up on a new project. Performance is noticeably behind newer serializers like fast_jsonapi/Alba because of AMS's reflection-heavy, implicit-resolution design (guessing serializer classes, association serializers, etc.) rather than an explicit, lean render path. If you're on 0.10.x you're pinned to that branch indefinitely with no forward path, and any JSON:API strictness beyond the basics means fighting the adapter rather than a purpose-built spec implementation.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
5,342
Forks
1,366
Language
Ruby
License
MIT
Last commit
8 Dec 2025

// nearby

If active_model_serializers isn't quite it.

All repos →