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

@jbpark/live-editor

Latest version: v6.5.2

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: jbpark
1 Stars
0 Forks
52 Versions
1.8K Downloads
TypeScript Repo language

Scan summary

@jbpark/live-editor was last scanned on 28 Nov 2026 at version 6.5.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 52 versions; the latest 3 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 6.5.2.
  • Downloads: 1,836 downloads.

Versions

52 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.5.2 LATEST 28 Nov 2026 No rules fired
6.5.1 27 Nov 2026 No rules fired
6.5.0 23 Nov 2026 No rules fired
6.3.0 15 Nov 2026 Not shown
6.2.0 13 Nov 2026 Not shown

No rules fired in 6.5.2

Findings

Findings for v6.5.2. 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 6.5.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Live Editor

English | 한국어

An interactive editor for building UIs with real-time preview and drag‑and‑drop. Canvas edits are synced back to source code via AST transforms, and the result renders inside an iframe for DOM/CSS isolation. Built with React 19 and TypeScript. See Security Notes — the iframe is not a security sandbox.

Documentation & live demos: https://live-editor-lab.vercel.app

Project Structure

live-editor/
├─ src/
│  ├─ components/
│  │  ├─ context/            # Global state management
│  │  ├─ dnd/                # Drag-and-drop system with editing panels
│  │  │  └─ panel/           # Property panel field editors
│  │  ├─ editor/             # CodeMirror code editor
│  │  ├─ error/             # Error boundary
│  │  ├─ frame/             # iframe/shadow-DOM preview isolation
│  │  └─ preview/           # Isolated preview runtime
│  ├─ pages/
│  │  └─ editor/            # Local development editor (editor + DnD toggle)
│  ├─ utils/
│  │  ├─ ast/               # AST manipulation & code generation
│  │  ├─ tailwind/          # Tailwind theme helpers
│  │  ├─ cache.ts           # Bounded LRU cache
│  │  └─ selection.ts       # Multi-select helpers
│  ├─ constants/            # Constants and configurations
│  ├─ types/                # TypeScript type definitions
│  └─ main.tsx              # Local development app entry
├─ demos/                   # Standalone iframe demos for the documentation
├─ website/                 # Docusaurus documentation site
└─ package.json

How the pieces fit together — the read and write paths, the commit levels and a glossary — is in ARCHITECTURE.md.

Highlights

  • Real-time code updates: Canvas interactions (add/move/remove, property edits) are propagated back to source code safely.
  • Interactive property panel: Edit numbers, strings, booleans, arrays, and objects from the side panel.
  • Advanced JSX binding system: Automatically detects and enables editing for all JSX element properties (children, label, icon, etc.) through type-based detection.
  • Smart Items editor: Manage array items with add/move/delete operations, edit properties and nested JSX components with stable component identity across reorders.
  • Preview runtime: Renders compiled output inside an iframe for DOM/CSS isolation (not a security sandbox — see Security Notes).
  • Robust drag-and-drop: Powered by @dnd-kit for smooth sorting and positioning.

Installation

pnpm add @jbpark/live-editor react react-dom

react and react-dom (>= 19) are peer dependencies. prettier (>= 3) is an optional peer — install it too if you want the editor's format-on-save; without it the editor still works and simply skips formatting. @jbpark/ui-kit (>= 10.5) is an optional peer as well, needed only for the @jbpark/live-editor/ui-kit entry.

Usage

Import the stylesheet once near your app root — it is required and is not imported by the JS entry:

import { useState } from 'react';

import Live from '@jbpark/live-editor';
import '@jbpark/live-editor/style.css';

// required — not imported by the JS entry

const SAMPLE = `
const App = () => (
  <div className="flex flex-col items-start gap-2 p-6">
    <h3 className="text-xl font-semibold">Hello</h3>
    <button type="button" className="rounded bg-indigo-500 px-3 py-1 text-white">
      Edit me
    </button>
  </div>
);

export default App;
`;

export default function Example() {
  const [code, setCode] = useState(SAMPLE);

  return (
    <Live>
      <Live.Editor value={code} onChange={setCode} />
      <Live.Preview showError frame={{ mode: 'iframe', syncStyle: true }} />
    </Live>
  );
}

See the documentation site for the full guide (how Tailwind reaches the preview, custom panels, and more).

Entry points

The package ships subpath exports so a consumer who needs only one feature area can avoid pulling in the rest (e.g. no CodeMirror in a preview-only build) — see #194:

