Skip to content

About

A local HTML viewer and editor for iOS — sideloaded, open source

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

HTMLViewer

HTMLViewer

A small iOS 18+ app to open HTML files on your phone, edit the source and see the result. The Files app can't render HTML, this can.

No account, no server, no analytics. The only network request is the update check in Settings, and only when you tap it.

Features

  • Folders, new pages from a blank template, import from Files or iCloud Drive, rename, delete, multi-select
  • Rendered preview in a WebView. Relative links and images next to the file work
  • Edit the raw HTML, tap Preview to save and see it
  • Same four themes as FileManager
  • Version, changelog and update check in Settings
  • English and German

Install

AltStore / SideStore / Feather

Add this source (AltStore: Browse → Sources → Add Source):

https://raw.githubusercontent.com/xsxs18-dev/HTMLViewer/main/altstore-source.json

On the device you can also tap here. Use the raw.githubusercontent.com link, not the link to this page. AltStore PAL doesn't work, it only installs notarized apps.

Manually

Every push to main builds an unsigned IPA and publishes it as a release (build-N). Sign it with Sideloadly, AltStore or whatever you use.

From source

Needs a Mac with Xcode and XcodeGen:

brew install xcodegen
git clone https://github.com/xsxs18-dev/HTMLViewer.git
cd HTMLViewer
xcodegen generate
open HTMLViewer.xcodeproj

Set your signing team and build.

Code

SwiftUI and WKWebView. Pages are loaded with their own folder as the base URL. The editor is a plain monospaced text view.

HTMLViewer/
├── App/            entry point
├── DesignSystem/   colors, spacing, themes
├── Models/         PageItem
├── Services/       FileSystemService, ThemeManager, UpdateChecker
├── Views/          file browser, preview/edit, Settings, Changelog
└── Resources/      assets, Info.plist, Localizable.xcstrings
project.yml         XcodeGen project

Known issues

  • No Share Sheet support yet
  • No syntax highlighting
  • Files outside the page's own folder don't load
  • No iPad layout yet

License

MIT, see LICENSE.

About

A local HTML viewer and editor for iOS — sideloaded, open source

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages