About Factorio Library
From Factorio Mod PortalA set of high-quality, commonly-used utilities for creating Factorio mods.
Factorio Library
The Factorio Library is a set of high-quality, commonly-used utilities for creating Factorio mods.
Usage
Download the latest release from the mod portal unzip it, and put it in your mods directory. You can access libraries provided by flib with require("__flib__.position"), etc.
Add the flib directory to your language server's library. We recommend installing the Factorio modding toolkit and setting it up with the Sumneko Lua language server to get cross-mod autocomplete and type checking.
There is currently no online documentation due to a lack of infrastructure to generate it from EmmyLua annotations.
Contributing
Please use the Codeberg repository for questions, bug reports, or pull requests.
For locale contributions, please use Crowdin.
Highlights
From source dataGame versions
Built for Factorio 2.1.
Footprint
Rated a light load on a server.
License
Published under MIT.
Factorio Library on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 0.17.2, released 2026-06-25
Run Factorio Library on a Factorio server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogLibraries & compatibility
Foundations and fixes other mods build on. Usually installed because something else needs it.
Runs on your server
From source side supportFactorio Mod Portal lists Factorio Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.
Compatibility
- Game
- Factorio
- Runs on
- Serverrequired on the server
- Game versions
- 2.1
Verified at the source
- ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
- ✓Authorraiguard, as published on Factorio Mod Portal
- ✓LicenseMITFree
