De-product: remove WelcomeTour(+slides), AuthButton/session UI,
Support(NSF)/Papers/Developers popovers, Lab link, UploadPluginModal
trigger; plugin protocol stays live via API. Neutral index.html
title/meta + PWA manifest. Header = name/tagline/env chip/live
toggle/theme.
Anonymous mode (double-blind): lib/anon.ts. VITE_ANON=1 build folds
identifying strings out of the bundle (EvidenceQ codename, no paper
bibtex, no GMU theme, vite plugin rewrites index.html+manifest);
?anon=1 runtime fallback hides the same surfaces on normal builds.
Audit: zero user-visible identifying strings in the anon dist.
Figure export with embedded provenance: lib/figureExport.ts + camera
buttons on canvas toolbar / Multiverse header / Evidence header.
True-SVG for svg targets, foreignObject-SVG + 2.5x PNG for HTML
composites; paper transform (white bg, fonts x1.25, chrome stripped);
SVG <metadata> + .provenance.json carry app version, export time,
run_ids/root_seeds/config_hashes of every visible run and t…
Drag-to-insert + plugin lifecycle UX fixes
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
dca3016
Drag-to-insert (new feature)
When the user drags a block from the palette and the cursor passes
within ~60 flow-units of an existing edge, that edge lights up with
an accent-coloured dashed animation. Dropping the block onto a lit
edge splices it in: the old edge is removed and replaced by two new
edges (upstream → new node, new node → downstream).
Implementation:
- New _findClosestEdge_ helper does line-segment-distance hit testing
against every edge's source-right-center → target-left-center
approximation. Threshold is in flow coordinates so it scales with
zoom. Falls back to default 200x56 node footprint when React Flow
hasn't measured yet.
- _onDragOver_ checks for the palette's `application/reactflow` data
type and computes the closest edge each frame, setting dropTargetEdgeId.
- _onDragLeave_ clears the target so the dashed highlight doesn't
linger if the user abandons the drag outside the canvas.
- _onDrop_ captures dropTargetEdgeId, clears it, then either splices…
What this lets users do
- Anyone can click "Sign in" in the top bar and authenticate with their
Hugging Face account (OpenID Connect via the HF OAuth flow). No
account creation, no password management on our side.
- Each signed-in user gets their own private namespace for uploaded
plugins. Other users (and other browsers from the same person)
cannot see them.
- Plugins uploaded while signed in are mirrored to a private HF
Dataset repo (qudastudio/quda-user-data) so they survive container
restarts and follow the user across devices.
- Guest (anonymous) mode is fully preserved: visitors can still drop
a .zip without signing in; those plugins continue to live in /tmp
and are per-browser, exactly as before.
Architecture
Browser ──cookie──▶ FastAPI ──HfApi──▶ HF Dataset (private)
│
└──▶ /tmp (volatile cache)
Identity = session cookie's hf_<username> (when signed in)
∥ anon UUID query par…
Bundled example plugins + UX polish from second audit pass
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
ef8bb5f
Lets users try the plugin upload flow end-to-end without writing one
from scratch: the Upload modal now shows a "Try with a sample" section
that fetches /api/plugins/examples and offers per-example Install +
.zip download buttons.
Backend:
- New read-only GET /api/plugins/examples returns minimal metadata
parsed from each bundled zip's manifest.json (label, family, tagline,
color, size). Catalog is empty if the examples dir is missing.
- New read-only GET /api/plugins/examples/{name}.zip returns the raw
zip bytes. Name is constrained to `^[a-z][a-z0-9_]{0,30}$`; resolved
path must stay inside the examples dir (defence in depth against
symlink shenanigans). 400 on bad name, 404 on missing or escaped path.
- manifest.json read inside the zip capped at 64 KB so a malformed
bundled example can't allocate unboundedly.
- Defensive comment about route ordering vs the path-param DELETE.
- Dockerfile COPYs example_plugins/ into the runtime image so the
endpoints have content to s…
Plugin protocol Phase 3: frontend foundation
Yuchen Yuan
10b580f
* lib/userId.ts — anonymous browser ID stored in localStorage. Uses
crypto.getRandomValues for a 16-byte hex string; falls back to
Math.random if Web Crypto is unavailable. Matches the backend
regex [a-zA-Z0-9_-]{8,64}.
* lib/api.ts — three new endpoints (listPlugins / uploadPlugin /
deletePlugin) and a PluginManifest type. RunRequest gains an
optional user_id field so workflow runs can address the right
user's plugins.
* lib/store.ts — Zustand state for the current user's plugin list
(refreshed on App boot, after upload, and after delete).
* App.tsx — on boot, fetch this browser's plugin manifests in
parallel with the health probe. Silent failure (just no plugins
shown if /api/plugins is unreachable).
* FlowCanvas.tsx — include getUserId() in the run-stream request
payload so the backend can dispatch unknown node types to this
user's plugins.
No UI for upload yet — that's Phase 4. After this commit, refresh
the live Space and a plugin uploaded directly via curl …