Document Path: docs/appforge/web-wrapping.md
Webforge builds fast, full-stack, responsive websites with declarative TechScript. Appforge allows converting any Webforge project into an installable native mobile app (Android APK/AAB) or desktop application (Windows EXE):
tsc app wrap web --platform android
tsc app wrap web --platform windows[Webforge Project (pages, 3D scenes, SQLite)]
│
▼
[tsc build --target web]
│
▼
[Compiled dist/ bundle]
(HTML + CSS + JS + SQLite)
│
▼
[Staged into Android assets/]
│
▼
[Android Native WebView Host]
- AndroidX Webkit asset loader
- Hardware-accelerated canvas/WebGL
- Secure bidirectional JS bridge
- Offline local asset serving
│
▼
[Verified APK / AAB]
- Local Asset Protocol: Assets are served locally via
https://appassets.androidplatform.net/usingWebViewAssetLoader, preventing CORS issues while avoiding insecurefile://scheme usage. - Restricted Native Bridge: Exposed JavaScript interfaces require token validation and whitelist permission checking.
- Hardware Acceleration: Automatically enabled in
AndroidManifest.xml(android:hardwareAccelerated="true") to ensure 60fps WebGL/3D canvas performance.