
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.
compiler-widget
Advanced tools
A customizable compiler widget with Monaco editor for React Flow and XYFlow diagrams.
A customizable compiler widget with Monaco editor for React Flow and XYFlow diagrams.
npm install @yourname/compiler-widget
# or
yarn add @yourname/compiler-widget
## Peer Dependencies
Make sure you have these installed:
```json
{
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@xyflow/react": "^0.1.0",
"@monaco-editor/react": "^4.0.0"
}
Usage
import React from 'react';
import ReactFlow from '@xyflow/react';
import { CompilerWidget } from '@yourname/compiler-widget';
import '@xyflow/react/dist/style.css';```
```// Register the node type
const nodeTypes = {
compilerNode: CompilerWidget
};```
```const initialNodes = [
{
id: 'compiler-1',
type: 'compilerNode',
position: { x: 100, y: 100 },
data: {
initialFiles: {
'Program.cs': 'Console.WriteLine("Hello World!");'
},
language: 'csharp'
}
}
];```
```function App() {
return (
<div style={{ width: '100vw', height: '100vh' }}>
<ReactFlow
nodes={initialNodes}
nodeTypes={nodeTypes}
/>
</div>
);
}
export default App; Props Prop Type Default Description id string required Node ID data.initialFiles Record<string, string> {} Initial files data.language 'csharp' | 'js' 'csharp' Default language setNodeHeight (id: string, height: number) => void optional Height callback text
# В папке packages/compiler-widget
npm install
npm run build
# Проверьте структуру dist/
ls -la dist/
# Должно быть: index.js, index.esm.js, index.d.ts, index.css
# Локальная тестовая установка
npm link
# В основном проекте
cd ../..
npm link @yourname/compiler-widget
FAQs
A customizable compiler widget with Monaco editor for React Flow and XYFlow diagrams.
We found that compiler-widget 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.
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.