Skip to content
Proyek

Tentang

Turn any website into an installable app across iOS, Android, Windows, macOS and Linux, and generate a sharing link.

Pengembangan web dan aplikasi

Cara angka ini diukur

211 bintang48 Fork +3 dalam 24 jam

Yang dapat Anda lakukan

  • Two input modes: website URL, or your own HTML (.html file or .zip with index.html inside) — hosted and packaged like any URL app.
  • Site analysis: name, theme color, best-resolution icon, and ad/tracker/popup counts (display-only estimates).
  • Android — a real, installable WebView APK (v1+v2+v3 signed), each app with its own dedicated signing certificate.
  • iOS / iPadOS — a .mobileconfig Web Clip profile, optionally CMS-signed with a public-CA certificate ("signature-free" install).

Pertumbuhan bintang terukur

dalam 24 jam
+3
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
WebToApp

WebToApp

Turn any website into an installable app — in seconds.

One link in, finished products out for iPhone / iPad · Android · Windows · macOS · Linux — plus a public app market, creator profiles, comments and ratings, all without sign-up.

Live Demo CI License: MIT Platforms

English · 简体中文 · 日本語 · العربية · Русский · Español · Português · Français · Deutsch

QQ group 947508787

Managed apps and creator API


What you get

Enter a URL — or upload your own .html / .zip — and seconds later you get an installable result covering every major platform. Each artifact is a thin native shell pointing at your site, so packages are measured in kilobytes, not megabytes, and download almost instantly.

Every generated app lives at its own download page /a/<id>: platform picks, a foldable "About this page" section the creator can fill with real content, and a community layer with comments and star ratings. Publish it as a public link and it also appears in the app market for everyone to find.

Open source · Free · No sign-up. Try it live at shiaho.sbs.


Screenshots

Landing page: paste a link, get started — live counters for generated apps, downloads and views

Paste a link (or drop an HTML file) — the counters are live.

App configuration: name, description, about-section text and up to 3 auto-compressed images

Name, one-line description, and the creator-written About section with up to 3 images — anything over 800KB is compressed near-losslessly.

Theme color, recovered icon, and per-platform settings with Android immersive mode

Theme color and icon recovered from the site; per-platform toggles like Android immersive fullscreen.

Link visibility and required tags before generating

Private by default or public on the market — tags are required so apps stay discoverable.

Generated download page: rating, creator card, comments, and per-platform install list

The generated app page: install list on the right, rating / creator / comments on the left.

The About fold expanded, showing creator text and an uploaded image

The "About this page" fold carries the creator's own text and images — no boilerplate filler.

Public app market with creator attribution, tags, relative time and ratings on every card

The public market: creator cards, tag filters, search, and newest / top-rated / most-downloaded / most-visited sorting.

Per-device build history with visit stats, export and import

Your history stays on your device fingerprint — with visit stats, regenerate, and export/import across devices.


How it works

Pipeline: URL or HTML input → analyze + recipe → five parallel platform builds → app page with community

  1. Input — paste a website URL, or upload a single .html file / .zip bundle containing index.html. Uploaded HTML is hosted by the server under /a/<id>/site/... and packaged exactly like a URL app.
  2. Analyze + recipe — the analyzer fetches the page and extracts the name, theme color and icon (multi-candidate fetch, highest resolution wins), then everything the build needs is pinned into a recipe.json.
  3. Parallel builds — all five platform packages build concurrently; a failure in one (e.g. Android toolchain missing) degrades that platform only.
  4. App page — the download page renders install entries per platform, the creator's About content, and the community block.

Features

  • Two input modes: website URL, or your own HTML (.html file or .zip with index.html inside) — hosted and packaged like any URL app.
  • Site analysis: name, theme color, best-resolution icon, and ad/tracker/popup counts (display-only estimates).
  • Multi-platform packaging, one build → five artifacts:
    • Android — a real, installable WebView APK (v1+v2+v3 signed), each app with its own dedicated signing certificate.
    • iOS / iPadOS — a .mobileconfig Web Clip profile, optionally CMS-signed with a public-CA certificate ("signature-free" install).
    • macOS — a standalone WKWebView .app window (no address bar, no third-party browser).
    • Windows / Linux — lightweight .bat / .desktop launchers that open the system browser in app mode.
  • Creator-authored About section: rich text plus up to 3 images on every app page. Uploads are decode-verified, EXIF-stripped and re-encoded to WebP — anything over 800KB is auto-compressed near-losslessly server-side.
  • Community without accounts: a device fingerprint becomes a persistent public identity (?u=N) — editable name, Markdown bio and avatar. Creators are credited on their apps and get a public profile page.
  • Comments & ratings: every app page has a comment thread with optional 1–5 star ratings; averages roll up onto market cards.
  • Public app market: tag filters, search, and sorting by newest, top-rated (avg → count), most downloaded or most visited — with relative timestamps.
  • iOS dynamic URL swap: the Web Clip points at /a/<id>/launch, so the target URL can change server-side without reinstalling.
  • Per-device history: builds are saved against the device fingerprint with visit/download stats, regenerate, and export / import across devices. Deleting an entry fully removes the app.
  • Auto cleanup: apps with no visits for 30 days are reclaimed automatically.
  • Optional Cloudflare R2 offload: downloads redirect to the CDN, saving origin bandwidth.
  • Multilingual UI: 10 languages — English, 简体中文, 日本語, العربية (RTL), Русский, Español, Português, Français, Deutsch, 한국어 — with the generated download pages localized too.

Community without sign-up

Device fingerprint becomes a sequential public user ID unlocking creator attribution, profiles, comments and ratings

