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

@lexion-rte/starter-kit

Latest version: v0.4.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: lexion-ret
1 Stars
0 Forks
1 Versions
26 Downloads
TypeScript Repo language

Scan summary

@lexion-rte/starter-kit was last scanned on 1 Dec 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 26 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 1 Dec 2026 No rules fired

No rules fired in 0.4.0

Findings

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

README

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

This package is part of the Lexion framework-agnostic rich text editor.

Lexion is an open-core, framework-agnostic, headless rich text editor platform built on ProseMirror.

@lexion-rte/starter-kit

Community starter-kit extensions for Lexion.

Overview

@lexion-rte/starter-kit ships:

  • the starter-kit schema
  • default editing commands
  • ProseMirror history, keyboard shortcuts, Markdown input rules, and the base keymap

Commercial features such as AI and collaboration live in separate premium packages.

Use this package when you want the baseline Lexion editing experience without adding commercial extensions.

Install

pnpm add @lexion-rte/starter-kit @lexion-rte/core

What It Includes

The starter kit provides:

  • paragraphs
  • headings
  • bold
  • italic
  • inline code
  • strikethrough
  • underline
  • blockquotes
  • code blocks
  • links
  • bullet lists
  • ordered lists
  • horizontal rules
  • hard breaks
  • list indent and outdent commands
  • undo and redo
  • keyboard shortcuts for history, marks, block types and lists (see Keyboard Shortcuts)
  • Markdown input rules such as #, >, -, 1., ``` and --- (see Markdown Input Rules)
  • list keyboard shortcuts for split, indent, and outdent
  • gap cursor navigation between block nodes
  • drop cursor feedback during drag and drop
  • automatic trailing paragraph after block content

It also provides the default ProseMirror history plugin, starter-kit keymap, Markdown input rules, base keymap, list keymap plugin, gap cursor plugin, drop cursor plugin, and trailing node plugin so a new editor instance is usable immediately.

Exports

  • starterKitExtension
  • starterKitSchema
  • createStarterKitSchema()
  • createStarterKitCommands()
  • starterKitCommandNames
  • isSafeLinkHref(href, allowedProtocols?), defaultAllowedLinkProtocols, linkMarkSpec
  • isMarkActive(state, markType): whether a mark is active at the cursor or in the selection
  • isBlockActive(state, nodeType, attrs?): whether the selection is in that block type (e.g. heading with { level: 2 })
  • findMarkRange($pos, markType): the full range of a mark around a position

Command Notes

  • toggleHeading(level) and toggleCodeBlock() really toggle: when every selected textblock already has that type (and level), they turn back into paragraphs; otherwise they all get it.
  • unsetLink() with the cursor inside a link removes the whole link. It returns false when there is no link to remove.
  • All commands work with editor.can() and are typed (LexionCommands), so editor.execute("toggleHeading", "2") is a type error.

Link Safety

The link mark only accepts http:, https:, mailto: and tel: URLs, relative URLs and #fragment links. The check ignores case, whitespace and control characters, so " JaVaScRiPt:alert(1)" is rejected.

  • setLink({ href }) returns false for an unsafe href.
  • Parsed and pasted HTML drops unsafe links but keeps their text.
  • Rendering never writes an unsafe href, even for documents loaded through setJSON().
import { isSafeLinkHref } from "@lexion-rte/starter-kit";

isSafeLinkHref("javascript:alert(1)"); // false
isSafeLinkHref("/docs"); // true
isSafeLinkHref("ftp://files.example.com", ["https:", "ftp:"]); // true

Trailing Paragraph

An empty paragraph is kept at the end of the document. It is added right after construction, setJSON() and extension changes, and after edits. It is never an undo step, so the first Mod-z undoes the user's last change.

Default Plugins

starterKitExtension enables these ProseMirror plugins by default:

  • history()
  • createStarterKitInputRulesPlugin(schema)
  • createListKeymapPlugin(schema)
  • createStarterKitKeymapPlugin(schema)
  • keymap(baseKeymap)
  • gapCursor()
  • dropCursor()
  • createTrailingNodePlugin()

Keyboard Shortcuts

Mod is Cmd on macOS and Ctrl elsewhere.

Shortcut Action
Mod-z Undo
Shift-Mod-z, Mod-y (not macOS) Redo
Mod-b / Mod-i / Mod-u Bold / italic / underline
Mod-e Inline code
Shift-Mod-s Strikethrough
Mod-Alt-0 Paragraph
Mod-Alt-1 … Mod-Alt-6 Heading level 1–6
Mod-Alt-c Code block
Shift-Mod-b Blockquote
Shift-Mod-8 / Shift-Mod-7 Bullet / ordered list
Shift-Enter, Mod-Enter Hard break
Enter / Tab / Shift-Tab in lists Split / indent / outdent list item

Markdown Input Rules

Typed at the start of an empty or plain paragraph:

