
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
⚠️ Deprecation notice ⚠️
marker.js 3 is out now. This means that while marker.js 2 will be supported for some time, all future development will be focused on version 3 and beyond. Get the most current version information on markerjs.com
marker.js 2 is a JavaScript browser library to enable image annotation in your web applications. Add marker.js 2 to your web app and instantly enable users to annotate and mark up images. You can save, share or otherwise process the results.
For a more detailed "Getting started" and other docs and tutorials, please refer to the official documentation.
npm install markerjs2
or
yarn add markerjs2
To add image annotation to your web application follow these 3 easy steps:
markerjs2.MarkerArea by passing a target image reference to the constructor.render event.show() method.Here's a simple example:
// skip this line if you are importing markerjs2 into the global space via the script tag
import * as markerjs2 from 'markerjs2';
// create an instance of MarkerArea and pass the target image reference as a parameter
let markerArea = new markerjs2.MarkerArea(document.getElementById('myimg'));
// register an event listener for when user clicks OK/save in the marker.js UI
markerArea.addEventListener('render', (event) => {
// we are setting the markup result to replace our original image on the page
// but you can set a different image or upload it to your server
document.getElementById('myimg').src = event.dataUrl;
});
// finally, call the show() method and marker.js UI opens
markerArea.show();
Check out marker.js 2 demos for various usage examples.
For a more detailed "Getting started" and other docs and tutorials, please refer to the official documentation.
marker.js 2 is using icons from Material Design Icons for its toolbar.
Linkware (see LICENSE for details) - the UI displays a small link back to the marker.js 2 website which should be retained.
Alternative licenses are available through the marker.js 2 website.
[2.32.7] - 2025-09-28
FAQs
JavaScript image annotation
The npm package markerjs2 receives a total of 127,038 weekly downloads. As such, markerjs2 popularity was classified as popular.
We found that markerjs2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.