The export data structure of the Factorio Item Browser.

4.0.0 2021-02-17 11:54 UTC

This package is auto-updated.

Last update: 2024-10-29 04:59:00 UTC


README

Factorio Item Browser

Export Data Library

GitHub release (latest SemVer) GitHub build Codecov

This library provides a data structure used to persist all the exported data from the Factorio game to the disk to later upload it to the server and import it into the actual database.

This persistence layer is required because the export gets executed on a local machine (able to run Factorio), which does not have access to the database on the server. This library simplifies uploading all the data (of which most are the icon images) and reading it into the importer script.

The data itself is saved in a single JSON file. The library puts this file into a zip archive, and adds all the rendered icon files to it as well, creating a single zip file as upload. All this is managed by the ExportDataService, which is the main entry point for the library.