
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
solid-rete-plugin
Advanced tools
This is a Rete plugin for the SolidJS front-end framework. It was inpired by the plugins already created for Rete by the Rete team, more specifically the Rete React plugin
The plugin uses the following to dependencies
The library is in its Alpha stage, I am not a guru in SolidJS development, so I used some AI help and some reasearch to get this done. I've been converting some of the examples at https://retejs.org/examples to test whether my code is working and so far seems to work. To create a SolidJS implementation of some of the examples found there, simply replace ReactArea2D with SolidArea2D and ReactPlugin with SolidPlugin this should do it for most cases.
Here is a simple code example:
import { createEffect, onCleanup, Component, createRoot } from "solid-js";
import { NodeEditor, GetSchemes, ClassicPreset } from "rete";
import { AreaPlugin, AreaExtensions } from "rete-area-plugin";
import {
ConnectionPlugin,
Presets as ConnectionPresets,
} from "rete-connection-plugin";
import { SolidPlugin, Presets, SolidArea2D } from "solid-rete-plugin";
type Schemes = GetSchemes<
ClassicPreset.Node,
ClassicPreset.Connection<ClassicPreset.Node, ClassicPreset.Node>
>;
type AreaExtra = SolidArea2D<Schemes>;
export const ReteEditor: Component = () => {
let containerRef: HTMLDivElement | undefined;
createEffect(() => {
if (!containerRef) return;
// Initialize createEditor function with the container
createEditor(containerRef).then((editorInstance) => {
// Cleanup: Destroy the editor instance when the component unmounts
onCleanup(() => {
editorInstance.destroy();
});
});
});
return (
<div ref={(el) => (containerRef = el)}
style={{ width: "100%", height: "100vh", border: "1px solid #ccc" }}
>
</div>
);
};
async function createEditor(container: HTMLElement) {
const socket = new ClassicPreset.Socket("socket");
const editor = new NodeEditor<Schemes>();
const area = new AreaPlugin<Schemes, AreaExtra>(container);
const connection = new ConnectionPlugin<Schemes, AreaExtra>();
const render = new SolidPlugin<Schemes, AreaExtra>();
AreaExtensions.selectableNodes(area, AreaExtensions.selector(), {
accumulating: AreaExtensions.accumulateOnCtrl(),
});
render.addPreset(Presets.classic.setup());
connection.addPreset(ConnectionPresets.classic.setup());
editor.use(area);
area.use(connection);
area.use(render);
AreaExtensions.simpleNodesOrder(area);
const a = new ClassicPreset.Node("A");
a.addControl("a", new ClassicPreset.InputControl("text", { initial: "a" }));
a.addOutput("a", new ClassicPreset.Output(socket));
await editor.addNode(a);
const b = new ClassicPreset.Node("B");
b.addControl("b", new ClassicPreset.InputControl("text", { initial: "b" }));
b.addInput("b", new ClassicPreset.Input(socket));
await editor.addNode(b);
await editor.addConnection(new ClassicPreset.Connection(a, "a", b, "b"));
await area.translate(a.id, { x: 0, y: 0 });
await area.translate(b.id, { x: 270, y: 0 });
setTimeout(() => {
// wait until nodes rendered because they don't have predefined width and height
AreaExtensions.zoomAt(area, editor.getNodes());
}, 10);
// Return a cleanup function
return {
destroy: () => area.destroy(),
};
}
export default ReteEditor;
FAQs
A SolidJS plugin for Rete (https://retejs.org/)
We found that solid-rete-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.