BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/simple-ai/flow-orchestrator

flow-orchestrator

simple-ai/flow-orchestrator
FreeBlock

Agentic orchestrator workflow.

Live preview

live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://simple-ai.dev/r/flow-orchestrator.json

Source

./src/registry/blocks/flow-orchestrator/page.tsxsimple-ai.dev/r/flow-orchestrator.json
1"use client";
2
3import {
4 Background,
5 Controls,
6 type EdgeTypes,
7 MiniMap,
8 type NodeTypes,
9 Panel,
10 ReactFlow,
11 ReactFlowProvider,
12 useReactFlow,
13} from "@xyflow/react";
14import { type DragEvent, useEffect } from "react";
15import { shallow } from "zustand/shallow";
16import "@xyflow/react/dist/style.css";
17import { Button } from "@/components/ui/button";
18import { ErrorIndicator } from "@/registry/blocks/flow-orchestrator/components/error-indicator";
19import { NodesPanel } from "@/registry/blocks/flow-orchestrator/components/nodes-panel";
20import { DEVELOPER_TASKS_ORCHESTRATOR_WORKFLOW } from "@/registry/blocks/flow-orchestrator/lib/developer-tasks-orchestrator";
21import { useWorkflow } from "@/registry/hooks/flow/use-workflow";
22import type { FlowNode } from "@/registry/lib/flow/workflow";
23import { GenerateTextNodeController } from "@/registry/ui/flow/generate-text-node-controller";
24import { PromptCrafterNodeController } from "@/registry/ui/flow/prompt-crafter-node-controller";
25import { StatusEdgeController } from "@/registry/ui/flow/status-edge-controller";
26import { TextInputNodeController } from "@/registry/ui/flow/text-input-node-controller";
27import { VisualizeTextNodeController } from "@/registry/ui/flow/visualize-text-node-controller";
28
29const nodeTypes: NodeTypes = {
30 "generate-text": GenerateTextNodeController,
31 "visualize-text": VisualizeTextNodeController,
32 "text-input": TextInputNodeController,
33 "prompt-crafter": PromptCrafterNodeController,
34};
35
36const edgeTypes: EdgeTypes = {
37 status: StatusEdgeController,
38};
39
40export function Flow() {
41 const store = useWorkflow(
42 (store) => ({
43 nodes: store.nodes,
44 edges: store.edges,
45 onNodesChange: store.onNodesChange,
46 onEdgesChange: store.onEdgesChange,
47 onConnect: store.onConnect,
48 startExecution: store.startExecution,
49 createNode: store.createNode,
50 workflowExecutionState: store.workflowExecutionState,
51 initializeWorkflow: store.initializeWorkflow,
52 }),
53 shallow,
54 );
55
56 // biome-ignore lint/correctness/useExhaustiveDependencies: We want to initialize the workflow only once
57 useEffect(() => {
58 store.initializeWorkflow(
59 DEVELOPER_TASKS_ORCHESTRATOR_WORKFLOW.nodes,
60 DEVELOPER_TASKS_ORCHESTRATOR_WORKFLOW.edges,
61 );
62 }, []);
63
64 const { screenToFlowPosition } = useReactFlow();
65
66 const onDragOver = (event: DragEvent) => {
67 event.preventDefault();
68 event.dataTransfer.dropEffect = "move";
69 };
70
71 const onDrop = (event: DragEvent) => {
72 event.preventDefault();
73
74// … truncated

What it pulls in

npm packages

  • @xyflow/react
  • zustand
  • zod
  • ai
  • nanoid
  • @ai-sdk/openai
  • @ai-sdk/groq
  • @ai-sdk/deepseek

Other registry items

  • button
  • card
  • dialog
  • input
  • textarea
  • sonner
  • @simple-ai/generate-text-node
  • @simple-ai/prompt-crafter-node
  • @simple-ai/text-input-node
  • @simple-ai/visualize-text-node

Files it writes

  • ./src/registry/blocks/flow-orchestrator/page.tsx
  • ./src/registry/blocks/flow-orchestrator/route.ts
  • ./src/registry/blocks/flow-orchestrator/components/nodes-panel.tsx
  • ./src/registry/blocks/flow-orchestrator/components/error-indicator.tsx
  • ./src/registry/blocks/flow-orchestrator/lib/developer-tasks-orchestrator.ts
  • ./src/registry/ui/flow/status-edge-controller.tsx
  • ./src/registry/ui/flow/status-edge.tsx
  • ./src/registry/ui/flow/visualize-text-node-controller.tsx
  • ./src/registry/ui/flow/text-input-node-controller.tsx
  • ./src/registry/ui/flow/prompt-crafter-node-controller.tsx
  • ./src/registry/ui/flow/generate-text-node-controller.tsx
  • ./src/registry/hooks/flow/use-workflow.ts
  • ./src/registry/lib/flow/workflow.ts
  • ./src/registry/lib/flow/workflow-execution-engine.ts
  • ./src/registry/lib/flow/sse-workflow-execution-client.ts
  • ./src/registry/lib/flow/sse-workflow-execution-engine.ts
  • ./src/registry/lib/flow/server-node-processors.ts
  • ./src/registry/lib/flow/node-factory.ts
  • ./src/registry/lib/flow/generate-ai-text.ts

Facts

Registry
simple-ai
Type
registry:block
Access
Free
Files written
19
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on simple-ai simple-ai.dev Alwurts/simple-ai on GitHub Raw registry item This item as JSON

More from simple-ai

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
app-01app-01simple-aiBlocksFree5 deps · 11 files
app-02app-02simple-aiBlocksFree3 deps · 5 files
app-03app-03simple-aiBlocksFree4 deps · 9 files
chat-01chat-01simple-aiBlocksFree3 deps · 16 files
chat-02chat-02simple-aiBlocksFree2 deps · 3 files
chat-03chat-03simple-aiBlocksFree2 deps · 3 files
chat-04chat-04simple-aiBlocksFree3 deps · 13 files
flow-chainflow-chainsimple-aiBlocksFree8 deps · 19 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex