TypeScript to Lua Transpiler

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

JetBrains - Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. TypeScriptToLua

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

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. love

    LÖVE is an awesome 2D game framework for Lua.

    I enjoy using https://love2d.org/ to make small games but I often hit a point where the codebase gets complex enough that I find myself wanting things like types and fancier editor features than any IDEs/editor plugins for Lua provide.

    Biggest pain point was always having to check what properties exist on a given object. I love that Lua gives you enough power to add a prototype/object system at runtime but this means IDEs need to understand what you're doing to figure out what you want. You can do some metatable magic to error upon accessing undefined variables/properties but that's only doing anything at runtime.

    On my current hobby project I decided to try out various typed versions of Lua and TypeScriptToLua is what stuck.

    It was really cool being able to port my code over file by file, replacing weird custom lua objects with typescript classes (with a factory wrapper for unported Lua to use to instantiate an instance) and everything just smoothly working every step of the way. Now I get much more powerful linting and editing since I get to use the tooling people use for actual typescript.

    I was worried the generated code would become unreadable but to my surprise it's not at all bad. I haven't done much benchmarking but also haven't noticed any performance impact. Whatever performance hit there is is more than worth it for the confidence the typechecker gives me in areas that are difficult to write tests for.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • The Level Design Book

    1 project | news.ycombinator.com | 29 May 2025
  • Spirit Hunter - Post-Mortem

    2 projects | dev.to | 6 Oct 2024
  • TypeScriptToLua – Write Lua with TypeScript

    1 project | news.ycombinator.com | 3 Jun 2024
  • Show HN: A variant of Conway's Game of Life in color you can run on your phone

    1 project | news.ycombinator.com | 13 Jan 2024
  • Gearing up for Lua

    3 projects | dev.to | 1 Jan 2024

Did you know that C++ is
the 7th most popular programming language
based on number of references?