Are there any projects or information on how to use TeX to typeset texts for screen reading? That is, I want to get the beautiful output of TeX to render in a browser-like desktop application. I want the output to be as near real-time as possible. Basically, I want a browser for TeX files that reads the files like a traditional browser reads HTML files and then renders them. The screen size should be able to dynamically resize, unlike with pre-rendered PDFs or other traditional output formats. Each resize would trigger a screen update with the new parameters (potentially overriding the file's settings).
This is more of a programming question and I'm interested in libraries that may achieve my goal rather than simple solutions such as workarounds.