Foundry

Help Center

Upload a Build

Package your game as a ZIP within Glint's size limits, upload it in Glint Studio, and understand Package X-Ray, Brotli repackaging, and the Loads Fast badge.

Glint Studio · 6 min read

A build is a single ZIP containing your playable game that Glint serves directly to players' browsers.

Package Your Build#

Put index.html at the top level of the ZIP, not inside a folder. A glint.json manifest is optional and goes next to it. See Manifest.

Plain text
my-game.zip
index.html
glint.json
game.js
assets/
sprites.png
music.ogg

Check a build before uploading with the SDK's validator. See CLI.

Size and File Budgets#

Glint Studio lists the 500 MB and 10,000-file limits and the 2 MB Loads Fast budget under the upload button, and the SDK's validator checks every budget below. The startup download is the validator's estimate of what a player downloads, compressed, before the game starts. Glint Studio's upload check itself stops only at the hard limits in the last row.

Budget Limit Checked by
Startup download, Loads Fast 2 MB or less SDK validator
Startup download, recommended 1.6 MB or less (warning above) SDK validator
Startup download, maximum 30 MB SDK validator
Any single file 30 MB SDK validator
Whole build, compressed 500 MB SDK validator
Number of files 10,000 SDK validator
Hard upload limits 500 MB ZIP, 500 MB unzipped, 10,000 files Glint Studio

Your build also counts toward your Foundry storage. See Memberships and Storage.

Export Uncompressed#

Export from your engine without its own Brotli or gzip compression. Glint then compresses the files for you. If you do upload Unity's .br or .gz files, Glint keeps them as they are and serves them with their encoding. Engine-specific steps are in Godot, Unity and Web Engines.

Upload From the CLI or Glint Studio#

You can upload either from your terminal with the latest @joinfoundry/glint-sdk CLI or directly in the browser:

The current build keeps playing until the new one passes. Glint Studio can't go back to an earlier build, so keep your own copies. Players who bought a published game get a notification when you replace its build.

Paid games also have an optional Demo build section that works the same way. Players get 15 minutes of the demo.

Inspection and Package X-Ray#

Every upload goes through static file inspection, which reads files without running them. It produces a Package X-Ray with file counts, readable source, suspected obfuscation, and external URLs referenced in the code. For Glint builds, standard minified production JS bundles (Vite, Rollup, esbuild, Three.js, Unity, Godot, glint.js) are expected and not flagged as obfuscation, and URLs inside source code comments or Foundry's $schema URLs are ignored. Open Package X-Ray under the build to see it. Players see a summary on the game's page. A build goes live only when X-Ray could read every file. See Package X-Ray.

Automatic Brotli Repackaging#

After inspection, Glint repackages the build once:

When any files are compressed, the repackaged build replaces your upload, and Glint Studio shows the count and savings, such as "Brotli-11: 42 files (3.1 MB saved)." Uploads over 128 MB aren't repackaged, and a build that can't be repackaged goes live as uploaded.

Loads Fast and the Performance Score#

Both the CLI validator and Glint measure Loads Fast and Performance Score from your build's initial boot payload (entry index.html, .wasm/.pck/.unityweb, and top-level or depth-2 .js/.mjs/.css/.json/.data bundles; lazy-loaded 3D .glb models, audio, and textures in subfolders do not count against initial boot).

On Glint, the Loads Fast badge goes to a build whose initial boot payload is 2 MB or less compressed, with no .wav or .bmp files over 256 KB.

Each live build gets a score out of 100:

What lowers the score Points off
Initial boot payload over 1.6 MB 15
Initial boot payload over 30 MB 25 (instead of 15)
More than 500 files 5
Each .wav or .bmp file over 256 KB 5, up to 20

When an Upload Doesn't Pass#

The upload shows Didn't pass with the reason. Fix the build and upload it again.

Message What to do
Put index.html at the top of the ZIP, not inside a folder. Zip the folder's contents, not the folder.
Game builds cannot include (file name): its file type is not supported. Remove it or convert it to a supported type.
Game builds cannot include files without an extension (file name). Rename or remove the file.
A game build can hold up to 10,000 files and 500 MB once unzipped. Make the build smaller.
Zip the build with standard store or deflate compression. Re-zip the files using your OS's built-in ZIP tool or standard ZIP settings.
Game builds cannot contain encrypted files or symlinks. Remove the password, and replace links with real files.
Each file in the ZIP needs a unique name regardless of uppercase or lowercase letters. Rename files such as Logo.png and logo.png.
glint.json is invalid Fix the manifest field the message names.
Package X-Ray couldn't read every file in this build. Choose Retry inspection.
This ZIP could not be read. Zip the build again and upload it.

Still stuck? Contact Support.