
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@matrajs/solid
Advanced tools
Solid bindings for Matra: createMatra, and a signal
that follows the editor.
npm i @matrajs/core @matrajs/solid
import { starterKit } from '@matrajs/core'
import { createMatra } from '@matrajs/solid'
export function Editor() {
const { editor, mount, state } = createMatra({
extensions: starterKit,
content: '<p>Hello</p>',
})
return (
<>
<button
onClick={() => editor.commands.toggleBold()}
aria-pressed={state().isActive('bold')}
>
Bold
</button>
<div ref={mount} />
</>
)
}
Solid's reactivity is not a render loop, so there is no external-store shape to
reach for. A signal that bumps on every change is enough: everything reading
state() re-runs and nothing else does.
state() returns the editor itself, not a copy. A toolbar asks
isActive at render time, and cloning a document to answer that would be the
expensive way to do nothing. What changes behind it is a version counter,
because the editor is one object that never changes identity — a signal
holding it directly would never notify.onCleanup destroys it, so the element is safe to reuse.mount is guarded, because a ref can run twice under a hot reload.The editor is created immediately rather than on mount, so commands,
getJSON() and getText() all work before anything is on screen — which is
what SSR and a test both need.
Matra ships no appearance. See the styling guide.
MIT.
FAQs
Solid bindings for Matra — createMatra, and a signal that follows it.
The npm package @matrajs/solid receives a total of 16 weekly downloads. As such, @matrajs/solid popularity was classified as not popular.
We found that @matrajs/solid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.