Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@opendrawjs/core

Latest version: v0.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: thenormvg
0 Stars
1 Forks
3 Versions
472 Downloads
TypeScript Repo language

Scan summary

@opendrawjs/core was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.1.
  • Downloads: 472 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.1.1

Findings

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.

README

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.

Install

npm install @opendrawjs/core

Example: build a scene and export it

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'))

What's inside

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.

Reading a saved drawing

import { exportToSvg, parseFromJSON } from '@opendrawjs/core'

const file = parseFromJSON(await readFile('diagram.opendraw', 'utf8'))
const svg = exportToSvg(file.elements, file.appState.viewBackgroundColor)

Editing through the document

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()

Links

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.

License

MIT © 2026 Vishnu

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @opendrawjs/core

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229