A no-bullshit, primitive static webapp to paste HTML and view it rendered in your browser.
- HTML 90.4%
- Dockerfile 9.6%
| static | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| nginx.conf | ||
| README.md | ||
HTML Viewer Webapp
A no-bullshit, primitive static webapp to paste HTML and view it rendered in your browser. Hosted at https://utils.barnii77.dev/html-viewer.
Why does this exist?
One time I was on my phone and had ChatGPT write some HTML for me, and I tried to search for an online tool that would quickly let me paste in the HTML and let me view the page fullscreen. However, all the online "HTML editors" only show you an annoying, small preview window. So I vibe-coded this tiny tool so that doesn't happen from now on.
Deployment
Use docker, ideally with docker compose, to deploy this app. I recommend setting up a systemd service if you want to host it on a server.
Features
- Full-screen CodeMirror editor with HTML/CSS/JS syntax highlighting.
- View button opens your HTML in-page via a blob URL (so Back/Forward returns to the editor intact).
- Press Back to return to the editor with your content intact.
- No backend required, fully static and cacheable.
Files
index.html: single-page editor + viewer (via blob URL navigation).