
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
aurelia-bodylight-plugin
Advanced tools
Web components of the Bodylight library is a suite of custom elements enhancing HTML. It is distributed either as
Web components contains:
Modelica model is exported to FMU using FMI standard and Bodylight FMU Compiler can convert FMU with source codes and solver into WebAssembly script.This plugin is part of broader tools to enable in-browser simulation using modern web technologies: Web Assembly, HTML, Javascript (ECMAScript6). In order to build web simulator:
bdl-fmi component, and modelDescription.xml - standard FMU description with variable references.bdl-adobe component.We recommend to use aurelia framework to build web application with Bodylight Web components.
Follow Aurelia doc's how to prepare your project and install aurelia-bodylight-plugin by npm command-line:
npm i aurelia-bodylight-plugin
In your main.js file enable the plugin by aurelia.use.plugin(PLATFORM.moduleName('aurelia-bodylight-plugin')), so it may look like:
//main.js
import {PLATFORM} from 'aurelia-pal';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.plugin(PLATFORM.moduleName('aurelia-bodylight-plugin'))
aurelia.start().then(() => {
aurelia.setRoot(PLATFORM.moduleName('app'));
});
}
Bodylight web components are available in any template, use them without bdl- prefix:
<template>
<range id="id1" min="40" max="180" default="60" title="Heart rate"></range>
<fmi ...></fmi>
<chartjs ...></chartjs>
...
</template>
For further doc refer docs/
To Build and test
au build-plugin - builds plugin - outpu to distau build - builds dev-app with documentation - output to /scriptau test - execute unit testsTo publish NPM package version NPM aurelia-bodylight-plugin
npm login - logs into NPM - need to be contributor fornp - UI for release the new version (will ask for patch,minor or major version)To add a new web component:
export function configure(aurelia) {
aurelia.use
...
//use this routine to register HTML only component as web component
.globalResources(PLATFORM.moduleName('components/mycomponent.html'))
//use this routine to register component (JS and HTML) as web component
.globalResources(PLATFORM.moduleName('components/mycomponent'))
...
docstestau build-plugin and build dev-app with docs using au build and see docs/index.htmlNPM packages aurelia plugin: npm i aurelia-bodylight-plugin standard web components: npm i bodylight-componentsnpm -i aurelia-bodylight-plugin
\patch directoryFAQs
Bodylight plugin for Aurelia framework
The npm package aurelia-bodylight-plugin receives a total of 43 weekly downloads. As such, aurelia-bodylight-plugin popularity was classified as not popular.
We found that aurelia-bodylight-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.