
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@chatgpt-media-flow/editor
Advanced tools
AI Flow Editor - A visual node-based editor for AI workflows with ReactFlow, Subscribe.dev and Replicate API integration
A visual node-based editor for creating AI workflows with ReactFlow and Subscribe.dev integration.
# Install dependencies
npm install
# Start development server
npm run dev
Then open http://localhost:8000 in your browser to see the main AI Flow Editor application.
npm install @chatgpt-media-flow/editor
Before using the Flow Editor, make sure you have the following dependencies loaded:
<!-- Process polyfill -->
<script>
window.process = { env: { NODE_ENV: 'development' } };
</script>
<!-- React -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<!-- Babel for JSX transformation -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- ReactFlow -->
<script src="https://unpkg.com/reactflow@11.11.4/dist/umd/index.js"></script>
<script>
// Load ReactFlow CSS dynamically
fetch('https://unpkg.com/reactflow@11.11.4/dist/style.css')
.then(response => response.text())
.then(css => {
const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
});
</script>
<!-- Subscribe.dev -->
<script src="https://unpkg.com/@subscribe.dev/react@0.0.161/index.umd.js"></script>
<!-- Tailwind CSS (for styling) -->
<script src="https://cdn.tailwindcss.com"></script>
Note: The Flow Editor includes all necessary icons internally - no external icon libraries are required.
// Note: This package is primarily designed for UMD usage
// ES module support may be limited in the current version
import FlowEditor from '@chatgpt-media-flow/editor';
function App() {
return (
<FlowEditor
projectToken="your-subscribe-dev-project-token"
/>
);
}
export default App;
<!DOCTYPE html>
<html>
<head>
<!-- Prerequisites (see above) -->
<!-- Flow Editor -->
<script src="https://unpkg.com/@chatgpt-media-flow/editor@latest/dist/flow-editor.umd.js"></script>
</head>
<body>
<div id="flow-editor-container"></div>
<script type="text/babel">
// FlowEditor is available as window.FlowEditor
const { ReactFlowProvider } = window.ReactFlow;
const { SubscribeDevProvider } = window.SubscribeDevReact;
// Get FlowEditor and projectId from compiled UMD
const FlowEditor = window.FlowEditor.default;
const projectId = FlowEditor.projectId;
// Auth wrapper with providers
const AuthWrapper = () => {
return (
<ReactFlowProvider>
<FlowEditor />
</ReactFlowProvider>
);
};
// Main App with SubscribeDevProvider
const App = () => {
return (
<SubscribeDevProvider projectToken={projectId}>
<AuthWrapper />
</SubscribeDevProvider>
);
};
const root = ReactDOM.createRoot(document.getElementById('flow-editor-container'));
root.render(<App />);
</script>
</body>
</html>
You can initialize the Flow Editor with predefined nodes and edges by setting window.FLOW before the component mounts:
<script>
window.FLOW = {
nodes: [
{
id: '1',
type: 'textInput',
position: { x: 100, y: 250 },
data: {
prompt: 'A beautiful sunset over mountains',
label: 'Text Input'
}
},
{
id: '2',
type: 'model',
position: { x: 500, y: 100 },
data: {
model: 'black-forest-labs/flux-schnell',
width: 1024,
height: 1024,
outputCount: 2,
label: 'Model'
}
}
],
edges: [
{
id: 'e1-2',
source: '1',
target: '2',
sourceHandle: 'prompt',
targetHandle: 'prompt'
}
]
};
</script>
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
projectToken | string | No | - | Your Subscribe.dev project token (can be set via SubscribeDevProvider) |
Note: The FlowEditor is typically wrapped with SubscribeDevProvider which handles authentication and API configuration.
The Flow Editor supports various AI models through Subscribe.dev:
black-forest-labs/flux-schnell) - Fast image generation with aspectRatio support (1:1, 16:9, 9:16)google/nano-banana) - Combines two input images with promptwan-video/wan-2.2-5b-fast) - Video generation with optional starting frame (16:9, 9:16)bytedance/seedance-1-lite) - High quality video with optional start/end frames (1:1, 16:9, 9:16)bytedance/seedance-1-pro) - Premium video generation (1:1, 16:9, 9:16)openai/gpt-4o) - Text generation with optional image inputopenai/gpt-5) - Advanced text generation with optional image inputminimax/speech-02-turbo) - Text-to-speech with 40+ English voice optionssync/lipsync-2) - Synchronizes audio with videoTo work on this package locally:
# Clone the repository
git clone https://github.com/viceroymiami/chatgpt-media-flow.git
# Install dependencies
npm install
# Start development server (builds and serves with file watching)
npm run dev
This will:
http://localhost:8000Once the development server is running, open your browser to:
http://localhost:8000
This is the main AI Flow Editor application with a pre-configured workflow demonstrating:
# Build once (without serving)
npm run build
# Serve existing build (without rebuilding)
npm run serve
# Build once and serve (no file watching)
npm run dev:serve
# Build for production
NODE_ENV=production npm run build
The development server hosts the main example implementation:
http://localhost:8000 - Main AI Flow Editor with predefined workflow demonstrating text input → image generationNote: The UMD bundle is built automatically when you run npm run dev.
This package requires a Subscribe.dev account and project token. Get started at subscribe.dev:
projectToken propMIT
For issues and feature requests, please use the GitHub Issues page.
FAQs
AI Flow Editor - A visual node-based editor for AI workflows with ReactFlow, Subscribe.dev and Replicate API integration
We found that @chatgpt-media-flow/editor 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.