# okuramasafumi/alba

Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.

Repository: https://github.com/okuramasafumi/alba
Canonical: https://ross.abutalabs.com/products/alba
Homepage: https://rubygems.org/gems/alba
Language: Ruby
License: MIT
License Family: permissive
Topics: json-serializer, json-serialization, ruby, performance, json, presenter, hacktoberfest
Last push: 2026-09-02T13:15:33+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 87, longevity 100
- inputs: {"age_days": 2416, "days_push": 0, "days_rel": 5, "gap_med": 89, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1201, forks 63 (observed 2026-09-03T02:15:15.627184+00:00)

## What it is
Alba is a fast, flexible JSON serializer gem for Ruby, JRuby, and TruffleRuby. It lets you define resource classes that declare attributes and transformations to serialize Ruby objects into JSON.

## Use cases
- serialize ruby objects to  for api responses
- replace activemodelserializers with a faster serializer
- define  presenters for rails or hanami models
- serialize records with custom attribute transformations
- speed up  rendering in a ruby web api

## When to choose
- you need high-performance  serialization in ruby
- you want a lightweight alternative to ActiveModelSerializers
- you use JRuby or TruffleRuby and need a compatible serializer

## When to avoid
- you need XML or non-JSON output formats
- you rely on AMS-specific features without migration effort

## Facets
- artifact type: library
- maturity: active
- function: serialization
- domain: web-development, backend, apis, developer-tools
- platform: ruby, jvm, cross-platform
- tags: -serializer, presenter, api-serialization, activemodel-serializers-alternative

## Member repositories
- okuramasafumi/alba (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:15.627184+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-30T06:20:50.639065+00:00, confidence not recorded.
  - readme: https://github.com/okuramasafumi/alba (fetched 2026-09-03T02:15:15.627184+00:00, sha 2f5fc1048fda)
  - homepage: https://rubygems.org/gems/alba (fetched 2026-08-29T12:28:06.860035+00:00, sha a8997975a83f)
  - site_page: https://guides.rubygems.org/command-reference (fetched 2026-08-29T12:28:06.862508+00:00, sha ef62154d6253)
  - site_page: https://rubygems.org/pages/about (fetched 2026-08-29T12:28:06.866159+00:00, sha e4248571fa5d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
