Repository navigation
docs(adr): ADR-0017 client UI stack and ADR-0018 apps workspace, with the Leptos vs Dioxus spike - #167
Closed
devin-ai-integration[bot] wants to merge 2 commits into
Closed
docs(adr): ADR-0017 client UI stack and ADR-0018 apps workspace, with the Leptos vs Dioxus spike#167devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
… the Leptos vs Dioxus spike Spike workspace in benchmarks/wasm-ui-spike/ (baseline, leptos, dioxus on one shared qq-client feed; plain ES-module host; measurement scripts). Evidence: bundle size, live SSE streaming in Chrome, remote mount/unmount, Tauri v2 fit. Recommends Leptos 0.8 behind a framework-neutral remote contract; founder decision requested. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes for users
None. Docs and a benchmark workspace only; the root workspace,
qqbinary, and protocol are untouched.Why / design
Resolves the pending client-UI-stack decision with evidence, as the first PR of the web-surface workstream.
ADR-0017 — client UI stack (
docs/adr/0017-client-ui-stack.md), status Proposed — founder decision requested:SessionClient+ SSE subscription and reduces withqq-client::state; the shell owns server profiles, credentials, and the W3ServerSet. State is shared by protocol, not by memory (separate wasm modules cannot share a store without re-serializing every event in-page).frontendDist; Leptos is an officially documented Tauri path.ADR-0018 —
apps/is a separate Cargo workspace (docs/adr/0018-apps-workspace.md): own lockfile/profile/.cargocfg, path deps onqq-protocol/qq-clientwithfeatures = ["wasm"], own CI job; root gates untouched.Spike (
benchmarks/wasm-ui-spike/, its own workspace, not a root member):baseline(no framework,innerHTML),leptos(0.8.20),dioxus(0.7.10) share onespike-commoncrate — authenticated/v1/health,ServerConnection,SessionClient, snapshot,fetchSSE with reconnect,SessionStorereducer, rAF frame monitor — so the candidates differ only in rendering.host/index.htmlis a framework-free ES-module page that loads both as remotes.fake_model.pyis a deterministic OpenAI-compatible streamer;drive.shcreates sessions through the realqq serveHTTP API;run_browser.pymeasures in Chrome over CDP. README has the reproduction steps.Evidence summary (details and caveats in the ADR)
import/ init / mountUnmountHandle(supported)web::runfuture (undocumented)Streaming and remote loading do not separate the candidates; bundle size, glue size, a supported unmount, and the documented Tauri path do. Dioxus remains a viable override with the same contract.
Founder decision requested: accept ADR-0017 as recommended (Leptos), or override to Dioxus. U1 proceeds on whichever is chosen; nothing else in the ADR changes.
Deviations noted in the ledger: the plan attached the spike to W1, which shipped without it, so this is its own PR ahead of U1. Branch name follows the workstream's requested
devin/<timestamp>-<slug>rather thanAGENTS.md'stype/prefix.Linear: ENG-
Slice: docs/plans/multi-surface-clients.md#u1 (ADR-0017, ADR-0018)
Screenshots
Leptos candidate, live against
qq serve, focused session streaming (3 sessions, 300 deltas/s):Dioxus candidate, same run:
Framework-free host loading both remotes side by side through the
mount()contract, with load timings:After
unmount()on both (0 nodes left in the slots):How verified
Root workspace: docs and
.gitignoreonly, no Rust changed.cargo fmt --all -- --check(root)cargo fmt --all -- --check;cargo clippy --workspace --target wasm32-unknown-unknown -- -D warningsclean./measure.sh(Trunk 0.21.14, wasm-optversion_123, Rust 1.97.1) produced the size table;qq serve --bind 127.0.0.1:9077 --allow-origin http://127.0.0.1:8090withfake/streamrouted tofake_model.py;python3 run_browser.py --workspace ~/spike-ws --sessions 3and two--sessions 6stress runs at 2000 deltas/s in Chrome; all three candidates reachedconn live, rendered grouped sessions and the focused transcript, and the host mounted/unmounted both remotes with 0 residual nodes.Impact
docs/adr/0017-client-ui-stack.md,docs/adr/0018-apps-workspace.md,docs/adr/README.md,docs/plans/progress/root.md(allocation rows),docs/plans/progress/multi-surface-clients.md(entry 2026-09-24).Link to Devin session: https://app.devin.ai/sessions/65d1540c06e44446b555b398b659de78
Open in Devin Desktop: https://app.devin.ai/desktop/session/65d1540c06e44446b555b398b659de78?variant=devin
Requested by: @integrate-your-mind