# Nuvio TV — TizenBrew module

Self-contained TizenBrew **app module** (`packageType: "app"`), version 0.2.10.
TizenBrew loads `app/index.html` and registers the declared remote `keys`.

> ⚠️ **Secrets:** `app/nuvio.env.js` may embed personal credentials (TorBox API
> key, AIOStreams URL — which grants debrid access). If it does, keep this module
> **private** (a private repo or a URL only you can reach). Do **not** publish it
> to public npm/GitHub. For public distribution, ship without those values and
> have each user enter their own in Settings → Integrations.

## Install on a Samsung TV (Tizen 4.0+ / Chromium M56)

1. Install **TizenBrew** on the TV (once).
2. Make this module reachable, then add it in TizenBrew:
   - **npm:** `npm publish` this folder, then in TizenBrew press the **GREEN**
     button and enter `harborview-stream`.
   - **GitHub:** push this folder to a repo and add `owner/repo` in TizenBrew.
   - **Self-hosted / dev:** serve this folder over HTTP and add the URL.
3. Launch **Nuvio TV** from the TizenBrew module list.

## Configure runtime env

`app/nuvio.env.js` carries the runtime config (TMDB key, optional Supabase, etc.).
Re-run the packager with `--env-source /abs/path/to/nuvio.env.js` to bundle a
configured file, or edit `app/nuvio.env.js` in place before publishing.

## Rebuild

From the web app repo: `npm run package:tizenbrew`
