
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@bpmn-io/diagram-js-ui
Advanced tools
[](https://github.com/bpmn-io/diagram-js-ui/actions/workflows/CI.yml)
A wrapper around htm/preact
that exposes components for building reactive HTML widgets in the context of diagram-js and extensions.
This module is available through diagram-js/lib/ui
. Use it to create and mount your Preact components and render them through the htm
utility.
// MyService.js
import { render, html } from 'diagram-js/lib/ui';
import MyCounter from './MyCounter';
export default function MyService() {
const parentElement = document.createElement('div');
render(html`<${MyCounter} />`, parentElement);
}
// MyCounter.js
import { useState, html } from 'diagram-js/lib/ui';
export default function MyCounter(props) {
const counter = useState(0);
return html`
<div>Counter: ${counter}</div>
`;
}
# install all dependencies
npm install
# lint and build the library
npm run all
MIT
0.2.3
FIX
: correct type exportsFIX
: turn into an actual moduleCHORE
: add package exports
declarationFAQs
[](https://github.com/bpmn-io/diagram-js-ui/actions/workflows/CI.yml)
The npm package @bpmn-io/diagram-js-ui receives a total of 62,527 weekly downloads. As such, @bpmn-io/diagram-js-ui popularity was classified as popular.
We found that @bpmn-io/diagram-js-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.