# TypeScriptToLua/TypeScriptToLua

Typescript to lua transpiler. https://typescripttolua.github.io/

Repository: https://github.com/TypeScriptToLua/TypeScriptToLua
Canonical: https://ross.abutalabs.com/products/typescripttolua
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, lua, transpiler, compiler, converter, lua-transpiler
Last push: 2026-07-09T19:34:11+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 35, longevity 100
- inputs: {"age_days": 3167, "days_push": 55, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2538, forks 187 (observed 2026-08-28T04:06:59.251772+00:00)

## What it is
TypeScriptToLua is a generic TypeScript to Lua transpiler that lets developers write code in TypeScript and compile it to Lua. It targets any environment that accepts Lua code, such as game engines, and supports declaring existing APIs via TypeScript declaration files.

## Use cases
- transpile typescript to lua
- write lua projects in typescript
- compile typescript for roblox or love2d
- add type safety to a lua codebase
- use vscode tooling for lua development
- convert typescript source into lua output

## When to choose
- your target runtime only accepts Lua but you want TypeScript's type system and tooling
- you maintain a large Lua project that is hard to keep maintainable
- you want to declare existing Lua APIs with TypeScript declaration files

## When to avoid
- you need direct JavaScript execution rather than Lua output
- your project requires runtime features or libraries with no Lua equivalent
- you need a general-purpose TypeScript compiler targeting JS

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, cli, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: cli, cross-platform
- tags: typescript, lua, transpiler, language-interop, game-development, nodejs

## Member repositories
- TypeScriptToLua/TypeScriptToLua (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:59.251772+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-30T02:25:11.004402+00:00, confidence not recorded.
  - readme: https://github.com/TypeScriptToLua/TypeScriptToLua (fetched 2026-08-28T04:06:59.251772+00:00, sha 31cf5c4f09b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
