Setup
To create an app, game or library in a new directory, choose a starter in Getting started. This page covers restoring and maintaining an existing application checkout.
Installation
Install Dependencies
Install the exact dependency graph from the app lockfile:
npm ci
npx hst sdk:install
For a project created from a bundled starter, run npm run setup after npm ci to perform that starter's integration or build steps.
The app must already declare the npm framework, tools and compiler. For an older checkout, follow the npm migration first. sdk:install integrates the installed @tantawowa/hosanna-ui package and repairs its source links.
Use Hosanna Tools From The Project
Hosanna Tools is normally installed as a project dependency and run through npx hst. Do not rely on a machine-wide hst for app builds, because the repo lockfile is the source of truth for the tool version.
npx hst --help
npx hst doctor
hst doctor checks the project, installed dependencies, compiler and SDK integration. Run npx hst doctor --fix to repair supported problems, including a missing compiler dependency installation. Repair uses the project-selected version rather than upgrading to the newest release.
The reference sample locks its HST and Node versions in the repository. Another
app may select different compatible versions; npx hst version, its lockfile,
.nvmrc, package.json, and package-lock.json are authoritative.
Check Hosanna Compiler (HSC)
npm ci installs the @tantawowa/hsc compiler dependency and its matching native package. Check it from the application root:
npx hsc --version
npx hst compiler:status
The public npm compiler requires no license key. Its version belongs in package.json and the lockfile alongside the framework and tools. Package version selection does not require hosanna.json. See Compiler and tool setup to add the dependency to an older project or migrate a legacy compiler pin.
Development Workflow
Editing Code
Open the application root in a TypeScript-capable editor. In VS Code, run code . from that directory or choose File → Open Folder. The Hosanna UI extension adds source navigation and AppConfig completion. App scripts and the project-local hst remain the build and launch commands.
Developer Process
Before committing changes, follow these steps:
-
Run the linter:
npm run lint -
Run tests:
npm test -
Commit changes: Use meaningful commit messages.
Browser Development
Browser Runtime
Use the browser emulator for faster debugging across shared UI, focus, input, AppConfig, and fragment behavior:
npx hst run browser dev emulator
Develop with the browser simulator, then build and run the application on Roku hardware.
Platform Targets
Use hst run and hst build when validating a release:
- Roku:
npx hst build roku dev deviceandnpx hst run roku dev device --device "<roku name or ip>". - Simulator:
npx hst run browser dev emulator.
Develop with the browser simulator, then build and run the application on Roku hardware.
Documentation
Explore the docs folder for detailed information:
- Platforms: release-target setup and validation notes.
- UI and Interaction: views, focus, input, styles, fragments, and controls.
- Tools: Hosanna Tools, compiler, DevTools, MCP debugger, and diagnostics.
- Deployment: packaging, versioning, and CI.