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.
my-game.zip
index.html
glint.json
game.js
assets/
sprites.png
music.ogg
- Bundle every script, font and asset in the ZIP, and use relative paths. Games run sandboxed and can't load files from other sites. See Platform Rules .
- Use standard ZIP compression, with no password and no links.
- Every file needs an extension Glint supports, and no two names can differ only in capital letters.
- Files such as
__MACOSX,.DS_StoreandThumbs.dbare ignored.
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:
- From the CLI: Set
FOUNDRY_API_TOKENusing a personal token withmarketplace:writeaccess from AI Agents settings , then runnpx --yes --prefer-online -p @joinfoundry/glint-sdk@latest glint publish <dir-or-zip> --interactive(for a new or existing game with cover art and metadata) ornpx --yes --prefer-online -p @joinfoundry/glint-sdk@latest glint upload <dir-or-zip> --game <id-or-slug>(for a build update). Always verify you are on the latest@joinfoundry/glint-sdkrelease (npm view @joinfoundry/glint-sdk version). - In Glint Studio:
- Open Glint Studio (
glint.joinfoundry.xyz/studio), find your game in Releases and choose Open. - In the Build & X-Ray tab, choose Upload build, or Replace build if one is live.
- If the game is rated and already has a live build, first answer "did the content change in a way that affects the rating?" See New Builds and the Rating .
- Optionally, describe the update under What's new in this build. It shows on your game's page and in the update notice buyers get.
- Select your ZIP file (choose Cancel upload to stop it early).
- Wait for inspection and Brotli repackaging to finish. If progress stalls for more than 3 minutes, choose Retry inspection.
- When the build passes, it goes live and replaces the old one.
- Open Glint Studio (
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:
- Text and code files (
js,mjs,css,json,svg,gltf, shaders, etc.) up to 2 MB use Brotli quality 11, and larger text uses quality 6. Binary assets (wasm,glb,pck,data,ttf,otf, etc.) up to 256 KB use quality 9. Larger binary assets use quality 5, which keeps multi-MB 3D builds quick to process. - A compressed copy is kept only when it's at least 5% smaller and saves at least 256 bytes. Files under 1 KB are left alone.
- HTML pages, including
index.html, stay as they are so Glint can add its small bridge script. - Images other than SVG, audio, video, WOFF fonts and existing
.bror.gzfiles are stored as uploaded.
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.