Build from source
Run HypeMyStream from the code, change it, or build the Windows installer yourself.
- Requirements
- Get the code and build it
- Run it
- Run the tests
- Build the Windows installer
- Environment variables
- macOS and Linux
- Repository layout
Requirements
- Node.js 22.12 or newer (22 LTS recommended) and npm 10 or newer.
- Git.
- Windows to build the installer and to use game mods and keyboard actions. Running from source also works on macOS and Linux; see macOS and Linux.
- An internet connection for the first
npm ci: it downloads the npm packages and the Electron binary.
Python is only needed by maintainers who rebuild the bundled game catalog.
Get the code and build it
git clone https://github.com/hypemystream/hypemystream.git
cd hypemystream
npm ci # installs the npm workspaces: apps/desktop and packages/*
npm run build # electron-vite build, output in apps/desktop/out
Run it
npm run dev # development mode with hot reload
npm start # builds, then starts the production bundle
Both start the app unpackaged. You can tell by the DEV MODE label: the account menu footer reads HypeMyStream DEV MODE, and Settings → App shows the version with DEV MODE.
An unpackaged app keeps its data in its own folder, so it never touches the data of an installed copy:
| System | Data folder when run from source |
|---|---|
| Windows | %APPDATA%\hypemystream-dev |
| macOS | ~/Library/Application Support/hypemystream-dev |
| Linux | ~/.config/hypemystream-dev |
Set HMS_DEV_USER_DATA_DIR to use another folder, for example a throwaway one for tests:
HMS_DEV_USER_DATA_DIR=/tmp/hms-test npm run dev
In PowerShell:
$env:HMS_DEV_USER_DATA_DIR = "$env:TEMP\hms-test"; npm run dev
Run the tests
npm test # desktop tests (vitest)
npm run test:packages # tests of the shared packages in packages/*
CI (.github/workflows/ci.yml) runs npm run build, npm test and npm run test:packages on every push to main
and on pull requests.
Two more checks drive a running app over the Chrome DevTools protocol. They add games and gift events, so use a throwaway data folder:
# terminal 1
ELECTRON_CDP_PORT=9333 HMS_DEV_USER_DATA_DIR=/tmp/hms-test npm run dev
# terminal 2
cd apps/desktop
npm run test:local # the app without login or paywall: library, adding games, gift events and more
npm run test:obs # creates overlays, opens their OBS pages and sends simulated LIVE events
They write screenshots to apps/desktop/test-artifacts/ (ignored by git).
Build the Windows installer
On Windows:
npm run dist:win
The installer is written to apps/desktop/dist/HypeMyStream-<version>-setup.exe, with its .blockmap and
latest.yml. It is a one-click, per-user NSIS installer for x64 and is not code-signed. The version comes from
apps/desktop/package.json.
Official releases are built by .github/workflows/release.yml when a v* tag is pushed. See
Releasing.
Environment variables
All of them are optional.
| Variable | What it does |
|---|---|
SIGN_API_KEY |
Euler Stream sign key for TikTok LIVE, used when none is saved in Settings → TikTok LIVE. |
HMS_LIVE_SIMULATION=1 |
Forces the offline simulation on: Go LIVE never connects to TikTok. |
HMS_LOCAL_OBS_PORT |
Port of the local overlay server. Default 39217. If the port is taken, the app picks a free one, and overlay links change. |
HMS_LOCAL_TTS_VOICE |
Name of the system voice for text to speech (a Windows voice name, or a macOS say voice). |
HMS_DEV_USER_DATA_DIR |
Data folder for an unpackaged run (npm run dev, npm start). |
HMS_DEBUG_TIKTOK=1 |
Writes extra log lines for every gift, like and other TikTok event the app handles. |
ELECTRON_CDP_PORT |
Opens the Chrome DevTools protocol on this port (used by test:local and test:obs). |
HMS_CLOUD=1 |
Legacy: use the original HypeMyStream cloud instead of the local backend. Not supported in this release. |
Set them in the shell before you start the app, for example HMS_LIVE_SIMULATION=1 npm run dev, or in PowerShell
$env:HMS_LIVE_SIMULATION = "1"; npm run dev. On an installed copy, set them as Windows user environment variables
and restart the app.
macOS and Linux
There is no macOS or Linux release, but npm run dev and npm start work there. What to expect:
| Works | Doesn’t work |
|---|---|
| The whole interface, the library, gift events, the offline simulation | Mods for Windows games, because the games and their mod loaders are Windows programs |
| TikTok LIVE | Keyboard actions: they use a Windows-only native module (SendInput) |
OBS overlays on 127.0.0.1:39217 |
Text to speech on Linux: there is no system voice support there |
| Sounds and jumpscares | |
Text to speech on macOS, with the voices of say |
Repository layout
| Path | What it is |
|---|---|
apps/desktop |
The Electron app: src/main (main process, local backend, game engines), src/preload, src/renderer (React UI) |
apps/desktop/resources/catalog |
The bundled game catalog, commands, artwork and gift catalogs |
packages/* |
Shared @hms/* packages: game manifests, mod engines, overlays, Lucky, Mute Wheel, i18n and more |
tools/import-original-catalog.py |
Rebuilds the catalog and the mod release files from the original asset package |
docs/ |
This website (Jekyll, deployed by .github/workflows/pages.yml) |
More on the internals: Development.