mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 04:27:11 +00:00
Build a minimal zero-dependency PWA under examples/pwa-loader/ that decodes RVQS cognitive seeds and .rvf files in the browser: - index.html: single-page app with file input, QR scanner button, decoded seed info display, evidence viewer, and dark/light theme - app.js: WASM module loading with JS fallback, RVQS 64-byte header parsing (matching rvf-types binary layout), TLV manifest decoder, RVF segment parser using WASM exports, QR camera scanner via getUserMedia + BarcodeDetector API, file drag-and-drop handler - style.css: CSS variables for dark/light themes, mobile-first responsive layout, monospace hex display - manifest.json: PWA manifest for standalone install - sw.js: cache-first service worker for offline support The WASM path is configurable via window.RVF_WASM_PATH (default ./rvf_wasm_bg.wasm). Gracefully falls back to pure JS parsing when WASM is unavailable. No external CDN dependencies. https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G |
||
|---|---|---|
| .. | ||
| app.js | ||
| index.html | ||
| manifest.json | ||
| style.css | ||
| sw.js | ||