Scan your whole stack
Are you using @opendrawjs/core?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.1
@opendrawjs/core was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.1.0 | 30 Oct 2026 | No rules fired |
| 0.0.0-stage | 30 Oct 2026 | Not shown |
Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@opendrawjs/core has no UI and no framework. Use it to create, edit and export opendraw scenes in code, in the browser or in Node: generate diagrams on a server, convert saved drawings to SVG, or validate files.
Looking for an editor? Install one of these instead; they include core:
| Package | |
|---|---|
@opendrawjs/nuxt |
Nuxt and Vue, with the full editor UI. |
@opendrawjs/react |
React. |
@opendrawjs/svelte |
Svelte 5. |
@opendrawjs/editor |
The interactive editor without a UI framework. |
npm install @opendrawjs/core
import {
OpenDrawDocument,
buildFile,
exportToSvg,
newLinearElement,
newRectangleElement,
newTextElement,
serializeToJSON,
} from '@opendrawjs/core'
const doc = new OpenDrawDocument()
doc.addElement(newRectangleElement({ x: 0, y: 0, width: 160, height: 90 }))
doc.addElement(newTextElement({ x: 24, y: 32, text: 'Hello' }))
doc.addElement(newLinearElement('arrow', { x: 170, y: 45, points: [{ x: 0, y: 0 }, { x: 120, y: 0 }] }))
// An SVG string: works in Node, no DOM needed.
const svg = exportToSvg(doc.getElements(), '#ffffff', { padding: 20 })
// The .opendraw file format, ready to save or send.
const json = serializeToJSON(buildFile(doc.getElements(), '#ffffff'))
| Area | Highlights |
|---|---|
| Elements | Rectangle, diamond, ellipse, line, arrow (sharp, curved or elbow), freedraw, text, image, frame and sticky note, created with newRectangleElement, newLinearElement, newTextElement, newElement(type, options) and friends. |
| Document | OpenDrawDocument holds the elements and editor state, with selection, groups, frames, styling, arrange and align commands, subscribe() and gesture-sized undo() / redo(). |
| Geometry | Bounds, hit testing, rotation and resize transforms, arrow binding and elbow-arrow routing. |
| Rendering | renderScene(ctx, input) draws a scene onto any 2D canvas with rough.js, light or dark. |
| Export | exportToSvg, exportToCanvas / exportToDataURL / exportToBlob (PNG, browser), serializeToJSON / parseFromJSON for the file format. |
| Safe parsing | parseFile and parseFromJSON repair or drop malformed elements instead of trusting input. |
import { exportToSvg, parseFromJSON } from '@opendrawjs/core'
const file = parseFromJSON(await readFile('diagram.opendraw', 'utf8'))
const svg = exportToSvg(file.elements, file.appState.viewBackgroundColor)
All changes go through the document, so they are tracked for undo and announced to subscribers:
const doc = new OpenDrawDocument()
const unsubscribe = doc.subscribe((state) => console.log(state.elements.length))
const box = newRectangleElement({ x: 0, y: 0, width: 100, height: 60 })
doc.addElement(box, { select: true })
doc.changeStyle({ strokeColor: '#e03131', backgroundColor: '#ffc9c9', fillStyle: 'solid' })
doc.undo()
opendraw is an independent project, built with gratitude to Excalidraw, whose design and code it learns from (some parts are ported under Excalidraw's MIT license). It is not affiliated with Excalidraw. It builds on rough.js and perfect-freehand.
MIT © 2026 Vishnu
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.