One system for every app: WhatsApp/Discord-style targets run in the same Tauri shell; site is waybetter.fyi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4cf85f6bde
commit
99aa9bebf6
3 changed files with 14 additions and 24 deletions
25
README.md
25
README.md
|
|
@ -8,7 +8,7 @@ the same core.
|
||||||
npm install waybetter
|
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:
|
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
|
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
|
## One system for every app
|
||||||
|
|
||||||
wayBetter extends the apps people already use, not only websites:
|
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
|
||||||
- **Web target** (built): a website such as x.com or kick.com. The app is the Tauri window above;
|
own Electron desktop client, such as WhatsApp or Discord: wayBetter runs their web app in its own
|
||||||
the shell supplies tabs, split panes, profiles, link routing and updates.
|
light Tauri window instead of the heavy client, and gives it the same tabs, split panes, real
|
||||||
- **Desktop target** (planned): a desktop app that is itself built on web tech (Electron or a
|
accounts side by side, themes, plugins and signed updates. There is no second kind of host.
|
||||||
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.
|
License: GPL-3.0-or-later.
|
||||||
|
|
||||||
|
|
@ -45,7 +36,7 @@ License: GPL-3.0-or-later.
|
||||||
|
|
||||||
| Project | Target | What it is |
|
| 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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# waybetter
|
# waybetter
|
||||||
|
|
||||||
The framework behind the wayBetter apps: apps that extend the apps you already use in place, the
|
The framework behind the wayBetter apps: the apps you already use in a light native (Tauri)
|
||||||
way BetterDiscord extends Discord. A website gets a native window around it; a desktop app built
|
window, extended in place the way BetterDiscord extends Discord. Websites and services that ship a
|
||||||
on web tech is extended from the inside. Both share this package.
|
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
|
- **`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
|
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 |
|
| 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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,17 @@
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"type": "module",
|
"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": [
|
"keywords": [
|
||||||
"waybetter",
|
"waybetter",
|
||||||
"tauri",
|
"tauri",
|
||||||
"electron",
|
|
||||||
"betterdiscord",
|
"betterdiscord",
|
||||||
"plugins",
|
"plugins",
|
||||||
"theming",
|
"theming",
|
||||||
"dom",
|
"dom",
|
||||||
"desktop"
|
"desktop"
|
||||||
],
|
],
|
||||||
"homepage": "https://waybetter.crt.fyi",
|
"homepage": "https://waybetter.fyi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://git.crt.fyi/CRT/waybetter.git",
|
"url": "git+https://git.crt.fyi/CRT/waybetter.git",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue