From 00b8add3a49dab52f505a27332201e8f58dfafdd Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 27 Sep 2026 23:40:57 +0000 Subject: [PATCH] One system for every app: WhatsApp/Discord-style targets run in the same Tauri shell; site is waybetter.fyi --- README.md | 25 ++++++++----------------- packages/waybetter/README.md | 8 ++++---- packages/waybetter/package.json | 5 ++--- 3 files changed, 14 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 4ef6ce4..7dcf9ea 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ the same core. npm install waybetter ``` -[npm](https://www.npmjs.com/package/waybetter) · [waybetter.crt.fyi](https://waybetter.crt.fyi) +[npm](https://www.npmjs.com/package/waybetter) · [waybetter.fyi](https://waybetter.fyi) A wayBetter app is one native window (Tauri 2, multiwebview) with: @@ -22,22 +22,13 @@ 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 a **site adapter** plus its own features. -## Two kinds of targets +## One system for every app -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. +Every wayBetter app is the same system: the Tauri window above (shell + page runtime) plus one +small adapter. That holds for websites like x.com and just as much for services that ship their +own Electron desktop client, such as WhatsApp or Discord: wayBetter runs their web app in its own +light Tauri window instead of the heavy client, and gives it the same tabs, split panes, real +accounts side by side, themes, plugins and signed updates. There is no second kind of host. License: GPL-3.0-or-later. @@ -45,7 +36,7 @@ License: GPL-3.0-or-later. | Project | Target | What it is | | --- | --- | --- | -| [wayBetter for X](https://waybetter.crt.fyi/twttr/) | x.com (website) | Desktop app around the live X: tabs, split panes, real accounts side by side, themes, plugins, drafts and fixes for X's own bugs. The first wayBetter app. | +| [wayBetter for X](https://waybetter.fyi/twttr/) | x.com (website) | Desktop app around the live X: tabs, split panes, real accounts side by side, themes, plugins, drafts and fixes for X's own bugs. The first wayBetter app. | Built something on wayBetter? Add it to this list with a pull request: name and link, what it extends, one line on what it does. diff --git a/packages/waybetter/README.md b/packages/waybetter/README.md index 5326c94..01da9ad 100644 --- a/packages/waybetter/README.md +++ b/packages/waybetter/README.md @@ -1,8 +1,8 @@ # waybetter -The framework behind the wayBetter apps: apps that extend the apps you already use in place, the -way BetterDiscord extends Discord. A website gets a native window around it; a desktop app built -on web tech is extended from the inside. Both share this package. +The framework behind the wayBetter apps: the apps you already use in a light native (Tauri) +window, extended in place the way BetterDiscord extends Discord. Websites and services that ship a +heavy Electron client alike: every wayBetter app is the same shell, runtime and one small adapter. - **`waybetter/runtime/*`**: the page runtime. One DOM-mutation/animation-frame hub, one fetch/XHR hub, a plugin API core, an OKLab theme color model, split-pane rail hiding, link @@ -62,7 +62,7 @@ pieces. The source comments document each module's contract. | Project | Target | What it is | | --- | --- | --- | -| [wayBetter for X](https://waybetter.crt.fyi/twttr/) | x.com (website) | Desktop app around the live X: tabs, split panes, real accounts side by side, themes, plugins, drafts and fixes for X's own bugs. The first wayBetter app. | +| [wayBetter for X](https://waybetter.fyi/twttr/) | x.com (website) | Desktop app around the live X: tabs, split panes, real accounts side by side, themes, plugins, drafts and fixes for X's own bugs. The first wayBetter app. | Built something on wayBetter? Add it to this list with a pull request: name and link, what it extends, one line on what it does. diff --git a/packages/waybetter/package.json b/packages/waybetter/package.json index af0ba44..19667f8 100644 --- a/packages/waybetter/package.json +++ b/packages/waybetter/package.json @@ -3,18 +3,17 @@ "version": "0.1.1", "license": "GPL-3.0-or-later", "type": "module", - "description": "wayBetter: the framework for apps that extend the apps you already use in place (websites and web-built desktop apps). Page runtime (DOM/request hubs, plugins, theme color model, link routing, account reporting) and shell models (address bar, panes, profiles, palette, updates). No dependencies.", + "description": "wayBetter: the framework for apps that run the apps you already use in a light native (Tauri) window and extend them in place. Page runtime (DOM/request hubs, plugins, theme color model, link routing, account reporting) and shell models (address bar, panes, profiles, palette, updates). No dependencies.", "keywords": [ "waybetter", "tauri", - "electron", "betterdiscord", "plugins", "theming", "dom", "desktop" ], - "homepage": "https://waybetter.crt.fyi", + "homepage": "https://waybetter.fyi", "repository": { "type": "git", "url": "git+https://git.crt.fyi/CRT/waybetter.git",