Skip to main content
When you drop the CDN build into a page with a data-src attribute, the library auto-mounts a viewer for you — no explicit new ScreenJSONUI(...) call needed.

Minimum viable embed

All supported attributes

Every attribute is optional unless noted. The auto-mount only fires for script tags whose src matches *screenjson* and that carry data-src.

Query parameters

Alternatively, a ?src=<url> parameter on the current page URL is also picked up if no src is supplied in config. Useful for embedding a viewer on a dedicated page: