# public-activity/public_activity

Easy activity tracking for models - similar to Github's Public Activity

Repository: https://github.com/public-activity/public_activity
Canonical: https://ross.abutalabs.com/products/public_activity
Language: Ruby
License: MIT
License Family: permissive
Topics: activerecord, ruby, rails, activity-stream, tracking, news-feed, hackertoberfest
Last push: 2026-06-08T09:44:50+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 33, longevity 100
- inputs: {"age_days": 5665, "days_push": 86, "days_rel": 233, "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 2990, forks 328 (observed 2026-08-28T04:07:34.540270+00:00)

## What it is
A Ruby gem that provides easy activity tracking for ActiveRecord, Mongoid, and MongoMapper models in Rails 6.1+. It records what has been changed or created and lets you present those activities to users, similar to GitHub's activity feeds.

## Use cases
- track model changes in a rails app
- build a github-style activity feed
- record user actions on activerecord models
- show a news feed of recent activity
- audit trail for model create update delete
- activity stream for mongoid models

## When to choose
- you need user-facing activity feeds or model change tracking in a Rails app
- you want a mature, drop-in gem with ActiveRecord, Mongoid, and MongoMapper support
- you want customizable activity views, layouts, and I18n out of the box

## When to avoid
- you need full event sourcing or versioned snapshots rather than simple activity records
- you are not using Rails or an ORM it supports
- you need high-throughput event streaming rather than per-model activity logging

## Facets
- artifact type: library
- maturity: active
- function: logging, orm, middleware
- domain: web-development, backend, developer-tools
- platform: ruby
- tags: activity-stream, activerecord, mongoid, news-feed, rails-gem, audit-tracking, web-server

## Member repositories
- public-activity/public_activity (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:34.540270+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:31:22.394739+00:00, confidence not recorded.
  - readme: https://github.com/public-activity/public_activity (fetched 2026-08-28T04:07:34.540270+00:00, sha e1758e708e6e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