Import Contains
@jbpark/live-editor Everything (Live provider + all surfaces)
@jbpark/live-editor/provider The shared editing context provider only
@jbpark/live-editor/dnd Drag-and-drop canvas + property panel
@jbpark/live-editor/editor CodeMirror code editor
@jbpark/live-editor/preview Isolated preview runtime
@jbpark/live-editor/error Error boundary
@jbpark/live-editor/utils Compile/section helpers
@jbpark/live-editor/utils/ast AST manipulation & code generation
@jbpark/live-editor/utils/tailwind Tailwind theme helpers
@jbpark/live-editor/runtime runModule(): runs a document transpiled ahead of time, without Babel
@jbpark/live-editor/ui-kit Opt-in @jbpark/ui-kit fields, modules and palette (install @jbpark/ui-kit)
@jbpark/live-editor/ui-kit/style.css ui-kit's stylesheet, for the ui-kit entry
@jbpark/live-editor/style.css Compiled stylesheet (required)

Next.js and server rendering

The components are client components: in the Next.js App Router, render them from a file that starts with 'use client'.

  • Pre-rendering is safe. Live.Editor and a Live.Preview without frame render on the server; Live.Dnd's sections and a framed Live.Preview appear once the page hydrates.
  • A Live.Preview without frame compiles and runs the previewed code on the server while pre-rendering, with the server's privileges (see Security Notes). Give it a frame, or load it with next/dynamic and ssr: false, to avoid that.
  • ./utils, ./utils/ast and ./utils/tailwind hold no React components and work in Server Components and plain Node. So does ./runtime, which imports only React.

Security Notes

  • The sandbox prop on the preview <iframe> (src/components/frame/iframe/iframe.tsx) is not a security boundary. Compiled preview code is executed via new Function(...) in the host page's own JS realm (runModule in src/utils/run-module.ts, which compile() calls); only the resulting React elements are portaled into the iframe's contentDocument for DOM/CSS rendering. The iframe itself never evaluates user code.
  • Practical implication: previewed code runs with the same JS-level access as the host application (cookies, DOM, in-memory state) — the iframe boundary does not contain it.
  • Only open/edit projects you trust. Don't use this editor to preview arbitrary third-party project files without adding real isolation yourself (e.g. running compilation inside the iframe's own contentWindow realm and communicating results back via postMessage) — that isolation is not implemented here today (#791).
  • To show one author's documents to other people, serve them from a separate site with transpile() and runModule(). The Security page explains the trust model and this setup.

Tech Stack

  • Core: React 19, TypeScript 6, Vite 8
  • DnD: @dnd-kit/core, @dnd-kit/sortable, @dnd-kit/modifiers
  • Editor: @uiw/react-codemirror with VSCode theme
  • UI/Styling: @jbpark/ui-kit, lucide-react, Tailwind CSS 4
  • Transform: Babel (standalone) for in-browser transforms

Requirements

  • Peer deps: react >=19, react-dom >=19
  • Package metadata declares Node.js ^22.18.0 || >=24.11.0, the range Babel 8 supports. CI checks that the entries meant for Node (utils, utils/ast, utils/tailwind, provider, error, runtime) load on Node 22.18. Repository development, builds and the rest of CI use the version pinned in .nvmrc (currently 24.18.0).
  • pnpm (developing this repo only): the version in packageManager (currently 12.8.1), managed via Corepack. Installing the package works with any package manager.

Development (this repo)

Working on Live Editor itself. To use the package in your app, see Installation above. Start with ARCHITECTURE.md for how the code is organized.

pnpm Setup (Recommended)

The pnpm version is pinned by the packageManager field in package.json (and in website/package.json). With Corepack enabled, running pnpm in the repo uses exactly that version, downloading it on first use:

corepack enable

Or install the pinned version yourself (npm install -g pnpm@<version>, with the version from packageManager). pnpm 11 and later need Node.js 22 or newer.

Install
pnpm install
Develop
pnpm run dev

This starts the local editor at the root route. The public documentation and feature demos live in website/.

Build
pnpm run build
Test
pnpm test
Lint & Type Check
pnpm run lint
pnpm exec tsc -b
Preview Production Build
pnpm run build:demo
pnpm exec vite preview --outDir dist-demo

Versioning & Release

Releases are fully automated via changesets:

  • Each PR against main gets an AI-drafted changeset file describing its change.
  • Once changesets accumulate on main, a "Version Packages" PR bumps package.json's version and consolidates CHANGELOG.md.
  • Merging that PR builds, tags the release, and publishes to npm.

CI workflows:

  • changeset-draft.yml: Drafts an AI-generated changeset on PR open/sync against main.
  • version.yml: Opens/updates the "Version Packages" PR once changesets accumulate.
  • publish.yml: Builds/publishes/tags/creates the GitHub Release on merge to main when the version is untagged.
  • release.yml: Manual workflow_dispatch fallback to (re)create a GitHub Release for an existing tag.
  • The Docusaurus documentation site is built from website/ and deployed via Vercel (see vercel.json).

License

MIT License — Copyright (c) 2026 jbpark

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 @jbpark/live-editor

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229