Skip to content

Configuration

Tungsten is configured through a tungsten.toml file in your project’s root directory. Run tungsten init to generate one, or create it manually.

Here’s a full example showing every available field:

tungsten.toml
[creator]
type = "user"
id = 12345678
[codegen]
style = "flat"
strip_extension = true
[inputs.packed_assets]
path = "assets/packed/**/*.png"
output_path = "shared/Assets/Packed.luau"
packable = true
[inputs.individual_assets]
path = "assets/individual/**/*.png"
output_path = "shared/Assets/Individual.luau"
packable = false

Defines which Roblox account or group assets are uploaded under.

FieldTypeDescription
type"user" or "group"Whether to upload under a user or a group.
idnumberThe Roblox user or group ID to upload under.

Controls how Tungsten generates your Luau output files.

FieldTypeDescription
style"flat" or "nested"The structure of the generated Luau table.
strip_extensionbooleanWhether to strip the file extension from asset keys.

Defines a set of assets to sync. You can define as many input blocks as you need — each one is identified by its name (e.g. [inputs.packed_assets]).

FieldTypeDescription
pathstringA glob pattern pointing to the assets to sync.
output_pathstringWhere Tungsten writes the generated Luau file.
packablebooleanWhether to pack matched assets into a spritesheet before uploading.