# neo4jrb/activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.

Repository: https://github.com/neo4jrb/activegraph
Canonical: https://ross.abutalabs.com/products/activegraph
Homepage: http://neo4jrb.io
Language: Ruby
License: MIT
License Family: permissive
Topics: neo4j, ruby, orm, railtie, graph-database
Last push: 2026-08-18T01:18:55+00:00

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

## Adoption (not part of the score)
Stars 1406, forks 273 (observed 2026-08-28T04:04:38.275633+00:00)

## What it is
ActiveGraph (formerly Neo4j.rb) is an Active Model-compliant object-graph mapper (OGM) for the Neo4j graph database in Ruby. It provides ActiveRecord-style conventions including properties, validations, callbacks, associations, and a chainable query builder for graph queries.

## Use cases
- use neo4j graph database from ruby with activerecord-like models
- build cypher queries with a chainable query builder
- define node and relationship models with validations and callbacks
- integrate neo4j into a rails application
- model graph relationships as first-class entities in ruby
- run migrations and manage constraints for a neo4j database

## When to choose
- you are a ruby or rails developer working with neo4j
- you want an ActiveRecord-familiar API over a graph database
- you need graph traversals expressed as chainable, composable queries
- you want models for both nodes and relationships

## When to avoid
- you use a relational or document database instead of neo4j
- you need a low-level driver only (use neo4j-ruby-driver directly)
- your project is not on the ruby/jvm ecosystem
- you need an ORM for SQL databases

## Facets
- artifact type: library
- maturity: active
- function: orm, database-driver, database
- domain: databases, web-development, backend, developer-tools
- platform: ruby, jvm
- tags: neo4j, graph-database, object-graph-mapper, active-model, rails, query-builder

## Member repositories
- neo4jrb/activegraph (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.275633+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:43.495966+00:00, confidence not recorded.
  - readme: https://github.com/neo4jrb/activegraph (fetched 2026-08-28T04:04:38.275633+00:00, sha 2522b141d0cb)
  - homepage: http://neo4jrb.io (fetched 2026-08-29T11:52:23.122495+00:00, sha ca5ae1e5f0df)
  - site_page: http://neo4jrb.io/blog/2016/12/16/latest-major-releases-of-neo4jrb-gems.html (fetched 2026-08-29T11:52:23.125316+00:00, sha e73d165192ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
