Spaces and pages: - Spaces inside workspaces, open or private, with admin/editor/commenter/viewer roles that cascade from the workspace role (rules in internal/access) - Page tree per space with fractional position keys, move with cycle checks, trash that hides whole subtrees, restore and permanent delete - OpenAPI, TypeScript client, and web app sidebar tree with drag-and-drop, page, space, trash and space settings views (EN + PL) Design system: - Tokens, type scale, radii and shadows from the design kit in @docwell/ui/theme.css; Inter, Source Serif 4 and JetBrains Mono bundled - Vue ports of Button, TextField, Badge, Callout, Icon, Breadcrumbs, SlashMenu and PageTreeItem, plus Logo; favicons and web manifest - Web app and admin panel restyled on the new tokens, in light and dark Also: fix the Vite dev server crashing on /config.json, and stop tracking the local Design/ and docs/ folders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
982 B
982 B
Spike: yrs.wasm under wazero
Phase 0 go/no-go spike for ADR-3 (yrs compiled to WebAssembly under wazero). The answer was go.
This folder is outside go.work and the npm workspaces, so CI doesn't build it.
Requirements: Rust with the wasm32-wasip1 target (rustup target add wasm32-wasip1), Go 1.26+, Node 22+.
# 1. Build yrs.wasm and copy it next to the Go host
sh build.sh
# 2. Generate the Yjs fixtures (from fixtures/)
npm install && node generate.mjs
# 3. Tests and benchmarks (from go/; also writes the yrs snapshots that verify.mjs reads)
GOWORK=off go test -v ./...
GOWORK=off go test -run '^$' -bench . -benchtime=2s ./...
YRS_TIMING=1 GOWORK=off go test -run TestTiming -v ./... # shows merge going quadratic
# 4. Check that Yjs loads what yrs wrote, and time Yjs itself (from fixtures/)
node verify.mjs
# 5. Native yrs timings, to compare against WebAssembly (from rust/)
cargo run --release --example native -- ../fixtures/data/medium.updates