# rails/globalid

Identify app models with a URI

Repository: https://github.com/rails/globalid
Canonical: https://ross.abutalabs.com/products/globalid
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-08T09:26:40+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 66, longevity 100
- inputs: {"age_days": 4401, "days_push": 25, "days_rel": 71, "gap_med": 139.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1277, forks 138 (observed 2026-08-28T04:04:13.273491+00:00)

## What it is
A Ruby library from the Rails project that provides app-wide URIs (gid://app/Model/id) for uniquely identifying model instances across different classes. It supports signed and expiring identifiers for tamper-proof, time-limited references, with built-in Active Record integration.

## Use cases
- pass model references to background jobs without serializing objects
- build dropdowns mixing Users and Groups with a universal identifier
- create expiring share links for documents
- sign identifiers to prevent tampering
- locate records from a URI string

## When to choose
- you're on Rails or Active Record and need uniform references to heterogeneous models
- you need signed or expiring identifiers for secure resource links
- you're building job scheduling that references records by ID

## When to avoid
- you're not using Ruby or a framework with a find-by-id model pattern
- you need cross-service identifiers rather than app-wide ones
- you just need primary keys within a single model class

## Facets
- artifact type: library
- maturity: stable
- function: serialization, security
- domain: developer-tools, web-development, apis
- platform: ruby
- tags: active-record, uri, signed-identifiers, background-jobs, rails-ecosystem

## Member repositories
- rails/globalid (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.273491+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-30T05:02:51.116753+00:00, confidence not recorded.
  - readme: https://github.com/rails/globalid (fetched 2026-08-28T04:04:13.273491+00:00, sha 6f4ed212acb4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