There is no registration: the first time a device shows up, its fingerprint is assigned a sequential public number. That #N becomes a real profile — set a display name, a Markdown bio and an avatar, and every app you publish carries your creator card. Other users open ?u=N to see your public profile and the apps you published. Comments support optional star ratings, and the market reflects them on every card.

App size

Each package is a thin entry point to your site — it bundles no site content, so the artifacts are measured in kilobytes, not megabytes.

Measured package sizes: macOS 135KB, Android 21KB, iOS 4KB, Windows 1.2KB, Linux 0.7KB

Platform Package Typical size What's inside
Android android.apk ~21 KB A real, installable WebView APK (v1+v2+v3 signed)
iOS / iPadOS ios.mobileconfig ~4 KB A Web Clip configuration profile
macOS macos.zip ~135 KB A .app bundle (native WKWebView window + icon)
Windows windows.zip ~1.2 KB A .bat launcher + desktop-shortcut helper + icon
Linux linux.tar.gz ~0.7 KB A .desktop entry + install script + icon

Tech stack

  • Backend: Python + FastAPI + Uvicorn · SQLite stores (history, tasks, community)
  • Frontend: plain HTML / CSS / JS — no build step, served directly by the backend
  • Packaging: Android SDK (aapt2 / d8 / apktool / apksigner / zipalign), Pillow, openssl
  • CI: pytest tests/ on Python 3.10 / 3.11 / 3.12 — 336 tests

Project structure

.
├── index.html                 Landing page + build form
├── css/ js/ assets/           Frontend static assets
│   ├── js/i18n.js             Lightweight i18n runtime (10 languages)
│   ├── js/i18n.<lang>.js      Per-language translations (en sync, rest on demand)
│   ├── js/community.js        Comments / ratings / creator block on app pages
│   └── js/mdmini.js           Tiny Markdown renderer for bios
├── server/
│   ├── main.py                FastAPI app and routes (35 endpoints)
│   ├── config.py              Environment-variable configuration
│   ├── html_site.py           HTML-upload staging / validation / serving
│   ├── history_store.py       Per-device history + app/visit stats (SQLite)
│   ├── community_store.py     Profiles, creators, comments, ratings (SQLite)
│   ├── task_store.py          Build task queue persistence (SQLite)
│   └── engine/
│       ├── analyzer.py        Site analysis
│       ├── distiller.py       Recipe → packages + download page (core)
│       ├── apk_builder.py     Android APK build and signing
│       ├── mobileconfig_signer.py  iOS profile signing
│       ├── cache.py           Fetch/icon caches
│       └── storage.py         Cloudflare R2 offload
├── certs/                     Signing material (private keys are not committed)
└── generated/                 Runtime-generated apps and data (not committed)

Quick start

Requires Python 3.10+. Building an Android APK needs the Android SDK and apktool (it falls back to a PWA offline package when they are missing).

# 1. Create a virtual environment and install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r server/requirements.txt

# 2. Configure (optional, everything has defaults)
cp .env.example .env
# Edit .env as needed

# 3. Run
uvicorn server.main:app --host 127.0.0.1 --port 8000

Open http://127.0.0.1:8000.

No environment variables are needed for local development. When deploying publicly, set PUBLIC_BASE_URL, otherwise iPhones cannot open localhost. See .env.example for the full list.

Docker

docker compose up -d --build

The image includes the Android build tools. See docs/DEPLOY.md.

Deployment

For a complete step-by-step production guide (systemd, Nginx, HTTPS, Android/iOS, R2), see docs/DEPLOY.md.

In production it is common to run it under systemd, behind an Nginx reverse proxy:

# /etc/systemd/system/webtoapp.service
[Unit]
Description=WebToApp
After=network.target

[Service]
WorkingDirectory=/path/to/web-to-app
Environment=PUBLIC_BASE_URL=https://your-domain.com
ExecStart=/path/to/web-to-app/venv/bin/uvicorn server.main:app --host 127.0.0.1 --port 8000
Restart=always

[Install]
WantedBy=multi-user.target

For iOS profile signing ("signature-free" install), see the certificate setup in certs/README.md.

How Cloudflare R2 offload works

Generated installers can be large, and serving every download from the origin burns its bandwidth. When R2 is configured:

  1. After each build, every file in generated/<app_id>/downloads/ is mirrored to R2 under the key <app_id>/downloads/<filename> (server/engine/storage.py), and the resulting public URLs are written into the app's recipe.json as a downloads_cdn map.
  2. On download, GET /a/<id>/download/<platform> prefers the CDN URL in downloads_cdn and returns a 302 redirect to R2; if absent, it falls back to streaming the local file. The origin therefore spends CPU during builds, not bandwidth on every share or QR scan.
  3. On cleanup, an app's objects under <app_id>/ are removed from R2 alongside its local data.

If any R2_* variable is unset the feature is a no-op and downloads are served locally — nothing breaks. Existing apps built before R2 was enabled can be migrated with python -m server.scripts.backfill_r2. Full setup steps (bucket, API token, public access, custom domain, backfill) are in docs/DEPLOY.md §11.

Security notes

  • All secrets (R2, Cloudflare, signing passwords) are read from environment variables; the repository contains no real credentials.
  • Signing private keys (certs/*.keystore, certs/app-keys/) and runtime data (generated/) are excluded by .gitignore by default — never commit them.
  • Each generated Android app uses its own independent signing certificate, which avoids the certificate fingerprint being flagged en masse and ensures the same app can be updated in place.
  • Creator-uploaded about-images are decode-verified with Pillow, bounded by raw-size / pixel-count / count caps, stripped of all metadata and re-encoded to WebP — never served as uploaded.
  • User-generated text is HTML-escaped on render; app-scoped media routes allowlist server-generated filenames only.

License

MIT

Jelajahi proyek terkait

Memuat…