Menu

Post image 1
Post image 2
1 / 2
0

WebVirt + Nexus: Run Your React/Vue/Svelte SPA Inside an Android WebView

DEV Community·Giovani Fouz·29 days ago
#byTKwcRg
#webvirt#whats#android#fullscreen#nexus#enter
Reading 0:00
15s threshold

WebVirt + Nexus: Run Your React/Vue/Svelte SPA Inside an Android WebView — No Capacitor, No Server, No Permissions TL;DR — Two decoupled Android libraries: one serves your SPA from APK assets like a real web server, the other bridges JavaScript to native code. Used together in a production app serving local businesses. Open source, JitPack-ready. Engine v3 and Nexus v2 coming soon. The Problem Nobody Talks About You built a great SPA in React + Vite + TypeScript. It runs beautifully at localhost:5173 . Now your client wants it packaged as an Android app. Your options: Approach Reality Capacitor / Cordova +25MB runtime, opinionated structure, black-box WebView file:// protocol CORS broken, SPA routes 404, APIs blocked Embedded HTTP server (NanoHTTPD) Threads, ports, network permissions, overkill Raw WebView You write everything from scratch What you actually want: your SPA thinks it's on https://app.local , everything comes from assets/ , zero server, zero permissions, zero overhead.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More