Red Marble AIESM Registry

Documentation

ESM projects

Install the tool

dotnet tool install --global Universal.EcmaScriptModule.Tool

Configure the source

Add this to Esm.Config beside your project or in a parent directory.

<configuration>
  <packageSources>
    <add key="redmarbleai" value="https://esm.redmarble.ai/v1/index.json" />
  </packageSources>
</configuration>

Restore packages

Copy a PackageReference from the package page into your .esmproj.

esm restore Application.esmproj --use-lock-file
esm import-map Application.esmproj --output wwwroot/importmap.json --locked-mode

Commit esm.lock.json. Embed the import map before your module scripts.