Development

Notes for contributors and maintainers. To build and run the app, start with Build from source.

Page What it covers
Self-hosted: what the app talks to Every cloud touchpoint of the original app and what local mode does instead, plus the public services that are still used.
Game library internals The bundled catalog, how mods are downloaded from mods-v1 and checked by sha256, and which games are not available.
Releasing Tagging an app release, the release workflow, and uploading the mod packages.
TikTok LIVE connection How the app connects straight to TikTok LIVE with tiktok-live-connector and your Euler Stream sign key, the offline simulation, and the connection errors.

How the app is put together

HypeMyStream is an Electron app in apps/desktop:

  • Main process (src/main). It holds the local backend, local-dev-api.ts, which answers every /api/... request in-process and saves to local-unlimited-state.json. It also runs the overlay server, local-obs-server.ts, on 127.0.0.1:39217, plus the game engines and mod installers, the TikTok LIVE connection (live/), text to speech (tts/) and the jumpscare window.
  • Preload (src/preload). The bridge (window.api) between the UI and the main process.
  • Renderer (src/renderer). The React interface.

Shared code lives in the @hms/* packages in packages/. For example, mod-engines holds the install and launch logic per game engine, stream-overlays, lucky, mute-wheel and banner-marquee hold the overlays, and i18n holds the translations.

TikTok LIVE goes straight from the computer to TikTok through tiktok-live-connector (pinned to 2.4.0, the last MIT release), signed by Euler Stream. With Offline simulation on, or HMS_LIVE_SIMULATION=1, a simulated connector is used instead.

Contributing

Issues and pull requests are welcome at github.com/hypemystream/hypemystream.

  • Run npm run build and npm test before you open a pull request. CI runs both, plus npm run test:packages.
  • Code style follows the Biome settings in biome.json: 2 spaces, 120 columns, double quotes, trailing commas. Biome is not a dependency; run it with npx @biomejs/biome if you like.
  • Much of apps/desktop/src was restored from the 0.3.150 release build. It is plain JavaScript in .ts/.tsx files (so tsc does not pass on it), with build-style names such as t2 and game2. Follow the style of the file you edit.
  • Keep the app working without an account or a cloud service. src/main/self-hosted.test.ts checks that.

This website

The site is built with Jekyll and the Just the Docs theme from the docs/ folder. .github/workflows/pages.yml builds and deploys it to GitHub Pages on every push to main that changes docs/. You can also run it by hand from the Actions tab (Pages → Run workflow).

When you edit a page:

  • Every page needs front matter with title and nav_order, and parent when it sits under a section.
  • Link images with {{ '/assets/screenshots/name.webp' | relative_url }} so they work under the /hypemystream base path.
  • Wrap any literal Liquid syntax (double curly braces, or a curly brace followed by a percent sign) in your text or code in a Liquid raw block, so Jekyll does not try to run it.
  • Screenshots live in docs/assets/screenshots/ as WebP. Use demo names only, never real streamer or viewer handles.