# JSONAPI-Resources/jsonapi-resources

A resource-focused Rails library for developing JSON:API compliant servers.

Repository: https://github.com/JSONAPI-Resources/jsonapi-resources
Canonical: https://ross.abutalabs.com/products/jsonapi-resources
Homepage: http://jsonapi-resources.com
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-03-04T17:21:23+00:00

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

## Adoption (not part of the score)
Stars 2324, forks 545 (observed 2026-08-28T04:06:37.300262+00:00)

## What it is
JSONAPI::Resources (JR) is a Ruby gem that provides a resource-focused framework for building JSON:API compliant API servers on Rails 5.1+. It supplies custom routes, controllers, and serializers so that defining resources with attributes and relationships is enough to make a server spec-compliant.

## Use cases
- build a JSON:API compliant API server in Rails
- expose ActiveRecord models as JSON:API resources
- add sorting, filtering, and pagination to a Rails API
- create CRUD endpoints for resources and relationships with minimal code
- serve an API backed by custom objects instead of ActiveRecord
- standardize API response format across a Rails backend

## When to choose
- you are building a Rails API and want strict JSON:API spec compliance
- you want a fully functional API with minimal boilerplate code
- you need configurable pagination, caching, sorting, and filtering out of the box
- your resources may be backed by ActiveRecord models or custom objects

## When to avoid
- your project is not built on Rails
- you need a plain REST or GraphQL API rather than the JSON:API specification
- you want a framework-agnostic Ruby API library
- you need a standalone API server without a Rails application

## Facets
- artifact type: library
- maturity: active
- function: api-framework, serialization, routing, middleware
- domain: web-development, backend, apis
- platform: ruby
- tags: json-api, rails, rest-api, gem, active-record, web-server

## Member repositories
- JSONAPI-Resources/jsonapi-resources (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.300262+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-30T02:38:25.544518+00:00, confidence not recorded.
  - readme: https://github.com/JSONAPI-Resources/jsonapi-resources (fetched 2026-08-28T04:06:37.300262+00:00, sha 62fe009f337a)
  - homepage: http://jsonapi-resources.com (fetched 2026-08-29T10:18:45.049885+00:00, sha ad1820eb3e63)
- Data as of 2026-08-30T08:39:29.467469+00:00.
