Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serve-unity

A lightweight Node.js server designed to serve Unity WebGL builds with proper compression headers for Gzip and Brotli.

Features

  • Supports serving Unity WebGL builds with Gzip and Brotli compression.
  • Correctly handles Content-Type and Content-Encoding headers for Unity files (e.g., .wasm, .js, .data).
  • Automatically decodes URL-encoded paths (e.g., files with spaces in names).
  • Easy to use and install globally.

Installation

To install serve-unity globally via npm:

npm install -g serve-unity

Usage

Basic Usage

Run the server in the directory containing your Unity WebGL build:

serve-unity <port>

Open your browser and go to: http://localhost:9000 (if you set the port to 9000)

Default Behavior

If you don’t specify a port, the server defaults to 9000

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Author

Rocco Balsamo via simmer.io

Etc

Got a cool game to upload? https://simmer.io/upload

Enjoy fast and simple Unity WebGL serving with serve-unity! 🎮

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.