{"adoption": {"forks": 50, "observed_at": "2026-08-28T04:06:55.114728+00:00", "stars": 2477}, "canonical_url": "https://ross.abutalabs.com/products/magicast", "card": {"archived": false, "artifact_type": "library", "description": "🧀  Programmatically modify JavaScript and TypeScript source codes with a simplified, elegant and familiar syntax powered by recast and babel.", "domain": ["developer-tools", "parsers", "web-development"], "enriched": true, "function": ["parser", "developer-tools"], "health_score": 100, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["unjs/magicast"], "name": "unjs/magicast", "platform": [], "pushed_at": "2026-08-26T10:38:21+00:00", "repo": "unjs/magicast", "stars": 2477, "tags": ["ast-manipulation", "codemod", "typescript", "recast", "babel", "code-generation", "nodejs", "javascript"], "topics": [], "urls": [], "use_cases": ["programmatically edit config files like defineConfig calls", "write codemods to update JS/TS source code", "modify module imports and exports in a file", "append values to exported arrays while preserving formatting", "generate or transform TypeScript configuration files", "manipulate function call arguments in source code"], "what_it_is": "Magicast is a TypeScript library for programmatically modifying JavaScript and TypeScript source files using a simple, JSON-like proxy API over ASTs parsed by recast and Babel. It preserves original code formatting while allowing easy manipulation of imports, exports, and function call arguments.", "when_to_avoid": ["you only need to parse or lint code without writing it back", "you need full AST-level control for complex transformations (use Babel or jscodeshift directly)", "your target language is not JavaScript or TypeScript"], "when_to_choose": ["you need to edit JS/TS files programmatically without losing formatting", "writing codemods or config file editors (e.g., Nuxt modules)", "you want readable code manipulation instead of raw AST work"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/magicast", "repo": "unjs/magicast", "role": "main", "score": 94}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "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:55.114728+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:55.114728+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:28:20.397199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "236220fffcb9cbc95618861f8649c86f93a153f99e213b54df8688ac3c81e3e2", "fetched_at": "2026-08-28T04:06:55.114728+00:00", "kind": "readme", "missing": false, "url": "https://github.com/unjs/magicast"}, {"content_hash": "4b9044c71ceb478bca69872eb8b5420b97ca8d727bd89d6efb3cda10bf21b255", "fetched_at": "2026-08-29T10:10:22.177646+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/magicast"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 83}, "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": 1926, "days_push": 7, "days_rel": 33, "gap_med": 78, "n_releases_24m": 6}, "score": 94, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}