# markerjs-live

> Live player for image annotations created with marker.js 2

Latest version **1.2.1** (published 2023-09-30) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install markerjs-live
pnpm add markerjs-live
yarn add markerjs-live
bun add markerjs-live
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2023-09-30 |
| First published | 2021-08-05 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 526 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Alan Mendelevich |
| Maintainers | ailon |
| Keywords | annotate, mark, highlight, image, photo, graphics, javascript, typescript, comment |

## Links

- npm: https://www.npmjs.com/package/markerjs-live
- Repository: https://github.com/ailon/markerjs-live
- Homepage: https://github.com/ailon/markerjs-live#readme
- Issues: https://github.com/ailon/markerjs-live/issues
- npm.io page: https://npm.io/package/markerjs-live

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2023-09-30
- 1.2.0 — 2023-09-05
- 1.1.1 — 2023-04-25
- 1.1.0 — 2023-03-06
- 1.0.2 — 2021-10-13
- 1.0.1 — 2021-10-08
- 1.0.0 — 2021-09-20
- 1.0.0-beta.1 — 2021-08-26
- 1.0.0-beta.0 — 2021-08-13
- 1.0.0-alpha.4 — 2021-08-10
- 1.0.0-alpha.3 — 2021-08-06
- 1.0.0-alpha.2 — 2021-08-06
- 1.0.0-alpha.1 — 2021-08-05
- 1.0.0-alpha.0 — 2021-08-05

## README

# marker.js Live &mdash; Display interactive image annotations

**[marker.js Live]** is a JavaScript library for overlaying dynamic interactive annotations on top of images. 

[marker.js Live] is a companion library for [marker.js 2]. While **marker.js 2** enables users to annotate images it produces both a static representation of the annotated image as well as a configuration dataset for future editing of the annotations. [marker.js Live] takes that configuration and displays it dynamically on top of original (untouched) images. This enables responsiveness, interactivity, and other use-cases beyond what static annotations could ever offer.

**marker.js Live** is extensible and enables you to pick and choose the [plugins](https://markerjs.com/docs/markerjs-live/plugins) to add just the functionality you need for your project.

## Installation

```
npm install markerjs-live
```

or 

```
yarn add markerjs-live
```

## Usage

To display dynamic image annotations in your project, first, annotate your images using [marker.js 2], grab the "state" configuration of the annotations, and then follow these 2 easy steps:

1. Create an instance of `mjslive.MarkerView` passing a target image reference to the constructor.
2. Call its `show()` method passing your annotation configuration (marker.js 2 state) to it.

That's it!

Here's a simple example:

```js
// skip this line if you are importing marker.js Live into the global space via the script tag
import * as mjslive from 'markerjs-live';

// create an instance of MarkerView and pass the target image reference as a parameter
const markerView = new mjslive.MarkerView(target);

// call the show() method and pass your annotation configuration (created with marker.js 2) as a parameter
markerView.show(markerState);
```

Obviously, there's much more [marker.js Live] can do: use the range of events to add your own custom functionality based on lifecycle and interactions, or just utilize the pre-made plugins to extend the core features, or create your own plugins and share them with the community.

For these and other uses please refer to the [marker.js Live documentation](https://markerjs.com/docs/markerjs-live/getting-started).

## Demos
Check out [marker.js Live demos](https://markerjs.com/demos/markerjs-live/all-defaults/) for various usage examples.

## More docs and tutorials
For a more detailed "Getting started" and other docs and tutorials, please refer to 
the [official documentation](https://markerjs.com/docs/markerjs-live/getting-started).


## License
Linkware (see [LICENSE](https://github.com/ailon/markerjs-live/blob/master/LICENSE) for details) - the UI displays a small link back to the marker.js website which should be retained.

Alternative licenses are available through the [marker.js website](https://markerjs.com).

[marker.js Live]: https://markerjs.com/products/markerjs-live
[marker.js 2]: https://markerjs.com/products/markerjs

---
_Source: https://npm.io/package/markerjs-live · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
