npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

static-unity-lfs-bypasser

v1.1.2

Published

A tool to bypass LFS by splitting large files and creating a Node.js server project for Unity WebGL builds

Downloads

14

Readme

Static Unity LFS Bypasser

A tool to bypass Large File Storage (LFS) limitations by splitting large files and creating a Node.js server project for Unity WebGL builds.

Motivation

This CLI tool was born out of years of frustration with hosting Unity WebGL builds, particularly when dealing with platforms that don't support Git LFS.

The Problem: Unity WebGL builds often exceed GitHub's file size limits, forcing developers to use LFS. However, many hosting platforms (like Railway) don't support LFS, making it impossible to deploy Unity games with compression and other advanced features that require proper server configuration.

The Solution: Rather than accepting these limitations or implementing one-off workarounds for each project, this tool provides a comprehensive solution that:

  • Bypasses LFS requirements entirely by chunking large files
  • Enables hosting on platforms like Railway, Render, and other Node.js hosts
  • Supports all Unity compression formats and server-dependent features
  • Eliminates the need for custom deployment scripts for each game

After repeatedly encountering this issue across multiple Unity projects and spending countless hours on deployment workarounds, this tool was created to solve the problem once and for all. Now available on npm for the Unity community.

What this tool does

  1. Analyzes your Unity WebGL build - Scans for large files that would require LFS
  2. Splits large files into chunks - Breaks files >100MB (configurable) into smaller pieces
  3. Preserves original files - Keeps your original files intact for LFS if needed
  4. Generates a complete Node.js project - Creates an Express server with all dependencies
  5. Provides deployment-ready structure - Ready to deploy to any Node.js hosting platform

Quick Start (No Installation Required)

Run directly with npx:

npx static-unity-lfs-bypasser

Navigate to your Unity WebGL build directory and run the command above. That's it!

Installation (Optional)

If you prefer to install globally:

npm install -g static-unity-lfs-bypasser

Usage

Option 1: Run with npx (Recommended)

Navigate to your Unity WebGL build directory and run:

npx static-unity-lfs-bypasser

Option 2: Run after global installation

If you've installed globally:

static-unity-lfs-bypasser

Options

  • -t, --threshold <number> - Size threshold in MB for splitting files (default: 100)
  • -o, --output <directory> - Output directory for the generated project (default: ./lfs-bypasser-server)

Examples

# Use default settings with npx (100MB threshold, output to ./lfs-bypasser-server)
npx static-unity-lfs-bypasser

# Custom threshold and output directory with npx
npx static-unity-lfs-bypasser -t 50 -o my-game-server

# Split files larger than 75MB, output to ./game-deploy
npx static-unity-lfs-bypasser --threshold 75 --output game-deploy

# If installed globally, you can omit 'npx'
static-unity-lfs-bypasser -t 50 -o my-game-server

What gets generated

The tool creates a complete Node.js project with:

  • public/ - Your Unity WebGL build files
  • chunks/ - Split chunks of large files with manifest files
  • app.js - Express server that reassembles chunked files on-demand
  • package.json - Node.js dependencies and scripts
  • README.md - Instructions for running and deploying your server
  • .gitignore - Appropriate ignore patterns for Node.js

Running the generated server

After the tool completes:

cd lfs-bypasser-server  # or your custom output directory
npm install
npm start

Your Unity WebGL game will be available at http://localhost:3000.

How it works

  1. File Analysis: Scans your Unity build for files exceeding the size threshold
  2. Intelligent Chunking: Splits large files into 50MB chunks with integrity verification
  3. Manifest Generation: Creates JSON manifests to track chunk relationships
  4. Server Generation: Creates an Express server that:
    • Serves static files normally
    • Reassembles chunked files on-demand
    • Caches reconstructed files for performance
    • Sets appropriate MIME types for Unity files (.wasm, .data)

Deployment

The generated project can be deployed to any Node.js hosting platform:

  • Heroku - Push the generated directory
  • Railway - Connect your Git repository
  • Render - Deploy from Git
  • Vercel - Deploy as Node.js function
  • DigitalOcean App Platform - Deploy from Git

Benefits

  • No LFS required - Host large Unity builds on GitHub without LFS costs
  • Fast downloads - Files are streamed and cached efficiently
  • Deployment ready - Complete server project generated automatically
  • Preserves originals - Original files remain intact for future LFS use
  • Production ready - Includes error handling, caching, and proper MIME types

Use Case

Perfect for Unity WebGL developers who want to:

  • Host games on GitHub without LFS limitations
  • Deploy to various hosting platforms easily
  • Avoid LFS bandwidth costs
  • Maintain build integrity with chunk verification