Home
Foundry - Visual workflow builder for AI-powered software development pipelines
Foundry
Visual workflow builder for AI-powered software development pipelines
Build, visualize, and execute multi-step AI workflows with a drag-and-drop interface. Foundry combines a React Flow-based visual editor with a powerful FSM execution engine to orchestrate Claude-powered automation pipelines.
Key Features
π¨ Visual Workflow Builder
Drag-and-drop workflow construction with React Flow. Connect nodes visually, configure them in real-time, and see your automation pipeline come to life.
β‘ FSM-Based Execution
Deterministic state machine execution with checkpoint/resume capability. Pause workflows, inspect state, and resume from any node.
π€ AI-Powered Nodes
Integrate Claude Agent SDK directly into your workflows. Agent nodes can use tools, execute multi-turn conversations, and make intelligent decisions.
π Real-Time Visualization
Watch your workflows execute in real-time with animated node states, live logs, and execution progress tracking via Server-Sent Events.
π Rich Node Library
Pre-built nodes for common operations:
- Agent - Claude-powered AI execution with tool access
- Command - Shell command execution
- Slash Command - Claude Code operations (/commit, /test, etc.)
- HTTP - REST API calls
- LLM - Direct Claude API calls with structured output
- Eval - JavaScript context transformation
- GitHub Project - GitHub Projects V2 status updates
π GitHub Integration
Dispatch workflows via GitHub Actions, update GitHub Projects, and automate your development pipeline.
Quick Start
Installation
# Clone the repository
git clone https://github.com/iota-uz/foundry.git
cd foundry
# Install dependencies
bun install
# Set up database
docker compose up -d postgres
bun db:push
# Set up environment variables
cp .env.example .env.local
# Edit .env.local and add your Anthropic API key and DATABASE_URL
Development
# Start development server
bun dev
# Visit http://localhost:3000
Your First Workflow
- Launch Foundry - Run
bun devand open your browser - Create Workflow - Click βNew Workflowβ on the home page
- Add Nodes - Drag nodes from the left sidebar onto the canvas
- Connect Nodes - Draw edges between nodes to define flow
- Configure Nodes - Click nodes to configure in the right panel
- Execute - Click βRunβ to start workflow execution
- Monitor - Watch real-time progress in the Execution panel
Architecture Overview
βββββββββββββββββββββββββββββββββββββββ
β Visual Workflow Builder β
β ββββββββββββββββ βββββββββββββββ β
β β React Flow β β Node Config β β
β β Canvas β β Panel β β
β ββββββββββββββββ βββββββββββββββ β
ββββββββββββββββββ¬βββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β Graph Engine (FSM) β
β ββββββββββββββββ βββββββββββββββ β
β β State β β Node β β
β β Manager β β Executors β β
β ββββββββββββββββ βββββββββββββββ β
ββββββββββββββββββ¬βββββββββββββββββββββ
β
ββββββββββ΄βββββββββ
βΌ βΌ
βββββββββββββββββ βββββββββββββββββ
β PostgreSQL β β Claude API β
β (Drizzle) β β (Agent SDK) β
βββββββββββββββββ βββββββββββββββββ
Technology Stack
| Layer | Technology |
|---|---|
| Runtime | Bun |
| Framework | Next.js 14+ (App Router) |
| UI Library | React 18+ |
| Styling | Tailwind CSS v4 + Headless UI |
| State | Zustand |
| Diagrams | React Flow |
| AI | Claude Agent SDK (Anthropic) |
| Database | PostgreSQL + Drizzle ORM |
| Real-time | Server-Sent Events (SSE) |
Documentation
Core Concepts
- Graph Engine - FSM-based workflow execution
- Architecture - Core design concepts
- Node Types - Built-in node catalog
- Primitives - Low-level building blocks
- State Management - Checkpoint and resume
- Transitions - Routing between nodes
Integration
- GitHub Dispatch - Trigger workflows via GitHub Actions
- GitHub Projects - Status updates and automation
Reference
- API Reference - Type-safe workflow API
- Custom Nodes - Creating your own nodes
- Examples - Full workflow examples
Use Cases
π CI/CD Automation
Orchestrate complex deployment pipelines with AI-powered decision making. Run tests, analyze results, and decide next steps automatically.
π Intelligent Bug Fixing
Create workflows that analyze failing tests, generate fixes with Claude, and verify the solution before committing.
π Code Review Pipelines
Build automated code review workflows that analyze PRs, check for patterns, and provide structured feedback.
π Feature Development
Define multi-step feature implementation workflows: plan β implement β test β fix β commit.
Node Types at a Glance
| Node | Purpose | AI-Powered |
|---|---|---|
| Agent | Multi-turn AI execution with tools | β |
| Command | Shell command execution | β |
| SlashCommand | Claude Code operations | β |
| HTTP | REST API calls | β |
| LLM | Direct Claude API calls | β |
| Eval | JavaScript transformation | β |
| GitHubProject | Project status updates | β |
| DynamicAgent | Runtime AI configuration | β |
| DynamicCommand | Runtime command configuration | β |
Contributing
Foundry is open source. Contributions are welcome!
See the GitHub repository for more information.
License
MIT License - see LICENSE file for details
Links
Ready to build AI-powered workflows? Get Started β