Scan your whole stack
From OX Research Newsroom
Are you using @aphexcms/visual-editing?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0-next.20261127233507
@aphexcms/visual-editing was last scanned on 27 Nov 2026 at version 0.4.0-next.20261127233507. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.0-next.20261127233507 LATEST | 27 Nov 2026 | No rules fired |
| 0.4.0-next.20261127154613 | 27 Nov 2026 | No rules fired |
| 0.4.0-next.20261127153248 | 27 Nov 2026 | No rules fired |
| 0.4.0-next.20261127150150 | 27 Nov 2026 | Not shown |
| 0.4.0-next.20261127141707 | 27 Nov 2026 | Not shown |
Findings for v0.4.0-next.20261127233507. 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-next.20261127233507; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Click-to-edit visual editing for AphexCMS.
Renders your real site in the studio's preview pane and makes the content in it clickable: an author clicks a heading on the page and lands on that field in the editor, with edits streaming back live.
📚 Documentation: docs.getaphex.com/visual-editing
pnpm add @aphexcms/visual-editing
1. Wrap your public layout. The overlay is a no-op unless the URL carries the ?aphex-preview marker the editor's iframe adds, so it costs real visitors nothing:
<script lang="ts">
import { AphexVisualOverlay } from '@aphexcms/visual-editing';
let { children } = $props();
</script>
<AphexVisualOverlay>
{@render children()}
</AphexVisualOverlay>
2. Give the schema a previewUrl so the CMS knows which route renders a document:
previewUrl: (doc) => (doc.slug ? `/blog/${doc.slug}?aphex-preview=1` : null);
That's the whole setup. Plain text fields become click-to-edit automatically — the CMS encodes them with invisible stega markers, so the string carries its own field address.
usePreview() — the one helperEverything else is one call, once per component:
<script lang="ts">
import { usePreview } from '@aphexcms/visual-editing';
const ve = usePreview();
let { data } = $props();
const page = $derived(ve.live(data.page));
</script>
| Method | For |
|---|---|
live() |
Merge the editor's in-flight document over your load data |
edit() |
Mark an element as the target for a field — required for arrays/images |
image() |
The same, for an image that has no string to carry a marker |
encode() |
Add markers to a string you derived yourself |
Each produces breakage that only appears in preview, which is why they're worth reading before you debug one:
{...ve.edit({ field: 'layout', arrayIndex: index })} onto its root element. Text is clickable on its own, but the surrounding chrome, buttons and empty states are inert without an explicit target — and a block that ignores its index sends the author to the top of the array instead of to their block.edit()/image(). A string can carry stega inside itself; an image has no string to carry.live() merges, it doesn't replace. It preserves underscore-prefixed keys (_posts, _form) that your load derived and the editor's document can't know about.'center' matches no ===, and the branch silently takes the wrong arm. stegaClean(value) before comparing; leave display strings marked, because that's what makes them clickable.A block that renders a different document needs its own live(), gated on type and id — otherwise editing that document does nothing until a reload.
MIT
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.