# lukeed/tsm

TypeScript Module Loader

Repository: https://github.com/lukeed/tsm
Canonical: https://ross.abutalabs.com/products/tsm
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2024-01-20T17:10:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1793, "days_push": 956, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1192, forks 18 (observed 2026-08-28T04:03:56.268623+00:00)

## What it is
tsm is a TypeScript module loader for Node.js that lets you run TypeScript and JSX files directly without a separate build step. It works as a node replacement, an ESM --loader hook, or a CommonJS --require hook.

## Use cases
- run a typescript file directly with node
- execute tsx scripts without compiling first
- hook typescript loading into node via --require
- load esm typescript modules with a loader hook
- run jsx files in node
- replace node command with a typescript-aware runner

## When to choose
- you want zero-config direct execution of TypeScript/JSX on Node.js
- you need both ESM and CommonJS hook support
- you want a lightweight node replacement for scripts

## When to avoid
- you need a full build pipeline with type-checking and bundling
- you rely on the ESM loader API being stable, since it is experimental and Node has since changed loader APIs
- you need watch mode or test-runner integration

## Facets
- artifact type: library
- maturity: maintenance
- function: compiler, developer-tools, cli
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: typescript, esm-loader, require-hook, tsx, esbuild, nodejs-loader, command-line, nodejs

## Member repositories
- lukeed/tsm (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.268623+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:30.677486+00:00, confidence not recorded.
  - readme: https://github.com/lukeed/tsm (fetched 2026-08-28T04:03:56.268623+00:00, sha f5ca996f2220)
  - registry_npm: https://registry.npmjs.org/tsm (fetched 2026-08-29T12:29:37.644842+00:00, sha 3e8baee8759a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