Type Result
# … ###### then space Heading level 1–6
> then space Blockquote
-, + or * then space Bullet list
1. then space Ordered list (starting at that number)
``` Code block
---, ___ or *** on an empty line Horizontal rule

Command Names

starterKitCommandNames includes:

  • setParagraph
  • toggleHeading
  • toggleBold
  • toggleItalic
  • toggleCode
  • toggleStrike
  • toggleUnderline
  • toggleBlockquote
  • toggleCodeBlock
  • wrapBulletList
  • wrapOrderedList
  • liftListItem
  • sinkListItem
  • setLink
  • unsetLink
  • insertHorizontalRule
  • insertHardBreak
  • undo
  • redo

Command Reference

Command Args Description Notes
setParagraph none Sets the current block to a paragraph. Useful after headings, blockquotes, or code blocks.
toggleHeading level: 1..6 Sets the current block to the requested heading level. Use toolbar buttons such as H1, H2, or H3 to pass the level.
toggleBold none Toggles bold formatting on the current selection. Requires a text selection for visible effect.
toggleItalic none Toggles italic formatting on the current selection. Requires a text selection for visible effect.
toggleCode none Toggles inline code formatting on the current selection. Best used on short inline text spans.
toggleStrike none Toggles strikethrough formatting on the current selection. Requires a text selection for visible effect.
toggleUnderline none Toggles underline formatting on the current selection. Requires a text selection for visible effect.
toggleBlockquote none Wraps the current block in a blockquote, or lifts it back out. Use when the cursor is inside a text block.
toggleCodeBlock none Converts the current block to a code block, or back to paragraph. Good for fenced-code style editing flows.
wrapBulletList none Wraps the current selection in a bullet list. Creates list structure from the active block.
wrapOrderedList none Wraps the current selection in an ordered list. Creates numbered list structure from the active block.
liftListItem none Moves the current list item one level out. Most useful when the cursor is already inside a list item.
sinkListItem none Moves the current list item one level deeper. Most useful when the cursor is already inside a list item.
setLink { href: string; title?: string \| null } Applies a link mark to the current selection. Returns false if the selection is empty or the payload is invalid.
unsetLink none Removes the link mark from the current selection range. Works on the selected text range.
insertHorizontalRule none Inserts a horizontal rule at the current selection. Useful for section breaks.
insertHardBreak none Inserts a hard line break. Useful inside paragraphs or list items.
undo none Reverts the last history step. Powered by the history plugin.
redo none Reapplies the last undone history step. Powered by the history plugin.

Basic Example

import { LexionEditor } from "@lexion-rte/core";
import { starterKitExtension, starterKitCommandNames } from "@lexion-rte/starter-kit";

const editor = new LexionEditor({ extensions: [starterKitExtension] });

editor.execute(starterKitCommandNames.toggleHeading, 2);
editor.execute(starterKitCommandNames.toggleBold);
editor.execute(starterKitCommandNames.toggleStrike);
editor.execute(starterKitCommandNames.toggleCodeBlock);
editor.execute(starterKitCommandNames.setLink, {
  href: "https://example.com",
  title: "Example"
});

Creating an Editor With Initial Content

import { LexionEditor, type JSONDocument } from "@lexion-rte/core";
import { starterKitExtension } from "@lexion-rte/starter-kit";

const initialDocument: JSONDocument = {
  type: "doc",
  content: [
    {
      type: "paragraph",
      content: [{ type: "text", text: "Hello from Lexion" }]
    }
  ]
};

const editor = new LexionEditor({
  doc: initialDocument,
  extensions: [starterKitExtension]
});

Using the Command API

toggleHeading expects a heading level number from 1 to 6:

editor.execute(starterKitCommandNames.toggleHeading, 2);

setLink expects a non-empty selection and a link payload:

editor.execute(starterKitCommandNames.setLink, {
  href: "https://lexion.dev",
  title: "Lexion"
});

Inline formatting commands can be combined on the current selection:

editor.execute(starterKitCommandNames.toggleUnderline);
editor.execute(starterKitCommandNames.toggleStrike);

List commands operate on the current selection:

editor.execute(starterKitCommandNames.wrapBulletList);
editor.execute(starterKitCommandNames.sinkListItem);
editor.execute(starterKitCommandNames.liftListItem);

sinkListItem nests the current list item under its previous sibling, so it only succeeds when the cursor is in a non-first list item.

Inside lists, the starter-kit also wires keyboard behavior by default:

  • Enter splits the current list item
  • Tab indents into a nested list item
  • Shift-Tab outdents the current list item

You can also insert structural content:

editor.execute(starterKitCommandNames.insertHorizontalRule);
editor.execute(starterKitCommandNames.insertHardBreak);

Schema and Command Factories

Use the factories if you want direct access to the schema or command map without importing the ready-made extension object:

import { createStarterKitCommands, createStarterKitSchema } from "@lexion-rte/starter-kit";

const schema = createStarterKitSchema();
const commands = createStarterKitCommands();

In most app code, starterKitExtension is the simplest option.

Migration

If you previously used @lexion-rte/extensions, migrate community starter-kit imports like this:

import { starterKitExtension, starterKitCommandNames } from "@lexion-rte/starter-kit";

AI and collaboration are no longer shipped in this package.

Related Docs

  • root package and architecture overview: README
  • extension API reference: docs/EXTENSIONS_REFERENCE.md
  • package surface reference: docs/PACKAGE_APIS.md

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 @lexion-rte/starter-kit

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229