locutusjs/locutus
Bringing stdlibs of other programming languages to TypeScript for fun observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 82
- Release rhythm 72
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 6208
- days_rel: 109
- days_push: 109
- n_releases_24m: 75
Adoption not part of the score
3763 stars · 1085 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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.
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
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
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
Facets
library · maturity active
sdk developer-tools programming-languages developer-tools cross-platform browser cross-platform stdlib-ports tree-shakeable php golang python ruby perl lua typescript nodejs
3 sources
- readme: https://github.com/locutusjs/locutus · fetched 2026-08-28 · a00385aa5ef9
- homepage: https://locutus.io · fetched 2026-08-29 · 1824ab474649
- registry_npm: https://registry.npmjs.org/locutus · fetched 2026-08-29 · 20f903ff12a4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| locutusjs/locutus | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="locutusjs/locutus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem