
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
factorio-type-kit
Advanced tools
 [](https://github.com/semantic-release/semantic-release)
Generate type definitions for the Factorio Lua API.
Currently supports typescript and a JSON IR.
factorio-type-kit
is generally used to write mods. It can also be used to generate code based on the Factorio API.
Writing a factorio mod in TypeScript?
npm install factorio-type-kit
or yarn add factorio-type-kit
Generate API definitions
import * from "factorio-type-kit"
directly into your JS or TS applicationproduce
& printTs
, etc. Please see src/bin.ts
to see them in self-documenting action :)npx
npx factorio-type-kit --help
to use the CLI$ npx factorio-type-kit --help
Usage
$ factorio-type-kit --language=[...]
Options
--language, -l ts,json
--output, -o path/to/filename/outupt.[ts|json]
Examples
$ factorio-type-kit -l ts -o factorio.schema.d.ts
factorio-type-kit
is an essential part of the solution. FTK does or supports the following:
With your programming tools of choice, hopefully, you can now author factorio greatness with more power than Lua. Lua is a fine scripting language--but mods can be challenging without sufficient static analysis. Types can help!
FAQs
 [](https://github.com/semantic-release/semantic-release)
The npm package factorio-type-kit receives a total of 0 weekly downloads. As such, factorio-type-kit popularity was classified as not popular.
We found that factorio-type-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.