{"adoption": {"forks": 185, "observed_at": "2026-08-28T04:07:43.574359+00:00", "stars": 3101}, "canonical_url": "https://ross.abutalabs.com/products/gon", "card": {"archived": false, "artifact_type": "library", "description": "Your Rails variables in your JS", "domain": ["web-development", "backend", "frontend"], "enriched": true, "function": ["templating", "serialization", "web-framework"], "health_score": 98, "homepage": null, "language": "Ruby", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["gazay/gon"], "name": "gazay/gon", "platform": ["ruby"], "pushed_at": "2026-08-23T07:20:42+00:00", "repo": "gazay/gon", "stars": 3101, "tags": ["rails", "ruby-gem", "server-to-client-data", "jbuilder", "rabl", "sinatra", "web-server"], "topics": [], "urls": [], "use_cases": ["pass Rails controller data to JavaScript without inline scripts", "share server-side variables with frontend JS files", "renew data in JS variables through AJAX with gon.watch", "serialize controller data using Jbuilder or Rabl templates", "avoid parsing data attributes in JavaScript"], "what_it_is": "Gon is a Ruby gem for Rails that lets you pass server-side variables from controllers directly into your JavaScript with a single layout tag. It supports Jbuilder and Rabl templates and offers gon.watch for refreshing variables via AJAX.", "when_to_avoid": ["you build SPAs with a JSON API and a separate frontend framework", "your stack is not Ruby/Rails (use the ports for Sinatra, .NET, or Phoenix instead)", "you only need static assets or no server-to-client data passing"], "when_to_choose": ["you maintain a Rails app and need to hand server data to client-side JS", "you want a simple, battle-tested way to expose variables in the layout", "you need periodic data refreshes in JS via gon.watch"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/gon", "repo": "gazay/gon", "role": "main", "score": 91}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:43.574359+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:46:21.312723+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b103d299f4ea8541136ecf431c18d55ec1c4d70e0a5e2c093316a2717c4bcce1", "fetched_at": "2026-08-28T04:07:43.574359+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gazay/gon"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 76}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5595, "days_push": 10, "days_rel": 83, "gap_med": 87, "n_releases_24m": 4}, "score": 91, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}