{"id":13810540,"url":"https://github.com/ailon/markerjs2","last_synced_at":"2025-05-15T16:06:37.582Z","repository":{"id":39574166,"uuid":"290756580","full_name":"ailon/markerjs2","owner":"ailon","description":"Add image annotation to your web apps.","archived":false,"fork":false,"pushed_at":"2025-03-19T07:10:53.000Z","size":3198,"stargazers_count":153,"open_issues_count":3,"forks_count":39,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-11T13:48:58.826Z","etag":null,"topics":["image-manipulation","library","svg"],"latest_commit_sha":null,"homepage":"https://markerjs.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ailon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-27T11:24:11.000Z","updated_at":"2025-05-03T14:31:52.000Z","dependencies_parsed_at":"2023-01-21T23:05:09.987Z","dependency_job_id":"2080b8eb-9064-4bed-8cca-65e7d6116297","html_url":"https://github.com/ailon/markerjs2","commit_stats":{"total_commits":387,"total_committers":1,"mean_commits":387.0,"dds":0.0,"last_synced_commit":"a765e15c81171bcdd44b90bde8dd36495af29635"},"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailon%2Fmarkerjs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailon%2Fmarkerjs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailon%2Fmarkerjs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailon%2Fmarkerjs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ailon","download_url":"https://codeload.github.com/ailon/markerjs2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374471,"owners_count":22060611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-manipulation","library","svg"],"created_at":"2024-08-04T02:00:58.611Z","updated_at":"2025-05-15T16:06:37.552Z","avatar_url":"https://github.com/ailon.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# marker.js 2 \u0026mdash; Add image annotation to your web apps\n\n\u003e ⚠️ **Deprecation notice** ⚠️\n\u003e\n\u003e **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](https://markerjs.com)\n\nmarker.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.\n\n\u003e For a more detailed \"Getting started\" and other docs and tutorials, please refer to the [official documentation](https://markerjs.com/docs).\n\n## Installation\n\n```\nnpm install markerjs2\n```\n\nor\n\n```\nyarn add markerjs2\n```\n\n## Usage\n\nTo add image annotation to your web application follow these 3 easy steps:\n\n1. Create an instance of `markerjs2.MarkerArea` by passing a target image reference to the constructor.\n2. Set an event handler for `render` event.\n3. Call the `show()` method.\n\nHere's a simple example:\n\n```js\n// skip this line if you are importing markerjs2 into the global space via the script tag\nimport * as markerjs2 from 'markerjs2';\n\n// create an instance of MarkerArea and pass the target image reference as a parameter\nlet markerArea = new markerjs2.MarkerArea(document.getElementById('myimg'));\n\n// register an event listener for when user clicks OK/save in the marker.js UI\nmarkerArea.addEventListener('render', (event) =\u003e {\n  // we are setting the markup result to replace our original image on the page\n  // but you can set a different image or upload it to your server\n  document.getElementById('myimg').src = event.dataUrl;\n});\n\n// finally, call the show() method and marker.js UI opens\nmarkerArea.show();\n```\n\n## Demos\n\nCheck out [marker.js 2 demos](https://markerjs.com/demos) for various usage examples.\n\n## More docs and tutorials\n\nFor a more detailed \"Getting started\" and other docs and tutorials, please refer to\nthe [official documentation](https://markerjs.com/docs).\n\n## Credits\n\nmarker.js 2 is using icons from [Material Design Icons](https://materialdesignicons.com/) for its toolbar.\n\n## License\n\nLinkware (see [LICENSE](https://github.com/ailon/markerjs2/blob/master/LICENSE) for details) - the UI displays a small link back to the marker.js 2 website which should be retained.\n\nAlternative licenses are available through the [marker.js 2 website](https://markerjs.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failon%2Fmarkerjs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failon%2Fmarkerjs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failon%2Fmarkerjs2/lists"}