microsoft/tslib
Runtime library for TypeScript helpers. observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 90
- Release rhythm 40
- Longevity 100
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: 16
- age_days: 4151
- days_rel: 671
- days_push: 64
- n_releases_24m: 2
Adoption not part of the score
1343 stars · 146 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
tslib is a runtime library containing all of TypeScript's emitted helper functions like __extends and __assign. It is used with the --importHelpers compiler flag to deduplicate helpers across modules, producing smaller bundles with less runtime overhead.
Use cases
- reduce bundle size in TypeScript projects
- avoid duplicate helper function declarations in compiled output
- optimize emitted JavaScript from the TypeScript compiler
- share TypeScript runtime helpers across modules
- speed up TypeScript application runtime
When to choose
- you compile TypeScript with importHelpers enabled and want smaller output
- you maintain a library that emits helper calls and want a shared runtime dependency
- you are optimizing bundle size for a large TypeScript codebase
When to avoid
- your project is plain JavaScript with no TypeScript compilation
- you cannot add runtime dependencies to a zero-dependency library
- your toolchain already inlines or deduplicates TypeScript helpers
Facets
library · maturity stable
developer-tools build-tool developer-tools web-development programming-languages browser cross-platform typescript compiler-helpers runtime-library bundle-optimization javascript nodejs
2 sources
- readme: https://github.com/microsoft/tslib · fetched 2026-08-28 · 5a90f60e7663
- registry_npm: https://registry.npmjs.org/tslib · fetched 2026-08-29 · 95bad7276eb8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/tslib | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem