A local-first Android library for your web apps and offline HTML projects.
WebShelf is an open-source, local-first Android library for online web apps and offline HTML projects. Import a website by URL, or a standalone HTML file, a ZIP archive, or a whole project folder, and launch everything from one shelf. Local projects run through AndroidX WebKit's WebViewAssetLoader on their own secure HTTPS origin, so relative assets and browser APIs that need a secure context just work.
WebShelf is a shelf for the web apps and HTML projects you actually use. Instead of scattering bookmarks across browsers, or losing track of standalone HTML files and zipped projects on your device, WebShelf keeps them in one library: give it a URL, an HTML file, a ZIP archive, or a whole project folder, and it will launch it from one place.
Local projects run in their own secure WebView origin, so relative assets and browser APIs that need a secure context work the way they would on a real site. Everything is stored on the device. There is no account, no sync, and no tracking.
WebShelf is open source under the MIT license. The app has an About page too: open Settings from the top bar, then About WebShelf, for the version, the source link, and the license.
- Import a standalone
.html/.htmfile. - Import a ZIP archive containing an HTML project.
- Import a project folder through Android's Storage Access Framework.
- Add online web apps by URL.
- Categorize, search, rename and remove library entries.
- Run local projects through AndroidX WebKit's
WebViewAssetLoader, using a unique HTTPS origin per local app. - Adaptive light/dark Material 3 appearance based on the Android system theme.
- Splash screen with the WebShelf logo.
- Settings menu with an About page (version, source code, license).
- Room database for library metadata; imported files stay in app-private storage.
The latest stable release is on the Releases page: download WebShelf-v1.0.0.apk and install it. Every release is signed with the same WebShelf release key, so future releases update over it directly.
If you want the freshest build instead of the latest release, grab the debug APK from GitHub Actions:
- Open the Actions tab.
- Pick the latest successful Build WebShelf APK run.
- Download the
webshelf-debug-apkartifact and installapp-debug.apkon your device.
The debug APK is signed with a throwaway debug key, so it cannot update over the release build (or the other way around). Uninstall one before installing the other.
Requirements: Android Studio (Ladybug or newer) with Android SDK 35 and JDK 17.
- Clone the repository.
- Open the folder in Android Studio.
- Allow Gradle to sync and download dependencies.
- Build > Build Bundle(s) / APK(s) > Build APK(s).
Every push to main also builds the debug APK on GitHub Actions (.github/workflows/android.yml, Gradle 8.9, JDK 17, Android 35) and uploads it as the webshelf-debug-apk artifact.
The project uses Android Gradle Plugin 8.7.3, Kotlin 2.0.21, Jetpack Compose, Room 2.6.1 and AndroidX WebKit 1.12.1.
- ZIP imports are extracted into app-private storage. The app selects
index.htmlif present, otherwise the first.html/.htmfile found. - ZIP extraction rejects path traversal and caps expanded content at 200 MB and 5,000 entries.
- Folder imports copy the selected directory into app-private storage.
- A single HTML import copies only that file. If it depends on sibling CSS, JavaScript or image files, import its containing folder or a ZIP instead.
- Removing a local library entry also removes its copied project files.
- Local projects are served from a unique HTTPS origin (
app-<id>.local) throughWebViewAssetLoader. This supports relative assets and browser APIs that require a secure context. - File URL access and content URL access are disabled in WebView.
- Local projects can still execute JavaScript. Only import HTML/ZIP projects you trust.
- Online web apps require an internet connection.
- The first version does not provide per-app isolated WebView cookies/storage for online sites. WebView's browser data store is shared by the app process.
- External links from local projects are not silently loaded inside the local app origin.
- This is an initial functional foundation, not yet a release-hardened product. Test projects with different asset paths, service workers, WASM, large files and browser APIs before relying on them.
- Per-app icons / thumbnails.
- Edit categories and bulk organization.
- Per-app WebView profiles for online apps.
- Export/import a complete WebShelf backup.
- Better handling of nested project roots and multiple HTML entry points.
- Import progress, storage usage and duplicate detection.
- Automated tests.
MIT. See LICENSE. The WebShelf logo (docs/logo.svg) is an original design, also under MIT.