Skip to content

Add the IOExtend browser tools site source - #13

Draft
mahach666 wants to merge 8 commits into
mainfrom
codex/ioextend-web-browser-tools
Draft

mahach666 wants to merge 8 commits into
mainfrom
codex/ioextend-web-browser-tools

Conversation

@mahach666

@mahach666 mahach666 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Add the IOExtend browser tools under site/, including the branded UI and versioned static assets.
  • Open RVT and NWC locally in the browser. Use the browser's private file storage for paged RVT previews.
  • Export models and create Revit copies for earlier versions. Detect the source release from metadata and include reduced year profiles, their generator, and conversion reports.
  • Show progress by stage, measured counts, elapsed time, and batch progress. Report WebAssembly memory errors and document the larger export heap build.
  • Add eleven locales with a browser-driven Auto mode and manual selection. Use the localized IOViewer for standalone RVT and NWC HTML downloads.
  • Include source build instructions, design notes, and browser smoke tests.

The tested local-page build uses IOViewer #81, IOViewer #82, and RvtIO #308. The Revit downgrade and NwcIO source revisions are recorded in the site README. This draft preserves the source for review before a Pages setup.

Validation

  • Built the site from this checkout with dotnet publish, using the IOViewer and RvtIO source references.
  • Ran the warm-cache and localization smoke tests from this checkout against the tested local site.
  • The local browser build passed RVT and NWC opening, extraction and cancellation checks, export downloads, and Revit downgrade with reports.
  • Verified the language selection on embedded RVT and NWC viewers and in offline HTML exports.
  • Inspected the reduced Revit profiles. Their compound files contain the release and build metadata, archive header, and class table.

RvtIO main comparison

The comparative build profile can compile against RvtIO without the scratch API from #308. It uses the guarded browser post-processing from RvtIO #310.

On the public structural Revit sample, Compact JSON dropped from 88.6 s to 47.5 s and matched byte for byte. The first browser frame took 33.4 s on the scratch build and 45.9 s on the new candidate. Both rendered a scene with 484 instances and 84,494 triangles. The default build retains the scratch API from #308 for large files.

Threaded viewer experiment

Adds an opt-in .NET 10 AOT viewer profile using shared WebAssembly memory and the bounded decode batches in IOExtend/RvtIO#311. It preserves the single-threaded build as the default.

The threaded build uses either COOP/COEP from the static host or a scoped Service Worker. Chromium rendered the public structural sample using both configurations. The sandboxed render frame receives the self-contained viewer locally when Service Worker isolation is active. The scene packages compare byte for byte. The existing single-threaded browser suite passed with the updated web assets.

A repeat run exposed a WebAssembly bounds trap in the initial threaded AOT candidate. Treat the threaded profile as experimental while browser stability and throughput are validated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant