🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@mml-io/mml-web-client

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mml-io/mml-web-client

latest
npmnpm
Version
0.23.0
Version published
Maintainers
2
Created
Source

MML Web Client

This package contains a basic standalone client as a single JavaScript bundle that can be included in the source of a webpage to render MML documents.

Note

This bundle is currently quite heavy as it includes both the THREE.js and PlayCanvas renderers.

Usage

The query parameters of the <script/> tag that the script is included with can be used to configure a remote address of a document to load into the page; otherwise the client configures the main window as the source of content and any tags on the page are used as the content.

Example Usage for a Remote Document

E.g.

<script src="/path/to/this/package/build/index.js?url=https://public.mml.io/rgb-cubes.html"></script>

Example Usage for Inline Content

<script src="/path/to/this/package/build/index.js"></script>
<m-group>
  <m-cube x="1" color="red"></m-cube>
  <m-cube x="2" color="green"></m-cube>
  <m-cube x="3" color="blue"></m-cube>
</m-group>

FAQs

Package last updated on 29 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts