Momentic’s result viewer is a static JavaScript bundle that can render any Momentic run-result zip. You can host it yourself on any static host instead of uploading runs to the dashboard. All you need is somewhere to serve the bundle and somewhere reachable to store the zipped run results. The example below uses AWS S3 for both, but any static host works. The bundle is framework-agnostic and the zips just need to be reachable over HTTP with CORS.Documentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
1. Host the static JavaScript bundle
Create a bundle-hosting bucket
Create a publicly readable bucket following the S3 static website documentation.Upload the run-viewer-static bundle
Upload the contents of the run-viewer-static directory from the Momentic npm
package. The current bundle is available on the
momentic npm page, or from your
project at node_modules/momentic/run-viewer-static.
The bucket should contain:
2. Host the run-result zips
Create a results bucket
The bucket needs to be reachable from wherever the bundle is hosted. For this example a publicly readable bucket works.Upload the test-results directory
CLI runs write to./test-results by default (override with
--output-dir). The directory contains:
metadata.json: metadata for the full run groupruns/<run_id>.zip: one zip per individual run
runs/*.zip to the results bucket.
Allow CORS from the viewer origin
Add a CORS policy that allowsGET and HEAD from the bundle-hosting bucket’s
URL (replace hosted-run-viewer with your bundle bucket name):
3. View a run
Navigate to the viewer’sindex.html with a zipUrl query parameter pointing
at the run zip: