# splitwise/super_diff

A more helpful way to view differences between complex data structures in RSpec.

Repository: https://github.com/splitwise/super_diff
Canonical: https://ross.abutalabs.com/products/super_diff
Homepage: https://splitwise.github.io/super_diff/
Language: Ruby
License: MIT
License Family: permissive
Topics: rspec, ruby, testing
Last push: 2026-08-13T16:32:02+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 57, longevity 100
- inputs: {"age_days": 5706, "days_push": 20, "days_rel": 124, "gap_med": 106.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1048, forks 63 (observed 2026-08-28T04:03:22.476171+00:00)

## What it is
SuperDiff is a Ruby gem that provides an intelligent diff engine for comparing complex data structures in RSpec tests. It replaces RSpec's default string-based diffing with readable, structured output showing exactly what differs between objects like hashes, arrays, and custom objects.

## Use cases
- readable diffs for complex data structures in RSpec tests
- compare nested hashes and arrays in test failures
- improve RSpec eq/match/include matcher output
- diff API response data in specs
- diff database records and custom objects in tests

## When to choose
- you use RSpec and struggle to interpret default diff output for hashes, arrays, or objects
- your tests compare nested API or database data structures
- you want color-coded, line-by-line insight into test failures

## When to avoid
- you don't use RSpec or Ruby
- you only diff simple multi-line strings, where built-in RSpec diffing suffices
- you need diffs outside a testing context

## Facets
- artifact type: library
- maturity: active
- function: testing, developer-tools
- domain: testing, developer-tools
- platform: ruby, cli
- tags: rspec, diffing, test-output, ruby-gem

## Member repositories
- splitwise/super_diff (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:22.476171+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-30T07:01:02.697703+00:00, confidence not recorded.
  - readme: https://github.com/splitwise/super_diff (fetched 2026-08-28T04:03:22.476171+00:00, sha 8ea597dc9aef)
  - homepage: https://splitwise.github.io/super_diff/ (fetched 2026-08-29T13:02:15.259486+00:00, sha 33a2abe006ad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
