Skip to content
Edit this page

Static application cleanup review

Review date: 2026-11-30. This review follows removal of the hosted Python API in 0.16.0. The deployment remains a static application at the GitHub Pages root, with documentation under /docs/.

Cleanup and dependencies

Removed the unused analytics integration and its build settings, server-shaped error fields and traceback controls, repeated repository release lookups, and unused pytest-xdist/execnet development dependencies. Updated active development and architecture instructions that still described the removed API, containers and proxy.

Frontend dependencies and immutable workflow action pins are current. Development uses Node 26 LTS, the Node 26 TypeScript configuration uv 0.13.10 and Python 3.15 in CI. The locked Python tools and all 125 helper/tool tests also pass on Python 3.15.2. TypeScript intentionally remains on 6.0.3 because Vue tooling does not yet support TypeScript 7. Dependency lifecycle scripts are disabled. Development and preview servers bind to loopback; obsolete base-path environment overrides are removed. Python runtime dependencies remain empty; pymetadata is unchanged.

Native pins retain the latest reviewed compatible implementations, including libSBML 5.21.2, Antimony 3.3.0 and Emscripten 7.0.1. Expat retains the reviewed security revision beyond its latest release. SBMLNetwork retains the newer reviewed revision needed for complete-model Antimony rather than downgrading to its older release tag. Generated artifacts are verified against source and hashes.

Security changes

  • Public URL loading accepts credential-free HTTPS DNS hostnames and rejects IP literals, local names and redirects before model admission. Downloads omit credentials and referrers, have deadlines and count actual streamed bytes. CORS failures offer a direct file import fallback.
  • Annotation links permit only HTTP(S) without credentials. Provider recognition uses exact hostname boundaries and bounded identifier syntax. Untrusted IRIs cannot become executable links.
  • The pure Rust parser now has an explicit 1 GiB WASM heap ceiling. Reader and graph preparation jobs have 60-second deadlines. Cancelled or expired jobs release their workers. Existing validation and Antimony limits and partial validation results are preserved.
  • Standalone source payloads validate metadata and compressed size, bound decompressed output before creating a file, clear inert payload nodes and display startup failures. The Python helper checks final companion archive size too.
  • Releases require exact matching semantic versions, reviewed notes and protected develop ancestry. Browser runtime parity becomes a required branch check. Tag creation is restricted to administrators, existing tags remain immutable, and the PyPI environment accepts release-shaped tags only.

Fresh npm and Python audits report zero vulnerabilities. RustSec reports zero vulnerabilities or warnings in the 79-package native lockfile. OSV reports no published records for the exact reviewed Rust and native Git revisions. These are database results, not proof that code is vulnerability-free. CI repeats source and dependency checks and retains audit artifacts.

Performance changes

Portable startup no longer inflates the optional validation and Antimony libraries. Their combined uncompressed WASM size is 9.12 MB. Browser regression tests verify that only the report parser loads initially, validation loads its own module on demand and Antimony loads only on export. Compressed bytes remain available for offline use. The loader releases consumed asset and source DOM text and transient expanded buffers.

A local three-run cold Chromium comparison used the same Repressilator report, offline networking and software WebGL. Median time until the graph was ready changed from 4.36 s to 3.57 s; observed main-thread long-task time changed from 3.37 s to 2.77 s. After forced garbage collection, retained backing storage changed from 20.30 MB to 3.03 MB, while JavaScript heap use increased from 14.70 MB to 19.58 MB. Combined JavaScript heap and backing storage decreased from approximately 35.0 MB to 22.6 MB. These measurements describe this small model on this machine, not a guarantee for large graphs. Concurrent type checking may affect timings; the allocation reduction and lazy-module regression checks are the stronger evidence.

Public URL downloads no longer wait for the example catalog unless their source host has a known mirror. Example cards use the release snapshot already loaded by the catalog. Catalog downloads share one bounded promise.

Network preparation removes a redundant full structured clone before postMessage. Cached typed arrays are copied only where transferring ownership requires it. One worker reuses the admitted network source across projection changes, with only the latest pending request retained. Canonical row indexes replace full-table scans during graph table selection. Existing graph scopes, windowed tables and equation virtualization remain intact.

Boundaries and future profiling

A static browser cannot inspect DNS answers or pin the address connected by Fetch. A public-looking hostname may resolve privately. Browser local-network restrictions and CORS provide additional boundaries; local models should use file selection. Redirecting download links require a direct CORS-compatible URL or a local file.

The 1 GiB ceiling covers each WASM heap, not JavaScript source buffers, graph objects or GPU allocations. Resource limits reduce exhaustion but cannot make arbitrary input inexpensive. Selection styling in the generated graph viewer and equation row measurements remain candidates for targeted profiling on very large graphs. They should change in their upstream source only after measurements show a bottleneck.

GitHub Pages does not provide application-controlled HTTP response headers or a server-side URL proxy. The application uses a restrictive meta CSP, with HTTPS connections available for user-chosen public models. Standalone reports restrict connections to named public providers. Cross-origin isolation and arbitrary CORS workarounds would require a different hosting design.

Domain migration is a separate manual operation. Follow the GitHub Pages cutover guide. No DNS or shared production server changes are part of this cleanup.