Add a browser/PWA version
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, wasm
- Ambito
- desktop-dev, web-dev
Direzione di ricerca
Inizia confrontando i due approcci proposti, Broadway e Greenfield, e leggi il materiale relativo a Greenfield SDK e la relativa voce in example-applications.json. Determina l’ambito e i requisiti di hosting per un playground Workbench basato sul browser; il lavoro sarà considerato completato quando sarà stato concordato un percorso di implementazione, non quando sarà stato realizzato soltanto un esperimento lato server.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Many other prototyping tools for UI frameworks have the option to run in the browser to make it easier to share examples or work without setting up a local development environment, even if the target primarily native platforms:
It would be great if it were possible to create a similar web-based playground for Workbench, whether for docs or examples, or just for experimental. There are two ways of achieving this with different complexities:
- Using Broadway. This way, an instance of Workbench can run on a server somewhere, and be exposed via the HTML/Canvas GTK renderer. This works well for simple examples, but more advanced usecases (OpenGL, embedding, Webviews, Videos etc.) don't work.
- Using Greenfield. This is a full Wayland compositor that runs in your browser, and can already run the Flatpak version of Workbench out of the box. It can either run apps with Wayland clients attaching natively on the browser site (through WebAssembly), or on the server side (with the raw Flatpak version). From my testing, this works extremely well; even the GTK inspector, video playback, webviews, and OpenGL all work. Also runs in Chrome, Firefox and Safari/GNOME Web without problems.
Here is Workbench, rendering a WebKit webview, running in the browser with the second method:
Which was as simple as setting up a new app in Greenfield's example-applications.json:
"/workbench": {
"name": "Workbench",
"executable": "flatpak",
"args": ["run", "re.sonny.Workbench"],
"env": {}
},
Ofc, this would require a server (not just a CDN) to actually host the app similarly to how Broadway would require a server. A better way would be to compile Workbench using the Greenfield SDK, which would mean that it could run natively in the browser using Wasm, but I'm fairly certain that this would require some porting work. The Greenfield talk from FOSDEM 2024 contains a lot of interesting info on how this works internally.
- Lingua principale
- JavaScript
- Stelle
- 846
- Fork
- 91
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di workbenchdev/Workbench
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
workbenchdev/Workbench#1028 · 11 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
workbenchdev/Workbench#1019 ·
-
editor needs settingsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
workbenchdev/Workbench#1014 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
workbenchdev/Workbench#1007 · 1 commento ·
-
How could I work with multiple user interfaces (e.g. multiple .ui files, or multiple blueprints)?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
workbenchdev/Workbench#1006 · 1 commento · 1 reazione ·
Tutte le issue di workbenchdev/Workbench
Issue simili
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
app bug config windows-os
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openai/codex#51926 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:needs-product-decision clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openclaw/openclaw#166870 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
⚠ needs intervention document structure changed
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
[Package] Widget primitives [Type] Enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
WordPress/gutenberg#84204 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno