work/tv-home
Android TV home screen
TV Home
The living-room TV's home screen, built from widgets on a canvas you arrange from your phone and push to the TV live.
Live
The stock TV launcher is an advert with a clock. This one is a canvas. The TV shows a layout: a 1920 by 1080 board of widgets on a 6-pixel grid, and you edit that board from a phone, an iPad or any browser in the house, then press Push to TV. The TV swaps it in place without reloading.
- Runs on
- Web app on the home server, shown full screen by the nomarch TV app
- Built with
- Python standard library server, vanilla JavaScript, SQLite
- Started
- October 2026
Data flow
Edit anywhere, push to the TV
Arranged on a phone or laptop, pushed to the TV: the editor and the TV share one schema and one renderer, and the server holds every layout.
What goes on the canvas
Twenty-two widget kinds. Clocks (digital, big StandBy numerals, analog, minimal) and world clocks, a calendar day, notes and quotes. Twelve weather widgets: now, an hourly strip and curve, ten days, rain charts for the next two and 24 hours, a sunrise and sunset arc, moon phase, wind compass, UV, air quality, conditions and weather alerts. A photo slideshow with Ken Burns or crossfade. A row of house resources (CPU, memory, GPU memory and storage across the machines). And an app shelf of poster tiles that launch Android apps through the TV app's bridge.
Navigation is all D-pad: focus moves spatially across tiles, OK launches, Back closes. After a few quiet minutes the screen dims to a resting mode.
Layouts
Four ways to use the screen
The Home layout: house resources across the top, the clock, and the app shelf with YouTube focused. Private widgets were removed for this demo, hence the open middle. StandBy: big glowing numerals, weather, the calendar day and the moon phase. Photo frame: a slideshow (procedural demo scenery) with clock and weather over it. Weather station, eleven weather widgets on one screen.
The editor is the TV
The editor draws with the exact same renderer the TV uses, so what you see is what the TV shows. Drag from a palette, resize with handles, snap to a 24-pixel grid, to other widgets and to the 5% overscan safe area, marquee-select, align and distribute, reorder layers, duplicate, undo, redo and nudge with arrow keys. Several layouts can be saved; templates include Home, StandBy, Photo frame, Weather station and Blank.
Editor
Laid out on a laptop, pushed to the TV
The layout editor: palette, TV-shaped canvas, safe-area guides, layout tabs and Push to TV. The same editor on a phone.
How it's built
- One schema shared by server, editor and TV. Every widget kind, size limit and option is declared once. Unknown fields, URLs, paths and markup are refused, and text is only ever rendered as text.
- State lives on the server in SQLite: an editor document with a revision number (a stale tab gets a conflict banner instead of silently overwriting) and the published snapshot, with 200 rows of history.
- Weather comes from free, keyless public forecast and alert services, fetched on the server, cached and served stale while refreshing.
- Photos are re-encoded on the server with location and camera metadata stripped before the TV ever sees them.
- Writes need a custom header and a same-origin request, so no other website can rearrange the TV.
- Animations stick to transform and opacity. The TV's WebView reports a 960 by 540 viewport at 2x while its window width lies, so everything scales from the document's real client width.






