Files
Docwell/Spikes/yrs-wasm/fixtures/package.json
T
tajniak81andClaude Opus 5.5 4cb313aa95 Spike yrs.wasm under wazero for Yjs compaction (ADR-3: go)
Compile yrs 0.28 to wasm32-wasip1 and run it in Go with wazero to compact
Yjs update logs and extract ProseMirror JSON and plain text. Fixtures come
from real Yjs, and y-prosemirror's output is the oracle.

- Output matches y-prosemirror on every fixture; Yjs loads yrs snapshots
- Snapshot + 200 updates compacts in 0.6-47 ms; WebAssembly costs at most 2x native
- merge_updates is quadratic, so the server must compact incrementally

Results and design rules are recorded in docs/adr/0003-yrs-wasm-wazero.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:29:27 +01:00

15 lines
332 B
JSON

{
"name": "yrs-wasm-fixtures",
"private": true,
"license": "AGPL-3.0-or-later",
"type": "module",
"dependencies": {
"prosemirror-model": "^1.25.12",
"prosemirror-state": "^1.4.4",
"prosemirror-transform": "^1.12.4",
"prosemirror-view": "^1.42.8",
"y-prosemirror": "^1.3.7",
"yjs": "^13.6.33"
}
}