qflow is the lightweight JavaScript library for creating autonomous agents and complex workflows with an elegant, expressive API

100% TypeScript
Zero Dependencies
Agent-First Design
import { AsyncFlow, AsyncNode } from '@fractal-solutions/qflow';

const flow = new AsyncFlow();
const helloNode = new AsyncNode();

helloNode.execAsync = async (prepRes, shared) => {
  return 'Hello from qflow!';
};

flow.start(helloNode);

Powerful Features

🧩

Modular & Extensible

Define custom nodes and compose them into complex, reusable flows

Synchronous & Asynchronous

Supports both blocking and non-blocking execution models

💾

Shared State Management

Pass and manipulate data across nodes with a central, mutable shared object

📦

Batch Processing

Efficiently process collections with dedicated batch nodes and parallel execution

🤖

AI Agents

Built-in agents with extensive tool integrations - LLMs, browsers, APIs, and more

🔌

Built-in Integrations

Pre-built nodes for GitHub, web scraping, PDFs, spreadsheets, and popular APIs

See It In Action

import { AsyncFlow, AsyncNode } from '@fractal-solutions/qflow';

const flow = new AsyncFlow();
const helloNode = new AsyncNode();

helloNode.execAsync = async (prepRes, shared) => {
  const { res } = shared.webhook;
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello World!');
};

flow.start(helloNode);

Get Started in Seconds

npm install @fractal-solutions/qflow
bun add @fractal-solutions/qflow
bunx create-qflow@latest <project-name>

How It Works

Node
Flow
AsyncNode
Shared State

Build workflows by connecting nodes that process data through a shared state object

Real-World Applications

💬

Build AI Chatbots

Create intelligent conversational agents with LLM integration

🕷️

Automate Web Scraping

Extract data from websites with built-in browser automation

📊

Create Data Pipelines

Process and transform data with batch operations

🔗

Orchestrate API Workflows

Chain multiple API calls into complex automation flows

50+
Built-in Nodes
Async
First Architecture
100%
TypeScript Native
Production Ready

Ready to Build the Future?

Join developers building intelligent workflows with qflow

Open source and free to use