# rails/activeresource

Connects business objects and REST web services

Repository: https://github.com/rails/activeresource
Canonical: https://ross.abutalabs.com/products/activeresource
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-22T16:58:21+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 47, longevity 100
- inputs: {"age_days": 5286, "days_push": 11, "days_rel": 356, "gap_med": 0.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1404, forks 362 (observed 2026-08-28T04:04:37.925858+00:00)

## What it is
Active Resource is a Ruby library that maps model classes to remote REST web services, providing an object-relational-mapping-style wrapper over HTTP/JSON APIs. It lets Ruby objects transparently proxy CRUD operations to RESTful endpoints using Active Record-like conventions.

## Use cases
- consume a REST API as Ruby objects
- map models to remote REST resources like Active Record maps to database tables
- wrap a JSON REST web service in a Ruby client library
- query and update remote resources with find, exists?, and save methods
- build a client for a Rails RESTful API with minimal code
- handle token-based authentication headers for API requests

## When to choose
- you are a Ruby or Rails application consuming a RESTful JSON API
- you want Active Record-style syntax and conventions against HTTP resources instead of a database
- you prefer convention-over-configuration proxying of remote resources with little boilerplate
- you need thread-safe, configurable connections with token authentication support

## When to avoid
- the remote service is not RESTful or does not follow predictable resource conventions
- you need fine-grained control over HTTP requests, retries, or non-JSON payloads
- you are working outside the Ruby ecosystem
- you only need a simple one-off HTTP call rather than a persistent object mapping

## Facets
- artifact type: library
- maturity: active
- function: orm, http-client, serialization, auth
- domain: web-development, apis, backend, developer-tools
- platform: ruby, cross-platform
- tags: rest-client, active-record-like, rails-ecosystem, api-consumption, object-mapping, json-api

## Member repositories
- rails/activeresource (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.925858+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-30T04:38:52.208516+00:00, confidence not recorded.
  - readme: https://github.com/rails/activeresource (fetched 2026-08-28T04:04:37.925858+00:00, sha a167a051ef61)
- Data as of 2026-08-30T08:39:29.467469+00:00.
