DEV Community

Vilius
Vilius

Posted on

Seven practical SPFx WebAssembly samples for local data work

SharePoint Framework samples usually stop at the web part. This repository focuses on the harder browser boundary: what can safely happen locally before SharePoint is involved?

SPFx WASM samples now includes seven runnable examples:

  • image optimization and explicit upload
  • worker-based smart upload preparation
  • SQLite-WASM cache and local data-plane experiment
  • DuckDB-WASM analytics
  • duplicate detection
  • local OCR

The benefit is practical: expensive or privacy-sensitive work can happen in the browser, with Web Workers, explicit fallbacks, and visible limits instead of hidden magic. The samples also make packaging, worker RPC contracts, localization, accessibility, and error paths inspectable.

Each workspace has tests, builds, and SharePoint solution packaging. The repository does not pretend local tests prove tenant CSP, permissions, OPFS durability, or real SharePoint behavior—those remain deployment checks.

Contributions from humans and AI agents are welcome. AGENTS.md and CONTRIBUTING.md explain how to start from a fresh clone and submit a focused, evidence-backed change.

Top comments (0)