README: web and desktop (Electron/webview app) targets share the runtime

This commit is contained in:
CRTkafa 2026-09-28 04:17:57 +07:00
parent dd13ddf450
commit 2a4b5af555

View file

@ -16,6 +16,23 @@ A wayBetter app is one native window (Tauri 2, multiwebview) with:
This repository holds the parts that do not depend on which site the app extends. An app is mostly This repository holds the parts that do not depend on which site the app extends. An app is mostly
a **site adapter** plus its own features. a **site adapter** plus its own features.
## Two kinds of targets
wayBetter extends the apps people already use, not only websites:
- **Web target** (built): a website such as x.com or kick.com. The app is the Tauri window above;
the shell supplies tabs, split panes, profiles, link routing and updates.
- **Desktop target** (planned): a desktop app that is itself built on web tech (Electron or a
system webview), e.g. WhatsApp or Discord. The app already has its own window and session, so
there is no wayBetter shell: a small loader puts the same **page runtime** (themes on one color
foundation, plugins, DOM/request hubs) inside the app's renderer, the way BetterDiscord does
for Discord. Updates of the target app must not break it: the loader re-applies itself and
degrades to "unchanged app" when it cannot.
The runtime and the adapter contract are shared by both; only the host differs (Tauri shell vs.
loader). Keep runtime code free of Tauri assumptions (`invoke` is injected, never imported) so a
desktop target can supply its own bridge.
License: GPL-3.0-or-later. Private until the owner decides otherwise. License: GPL-3.0-or-later. Private until the owner decides otherwise.
## Layout ## Layout