SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedLibraries & compatibility

Factorio Library

by raiguard · for Factorio

A set of high-quality, commonly-used utilities for creating Factorio mods.

1.1MDownloads
5 mo agoLast updated
MITLicense
2.1Latest game version

About Factorio Library

From Factorio Mod Portal

A set of high-quality, commonly-used utilities for creating Factorio mods.

shield shield shield

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 data

Game 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 catalog
Listed on Factorio Mod Portal as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Runs on your server

From source side support

Factorio 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

Factorio Library, answered

Generated from the mod’s own source data.

Do my players need to install Factorio Library?

Factorio Mod Portal lists Factorio Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Factorio Library is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Factorio Library on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Factorio Library in one click.