Scan your whole stack
From OX Research Newsroom
Are you using @lexion-rte/starter-kit?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0
@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.
| Version | Published | Status |
|---|---|---|
| 0.4.0 LATEST | 1 Dec 2026 | No rules fired |
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.
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.
Community starter-kit extensions for Lexion.
@lexion-rte/starter-kit ships:
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.
pnpm add @lexion-rte/starter-kit @lexion-rte/core
The starter kit provides:
#, >, -, 1., ``` and --- (see Markdown Input Rules)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.
starterKitExtensionstarterKitSchemacreateStarterKitSchema()createStarterKitCommands()starterKitCommandNamesisSafeLinkHref(href, allowedProtocols?), defaultAllowedLinkProtocols, linkMarkSpecisMarkActive(state, markType): whether a mark is active at the cursor or in the selectionisBlockActive(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 positiontoggleHeading(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.editor.can() and are typed (LexionCommands), so editor.execute("toggleHeading", "2") is a type error.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.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
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.
starterKitExtension enables these ProseMirror plugins by default:
history()createStarterKitInputRulesPlugin(schema)createListKeymapPlugin(schema)createStarterKitKeymapPlugin(schema)keymap(baseKeymap)gapCursor()dropCursor()createTrailingNodePlugin()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 |
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 |
starterKitCommandNames includes:
setParagraphtoggleHeadingtoggleBoldtoggleItalictoggleCodetoggleStriketoggleUnderlinetoggleBlockquotetoggleCodeBlockwrapBulletListwrapOrderedListliftListItemsinkListItemsetLinkunsetLinkinsertHorizontalRuleinsertHardBreakundoredo| 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. |
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"
});
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]
});
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 itemTab indents into a nested list itemShift-Tab outdents the current list itemYou can also insert structural content:
editor.execute(starterKitCommandNames.insertHorizontalRule);
editor.execute(starterKitCommandNames.insertHardBreak);
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.
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.
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.