{"adoption": {"forks": 210, "observed_at": "2026-08-28T04:06:54.753940+00:00", "stars": 2472}, "canonical_url": "https://ross.abutalabs.com/products/piranha", "card": {"archived": false, "artifact_type": "cli-tool", "description": "A tool for refactoring code related to feature flag APIs", "domain": ["developer-tools", "programming-languages"], "enriched": true, "function": ["developer-tools", "parser", "workflow-automation"], "health_score": 83, "homepage": null, "language": "Rust", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["uber/piranha"], "name": "uber/piranha", "platform": ["cli", "python", "rust"], "pushed_at": "2026-04-02T13:44:03+00:00", "repo": "uber/piranha", "stars": 2472, "tags": ["feature-flags", "code-refactoring", "stale-flag-cleanup", "ast-transformation", "static-analysis", "polyglot", "automation", "linux", "macos"], "topics": ["java", "feature-flags", "feature-toggles", "refactoring-tools", "objective-c", "clang-plugin", "stale-flags", "ast", "ast-matcher", "deadcode", "swift", "swift-syntax", "refactoring", "code-quality", "code-management", "javascript"], "urls": [], "use_cases": ["remove stale feature flag code from a codebase", "automate large-scale code refactoring across many files", "replace feature toggle conditionals with constant values", "clean up dead code after flag cleanup", "write custom rewrite rules for Java, Swift, or JavaScript"], "what_it_is": "PolyglotPiranha is a lightweight code transformation toolset from Uber for automating large-scale code changes, primarily cleaning up stale feature flag code. It works via concrete-syntax/AST-based rewrite rules and is available as a Python library (polyglot-piranha) or a Rust CLI.", "when_to_avoid": ["you need languages beyond those Uber supports (check forks for extras)", "you want a general-purpose IDE refactoring tool with interactive previews", "your transformations require full semantic analysis rather than syntax-level matching"], "when_to_choose": ["you need to delete or simplify code guarded by feature flags at scale", "you want rule-based, syntax-aware automated code edits in Java, Swift, Objective-C, or JavaScript", "you want a scriptable Python API plus CLI for code transformations"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/piranha", "repo": "uber/piranha", "role": "main", "score": 81}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "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:06:54.753940+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:54.753940+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:28:33.337064+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9214a87b0ddc9b98a062df3459b0ef011abe11032ccff849c8a8d49436bd9c55", "fetched_at": "2026-08-28T04:06:54.753940+00:00", "kind": "readme", "missing": false, "url": "https://github.com/uber/piranha"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 75, "longevity": 100, "rhythm": 77}, "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": 2827, "days_push": 153, "days_rel": 153, "gap_med": 3, "n_releases_24m": 16}, "score": 81, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}