{"adoption": {"forks": 437, "observed_at": "2026-08-28T04:11:13.336458+00:00", "stars": 15652}, "canonical_url": "https://ross.abutalabs.com/products/ast-grep", "card": {"archived": false, "artifact_type": "cli-tool", "description": "⚡A CLI tool for code structural search, lint and rewriting. Written in Rust", "domain": ["developer-tools", "parsers", "version-control"], "enriched": true, "function": ["search-engine", "linter", "parser", "developer-tools", "cli"], "health_score": 100, "homepage": "https://ast-grep.github.io/", "language": "Rust", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["ast-grep/ast-grep"], "name": "ast-grep/ast-grep", "platform": ["windows", "cli", "rust", "python"], "pushed_at": "2026-08-24T14:09:23+00:00", "repo": "ast-grep/ast-grep", "stars": 15652, "tags": ["ast", "tree-sitter", "structural-search", "codemod", "code-rewriting", "static-analysis", "refactoring", "command-line", "linux", "macos", "nodejs"], "topics": ["codemod", "linter", "ast", "babel", "command-line", "command-line-tool", "grep", "tree-sitter", "codereview", "rust", "static-analysis", "typescript", "refactoring", "search", "structural-search"], "urls": [], "use_cases": ["find all calls to a function across a codebase by syntax pattern", "rewrite deprecated API calls to new ones at scale", "write custom lint rules using AST patterns", "run interactive codemods over thousands of files", "search code structurally instead of with regex", "enforce code patterns in CI as a linter"], "what_it_is": "ast-grep is a fast Rust-based CLI tool for structural search, linting, and rewriting of code using AST patterns instead of plain text matching. It supports 20+ languages via tree-sitter, offers interactive codemods, custom lint rules, and a Node.js API for programmatic use.", "when_to_avoid": ["you only need simple text search where regex suffices", "your language has no tree-sitter grammar and you cannot write one", "you need full compiler-grade semantic analysis like type-aware refactoring"], "when_to_choose": ["you need syntax-aware search or replace across many languages", "regex grep is too imprecise for code refactoring", "you want custom lint rules without writing a full linter plugin", "you need fast, parallel large-scale codemods"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/ast-grep", "repo": "ast-grep/ast-grep", "role": "main", "score": 95}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "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:11:13.336458+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:11:13.336458+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:05:35.527091+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "063ee2604e6f4bc4eaccf974f9f1c21763050a6ddd9f5f3ae85842a02092edd8", "fetched_at": "2026-08-28T04:11:13.336458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ast-grep/ast-grep"}, {"content_hash": "01cf7f87d3c8125d47b0fc61c415b489fe7f14f113466182e63f6c762257b131", "fetched_at": "2026-08-29T08:03:34.610071+00:00", "kind": "homepage", "missing": false, "url": "https://ast-grep.github.io/"}, {"content_hash": "15bda2a1c239106901e2729a859c42e9c8175869e4d4eb8f63a1934eb48216c7", "fetched_at": "2026-08-29T08:03:34.612748+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/ast-grep"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 87}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1524, "days_push": 9, "days_rel": 10, "gap_med": 9.5, "n_releases_24m": 63}, "score": 95, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}