Loading a model¶
Every report is built in the browser. The home page opens a file, downloads a URL or reads pasted source. The examples page supplies versioned public models. The Python helper writes a portable HTML file containing the same application and an explicitly supplied model.
The three inputs¶
Open file reads a selected file on your device. Dragging a file onto the input works too. The file stays in the tab and is reused for validation and exports. Reloading an ordinary file report loses that in-memory source; a portable HTML report embeds it and can be reopened.
URL fetches an HTTP(S) model directly from its source with credentials omitted. A URL must permit cross-origin browser requests through CORS. A page URL or an HTML download page is not a model file. If a host blocks browser access, download its model and open the file instead. URL arguments and no-cors cannot bypass that restriction. Registered research releases and Physiome examples have checksum-verified static copies so their original hosts' CORS policies do not prevent exploration.
Paste reads SBML or CellML XML directly. The source is retained in tab memory for the report, validation and exports. No file or pasted content is submitted to an application service.
The accepted formats¶
The shared reader accepts SBML Levels 1, 2 and 3, CellML 1.0, 1.1 and 2.0, gzip-compressed models, and COMBINE/OMEX archives with a manifest. Archives retain their entries and supplied comp dependencies. No external comp document or CellML import is fetched implicitly.
The source budget is 100 MB, including total uncompressed archive contents. Archives have at most 1,000 members and bounded compression ratios. Equation generation and validation use the same 10,000-element comp expansion budget. A model can still be inspected when analysis exceeds its budget; the affected view states what was skipped.
The examples¶
Start with the Repressilator, then browse BioModels, public PBPK releases, tissue models and CellML models from the Physiome collection. Search and filter by category, format and SBML package. Research cards retain their repository, documentation, release and original download links. Static model copies carry checksums, source URLs and license attribution.
Each static build includes an indexed catalog snapshot. The default branch deployment refreshes stable public model releases daily; tagged release builds retain their committed snapshot. Refreshing a repository release creates a new indexed asset and checksum rather than changing the source beneath an open report. Validation and exports always reuse the bytes already loaded in the tab.
Sharing a report¶
Static report links use hash routes, which work on GitHub Pages without server rewrite rules:
https://matthiaskoenig.github.io/sbml4humans/#/examples/BIOMD0000000012
https://matthiaskoenig.github.io/sbml4humans/#/report?url=https%3A%2F%2Fexample.org%2Fmodel.xml
The selected entry, model, object and view can be included in the route. The report URL describes the exploration parameters. Anyone opening a public model link downloads its current contents. An already open report keeps its original bytes for consistent validation and exports. Addresses with queries, fragments or credentials are excluded from stored history and public report links.
Links from other tools¶
Other tools can open a public, CORS-compatible model URL through #/report?url=<encoded URL>, link a bundled example or create a portable report with the Python helper. There is no upload endpoint or temporary hosted upload store. For a private or local model, share the portable HTML file or let the user select the original model file.
When a model cannot be read¶
The application shows admission, parsing and conversion failures directly. A browser never retries a failed local parse by uploading the source. Canceling a load terminates its worker; opening another source cancels the earlier operation. Validation and Antimony conversion run in separate workers with 60-second deadlines and 1 GiB WASM heap ceilings. Completed validation entries remain visible if a later entry exceeds its budget.
A CORS failure means the browser could not read the remote response. An invalid XML or archive message concerns the source itself. An analysis warning concerns the affected calculation and does not discard the rest of the report.
CellML models¶
The released sbml2cellml Rust converter adapts supported CellML models to SBML inside the browser worker. Conversion provenance and warnings remain visible. Validation and exports apply to the converted SBML. CellML imports require prior flattening, and RDF annotations and sidecar metadata are not transferred by this converter. Unsupported mathematics is reported explicitly.