{"adoption": {"forks": 1085, "observed_at": "2026-08-28T04:08:17.974405+00:00", "stars": 3763}, "canonical_url": "https://ross.abutalabs.com/products/locutus", "card": {"archived": false, "artifact_type": "library", "description": "Bringing stdlibs of other programming languages to TypeScript for fun", "domain": ["programming-languages", "developer-tools", "cross-platform"], "enriched": true, "function": ["sdk", "developer-tools"], "health_score": 89, "homepage": "https://locutus.io", "language": "TypeScript", "license": "NOASSERTION", "license_family": "other", "maturity": "active", "member_repos": ["locutusjs/locutus"], "name": "locutusjs/locutus", "platform": ["browser", "cross-platform"], "pushed_at": "2026-05-16T10:46:56+00:00", "repo": "locutusjs/locutus", "stars": 3763, "tags": ["stdlib-ports", "tree-shakeable", "php", "golang", "python", "ruby", "perl", "lua", "typescript", "nodejs"], "topics": ["javascript", "ports", "programming-language", "stdlib", "typescript"], "urls": [], "use_cases": ["use php sprintf in javascript", "port a go strings.Contains call to typescript", "match behavior of another language's stdlib function in js", "learn how different languages implement the same functions", "import a single stdlib function with minimal bundle size", "migrate code from php or python to javascript"], "what_it_is": "Locutus is a collection of ~800 TypeScript implementations of standard library functions from 18 programming languages such as PHP, Go, Python, Ruby, and C. Each function is individually importable and tree-shakeable via npm, porting function semantics rather than foreign runtime data structures.", "when_to_avoid": ["you need a general-purpose utility toolkit for TypeScript (use lodash instead)", "your target JavaScript environments already provide the functionality natively", "you need foreign language data structures or runtime objects, not just function behavior"], "when_to_choose": ["you need parity with a specific function from PHP, Go, Python, Ruby, or another ported language", "you want a single tree-shakeable function rather than a full utility framework", "you are studying or teaching how other languages' standard libraries work"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/locutus", "repo": "locutusjs/locutus", "role": "main", "score": 82}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "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:08:17.974405+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:17.974405+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:28:38.123830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a00385aa5ef982b8a2cd70af7ee68ccb9536ba72b9e52bddea24989d8a8290ef", "fetched_at": "2026-08-28T04:08:17.974405+00:00", "kind": "readme", "missing": false, "url": "https://github.com/locutusjs/locutus"}, {"content_hash": "1824ab474649ad83d3ac1e9d2cc559d9c16a3aaa6ba61864c4c2681edcbdbcd0", "fetched_at": "2026-08-29T09:23:08.456607+00:00", "kind": "homepage", "missing": false, "url": "https://locutus.io"}, {"content_hash": "20f903ff12a4dd0be9e712ee2a5001dcb2bcc293f42c67f3d8e30f3abeedd433", "fetched_at": "2026-08-29T09:23:08.465776+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/locutus"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 82, "longevity": 100, "rhythm": 72}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 6208, "days_push": 109, "days_rel": 109, "gap_med": 0.0, "n_releases_24m": 75}, "score": 82, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}