OPEN SOURCE FRAMEWORK · NATIVE ROKU · AGENTIC DEVELOPMENT
Build fast native Roku apps in TypeScript, with clear architecture and tools that help developers and AI agents write, inspect and maintain them efficiently.
AI-OPERABLE BY DESIGN
MCP tools let agents inspect app state and focus, navigate screens and verify changes with repeatable tests.
Inspect views, focus, collections, services, native nodes, screenshots and logs.
Reproduce a problem, make a change and rerun the scenario.
Keep code, tests and runtime evidence available for human review.
MODERN TYPESCRIPT · NATIVE ROKU
Write your application in TypeScript. Hosanna’s compiler produces the BrightScript and SceneGraph that run on Roku, while source maps and diagnostics connect the result to the code your team maintains.
// home.ts @view('Home') export class HomeView extends BaseView<HomeState> { @state private dataSource = new CollectionViewDataSource([{ id: 'language-stories', settingsKey: 'rows.languageStories', data: {}, items: storyIds.map(id => ({ id, imageUrl: storyImages[id], ...this.appConfig.get( `locale.languageStories.stories.${id}` ), })), }]); protected override getViews() { return [ CollectionView({ id: 'languageStories', dataSource: this.dataSource, readingDirection: this.appConfig.getReadingDirection(), }) .onItemSelected(({ itemIndex }) => { const story = storyIds[itemIndex ?? -1]; if (!story) return; (this.parent as NavControllerView) .push(Details({ id: `details-${story}`, storyId: story, })); }) .isInitialFocus() ]; } }
// details.ts @view('Details') export class DetailsView extends BaseView<DetailsState> { @state storyId: StoryId = 'bakery'; protected override getViews() { const story = this.appConfig.get<StoryCopy>( `locale.languageStories.stories.${this.storyId}` ); return [Group([ Image({ id: 'detailsImage', imageUri: storyImages[this.storyId], }), Label({ id: 'title', text: story.title, horizontalAlignment: 'start', }), Label({ id: 'description', text: story.description, horizontalAlignment: 'start', }), Button({ text: this.translate( '{{locale.languageStories.back}}' ), }) .onClick(() => this.popDetails()) .isInitialFocus(), ])]; } }
// app.config.json · relevant sections { "locales": { "ar": { "readingDirection": "rtl" } }, "rows": { "languageStories": { "rowType": "HorizontalRow", "cellSize": [400, 300], "height": 386, "spacing": 28, "contentOffset": [92, 8], "cellSettingsKey": "cells.languageStory", "focusSettings": { "hideFocusIndicator": true, "focusedScale": 1.035 } } }, "cells": { "languageStory": { "$supportsDataMap": true, "cacheFragmentConstraintLayout": true, "views": { "base": [ { "id": "poster", "subType": "Poster", "uri": "${data.imageUrl}", "width": "{{constraint.fillX(start, cell.end, 6, 6)}}", "height": "{{constraint.aspectRatio(1.865)}}", "translation": [ "{{constraint.pin(start, cell.start, 6)}}", 6 ] }, { "id": "title", "subType": "Label", "text": "${data.title}", "horizAlign": "start", "width": "{{constraint.fillX(start, cell.end, 26, 26)}}", "translation": [ "{{constraint.pin(start, cell.start, 26)}}", "{{constraint.pin(top, poster.bottom, 18)}}" ] } ], "normal": { "poster": { "opacity": 0.9 } }, "focused": { "poster": { "opacity": 1 } } } } }, "translations": { "en": { "languageStories": { "sectionTitle": "Choose an adventure", "back": "Back to stories" } }, "ar": { "languageStories": { "sectionTitle": "اختر مغامرة", "back": "العودة إلى الحكايات", "stories": { "bakery": { "title": "المخبز المشمس", "description": "ثلاثة مآزر ورغيف واحد مستحيل." } } } } } }
// app.config.mobile.json · relevant overrides { "$extendFile": "./app.config.json", "appSettings": { "configVariant": "mobile" }, "rows": { "languageStories": { "height": 220, "cellSize": [336, 214], "contentOffset": [20, 0], "spacing": 16, "viewportWidth": 393, "floatingFocusAreaWidth": 353, "focusSettings": { "focusedScale": 1.025 } } }, "controls": { "NavController": { "transition": { "default": { "transitionType": "Slide", "transitionOptions": { "duration": 300, "parallax": 0.3 } } } } } }
Target-aware compiler and lint diagnostics catch unsupported or expensive patterns before the device does.
Source maps connect generated Roku code, stack traces and editor navigation back to the TypeScript you own.
The shipped Roku app is native SceneGraph—not a web view—and direct platform access remains available when it matters.
A COMPLETE LEAN-BACK SDK
Virtualized collections, deliberate focus navigation, playback and lifecycle support give your application a coherent foundation. Reusable product behaviour helps your team concentrate on what makes the experience distinctive.
“Hosanna also offers a strong set of platform-level features—the standout being its focus management system, which alone eliminated weeks of debugging we've encountered with other development technologies.”
CollectionView builds full rails, grids and mixed pages from data and configuration, with virtualization, remote loading and incremental updates.
Focus strategies, memory and restoration make ten-foot navigation deliberate rather than a trail of one-off fixes.
Playback, EPG, dialogs, keyboards, overlays, accessibility and deep links belong to the same application model.
EXTENSIBLE · OWNABLE
Hosanna UI is open source. The TypeScript-to-Roku compiler is proprietary and available under licence.
Request an evaluation key to try the workflow. License the compiler for your own team, or engage Tantawowa to deliver your Roku application.
Delivery clients retain the right to build and publish with their licensed compiler after support ends. Support is optional.
A CONFIGURABLE PRODUCT LAYER
Themes, view fragments, translations and assets live in a configurable product layer. TypeScript owns application behaviour, while reusable configuration keeps brands, languages and presentation consistent.
import theme1Bundle from './theme-1/bundle.json'; import theme2Bundle from './theme-2/bundle.json'; import theme3Bundle from './theme-3/bundle.json'; const THEMES = [ { id: 'theme-1', label: 'THEME 1' }, { id: 'theme-2', label: 'THEME 2' }, { id: 'theme-3', label: 'THEME 3' }, ] as const; type ThemeId = typeof THEMES[number]['id']; const BUNDLE_BY_THEME: Record<ThemeId, AssetBundleEnsureArgs> = { 'theme-1': theme1Bundle, 'theme-2': theme2Bundle, 'theme-3': theme3Bundle, }; @injectBuildConfig('serverIp') private serverIp?: string; private buildThemeMenu( layout: WowAssetBundleLayout ): ViewStruct<ViewState>[] { return THEMES.map(theme => Button({ id: `wowAssetTheme_${theme.id}`, text: theme.label, isActive: !this.isLoading, isSelected: theme.id === this.activeThemeId, }) .styleKey(this.menuStyle(layout)) .onClick(() => this.loadTheme(theme.id) ) ); } private loadTheme( themeId: ThemeId ): void { const bundle = BUNDLE_BY_THEME[themeId]; const args: AssetBundleEnsureArgs = { ...bundle, forceDownload: true, assets: bundle.assets.map(asset => ({ ...asset, url: getLocalContentServerUrl( this.serverIp, asset.url ), })), }; this.isLoading = true; this.assetBundleManager() .ensureBundle(args) .then(manifest => { const skinPath = this.readyPath(manifest, 'skin'); this.skin = parseWowAssetBundleSkin( ReadAsciiFile(skinPath), themeId ); this.fontPath = this.readyPath(manifest, 'font'); this.heroUri = this.readyPath(manifest, 'hero'); this.storyUris = [ this.readyPath(manifest, 'story-1'), this.readyPath(manifest, 'story-2'), this.readyPath(manifest, 'story-3'), ]; this.activeThemeId = themeId; this.isLoading = false; }) .catch(error => { this.errorMessage = String(error); this.isLoading = false; }); } private readyPath( manifest: AssetBundleManifest, key: string ): string { const asset = manifest.assets[key]; if (!asset || asset.state !== 'ready') { throw new Error( `${manifest.bundleId} did not deliver ${key}` ); } return asset.path; }
{
"bundleId": "wow-asset-home-theme-1",
"version": "1",
"maxConcurrent": 3,
"assets": [
{
"key": "skin",
"url": "wow-asset-bundles/theme-1/skin.json",
"fileName": "skin.json",
"required": true
},
{
"key": "font",
"url": "wow-asset-bundles/theme-1/display.ttf",
"fileName": "display.ttf",
"required": true
},
{
"key": "hero",
"url": "wow-asset-bundles/theme-1/hero.jpg",
"fileName": "hero.jpg",
"required": true
},
{
"key": "story-1",
"url": "wow-asset-bundles/theme-1/story-1.jpg",
"fileName": "story-1.jpg",
"required": true
},
{
"key": "story-2",
"url": "wow-asset-bundles/theme-1/story-2.jpg",
"fileName": "story-2.jpg",
"required": true
},
{
"key": "story-3",
"url": "wow-asset-bundles/theme-1/story-3.jpg",
"fileName": "story-3.jpg",
"required": true
}
]
}
{
"bundleId": "wow-asset-home-theme-2",
"version": "1",
"maxConcurrent": 3,
"assets": [
{
"key": "skin",
"url": "wow-asset-bundles/theme-2/skin.json",
"fileName": "skin.json",
"required": true
},
{
"key": "font",
"url": "wow-asset-bundles/theme-2/display.ttf",
"fileName": "display.ttf",
"required": true
},
{
"key": "hero",
"url": "wow-asset-bundles/theme-2/hero.jpg",
"fileName": "hero.jpg",
"required": true
},
{
"key": "story-1",
"url": "wow-asset-bundles/theme-2/story-1.jpg",
"fileName": "story-1.jpg",
"required": true
},
{
"key": "story-2",
"url": "wow-asset-bundles/theme-2/story-2.jpg",
"fileName": "story-2.jpg",
"required": true
},
{
"key": "story-3",
"url": "wow-asset-bundles/theme-2/story-3.jpg",
"fileName": "story-3.jpg",
"required": true
}
]
}
{
"bundleId": "wow-asset-home-theme-3",
"version": "1",
"maxConcurrent": 3,
"assets": [
{
"key": "skin",
"url": "wow-asset-bundles/theme-3/skin.json",
"fileName": "skin.json",
"required": true
},
{
"key": "font",
"url": "wow-asset-bundles/theme-3/display.ttf",
"fileName": "display.ttf",
"required": true
},
{
"key": "hero",
"url": "wow-asset-bundles/theme-3/hero.jpg",
"fileName": "hero.jpg",
"required": true
},
{
"key": "story-1",
"url": "wow-asset-bundles/theme-3/story-1.jpg",
"fileName": "story-1.jpg",
"required": true
},
{
"key": "story-2",
"url": "wow-asset-bundles/theme-3/story-2.jpg",
"fileName": "story-2.jpg",
"required": true
},
{
"key": "story-3",
"url": "wow-asset-bundles/theme-3/story-3.jpg",
"fileName": "story-3.jpg",
"required": true
}
]
}
Design tokens, reusable fragments and style inheritance keep rebrands and visual variants coherent.
Locale switching, translation bundles, RTL direction and logical layout values work together across the experience.
Layered build configuration and versioned asset bundles support brands, markets and release stages.
DEVELOP · INSPECT · VERIFY
Iterate in the Roku browser simulator, then verify on Roku hardware. Hosanna DevTools connects the visible interface to its views, state, focus, services and native SceneGraph nodes.
Inspect and highlight views, CollectionView cells and SceneGraph nodes while the product runs on a connected target.
Build, deploy, drive input, read logs, capture screenshots and resolve mapped failures without changing mental context.
Turn the finding into a repeatable Roku regression test, with screenshots, state and reports another engineer can understand.
Get optional support for compiler and framework issues, or bring Tantawowa in to build or modernise your Roku app.
Already using Hosanna? Request support.