<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akash Saravanan on Medium]]></title>
        <description><![CDATA[Stories by Akash Saravanan on Medium]]></description>
        <link>https://medium.com/@akashtqb06?source=rss-bff321d1946a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dndDy0F7EkxALEJgCq4z-Q.webp</url>
            <title>Stories by Akash Saravanan on Medium</title>
            <link>https://medium.com/@akashtqb06?source=rss-bff321d1946a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:27:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akashtqb06/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Minimal ETL Workflow Orchestrator with Python and Vite]]></title>
            <link>https://medium.com/@akashtqb06/building-a-minimal-etl-workflow-orchestrator-with-python-and-vite-d34b87178393?source=rss-bff321d1946a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d34b87178393</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[data-orchestration]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[data-migration]]></category>
            <dc:creator><![CDATA[Akash Saravanan]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 17:52:31 GMT</pubDate>
            <atom:updated>2026-08-03T17:52:31.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>Skip the heavyweight tools. Learn how to build a code-first ETL workflow orchestrator from scratch — a Python execution engine with a drag-and-drop ReactFlow UI — where you own every byte.</h3><blockquote><em>The best tool is the one you understand completely. Build it minimal. Build it yours.</em></blockquote><h3>The Problem With “Just Use Airflow”</h3><p>Every data engineer eventually arrives at the same crossroads: you need to run a set of tasks in order, with dependencies, on a schedule, against multiple external systems. Someone in the room immediately suggests Apache Airflow.</p><p>Airflow is powerful — genuinely. But it comes with a cost. You’re onboarding a Celery cluster, a metadata database, a scheduler daemon, a webserver, and a worker pool just to run a few Python functions in sequence. For a small team or a product-focused engineering team, that overhead is real.</p><p>The alternatives have their own trade-offs:</p><ul><li><strong>n8n / Zapier</strong>: Excellent for no-code automation, but you hit walls quickly with custom logic, complex data transformations, or non-standard connectors.</li><li><strong>Prefect / Dagster</strong>: Great tools, but they come with their own paradigms and cloud dependencies that may not fit your stack.</li><li><strong>Cron + shell scripts</strong>: Works, until it doesn’t. No visibility, no dependency management, no retry logic.</li></ul><p>What if you could build something that hits the sweet spot — a <strong>minimal, code-first workflow orchestrator</strong> that you fully own, with a beautiful visual designer for your team?</p><p>That’s exactly what we’re building.</p><h3>What We’re Building</h3><p>A <strong>two-part system</strong>:</p><ol><li><strong>Python Backend</strong> — A workflow execution engine that reads task definitions from a database, resolves dependencies (DAG), and runs extraction, transformation, and loading pipelines against external systems.</li><li><strong>Vite + ReactFlow Frontend</strong> — A drag-and-drop visual workflow designer where your team can compose pipelines by connecting task nodes, configure parameters, and trigger executions — all from a browser.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nWkT70utsp2SvNxJ.jpg" /></figure><blockquote><em>Above: The complete system — a Vite/ReactFlow frontend connected via FastAPI to a Python orchestration engine that drives ETL pipelines against external systems.</em></blockquote><p>The stack is deliberately minimal:</p><p>Layer Technology Frontend Vite + React + ReactFlow API Layer FastAPI + WebSocket Orchestration Engine Python (asyncio) Task Store SQLite (dev) / PostgreSQL (prod) ETL Connectors Python (httpx, psycopg2, pandas)</p><h3>Part 1: Architecture Overview</h3><p>Before writing a line of code, let’s understand the data flow.</p><pre>[User designs workflow in ReactFlow]<br>      ↓ (Save as JSON)<br>[FastAPI saves to DB]<br>      ↓ (Trigger execution)<br>[Workflow Engine fetches task graph]<br>      ↓<br>[DAG Resolver computes execution order]<br>      ↓<br>[Task Runner executes tasks in order]<br>      ↓ (each task calls)<br>[ETL Engine: Extract → Transform → Load]<br>      ↓ (push to)<br>[External Systems: APIs, DBs, Files]</pre><p>The key insight: <strong>the workflow is just data</strong>. It’s a JSON graph stored in a database. The Python engine is a generic interpreter that knows how to read that graph and run tasks in the right order. This separation means you can change, replay, or inspect any workflow without touching the execution code.</p><h3>Part 2: The Python Orchestration Engine</h3><h3>2.1 Workflow &amp; Task Schema</h3><p>Everything starts with the database schema. We use two tables: workflows and tasks.</p><pre># models.py<br>from dataclasses import dataclass, field<br>from typing import Any, Optional<br>from datetime import datetime</pre><pre>@dataclass<br>class Task:<br>    id: str<br>    workflow_id: str<br>    task_type: str  # &quot;extract_api&quot;, &quot;transform_map&quot;, &quot;load_db&quot;, etc.<br>    name: str<br>    params: dict[str, Any]       # Task-specific configuration<br>    depends_on: list[str]        # IDs of tasks that must complete first<br>    status: str = &quot;pending&quot;      # pending | running | success | failed<br>    result: Optional[Any] = None<br>    error: Optional[str] = None<br>    started_at: Optional[datetime] = None<br>    finished_at: Optional[datetime] = None</pre><pre>@dataclass<br>class Workflow:<br>    id: str<br>    name: str<br>    description: str<br>    tasks: list[Task] = field(default_factory=list)<br>    status: str = &quot;idle&quot;  # idle | running | success | failed<br>    created_at: datetime = field(default_factory=datetime.utcnow)</pre><p>And the database setup:</p><pre># db.py<br>import sqlite3<br>import json</pre><pre>DB_PATH = &quot;orchestrator.db&quot;</pre><pre>def init_db():<br>    conn = sqlite3.connect(DB_PATH)<br>    conn.execute(&quot;&quot;&quot;<br>        CREATE TABLE IF NOT EXISTS workflows (<br>            id TEXT PRIMARY KEY,<br>            name TEXT NOT NULL,<br>            description TEXT,<br>            status TEXT DEFAULT &#39;idle&#39;,<br>            created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP<br>        )<br>    &quot;&quot;&quot;)<br>    conn.execute(&quot;&quot;&quot;<br>        CREATE TABLE IF NOT EXISTS tasks (<br>            id TEXT PRIMARY KEY,<br>            workflow_id TEXT NOT NULL,<br>            task_type TEXT NOT NULL,<br>            name TEXT NOT NULL,<br>            params TEXT NOT NULL,       -- JSON<br>            depends_on TEXT NOT NULL,   -- JSON array of task IDs<br>            status TEXT DEFAULT &#39;pending&#39;,<br>            result TEXT,                -- JSON<br>            error TEXT,<br>            started_at TIMESTAMP,<br>            finished_at TIMESTAMP,<br>            FOREIGN KEY (workflow_id) REFERENCES workflows(id)<br>        )<br>    &quot;&quot;&quot;)<br>    conn.commit()<br>    conn.close()</pre><h3>2.2 The Task Registry</h3><p>The Task Registry is where your task types live. It’s a simple decorator pattern that maps a string type name to a Python function. Any new capability you add — a new API connector, a new transformation — is registered here.</p><pre># registry.py<br>from typing import Callable, Any</pre><pre>_REGISTRY: dict[str, Callable] = {}</pre><pre>def register(task_type: str):<br>    &quot;&quot;&quot;Decorator to register a task handler.&quot;&quot;&quot;<br>    def decorator(fn: Callable):<br>        _REGISTRY[task_type] = fn<br>        return fn<br>    return decorator</pre><pre>def get_task_handler(task_type: str) -&gt; Callable:<br>    handler = _REGISTRY.get(task_type)<br>    if not handler:<br>        raise ValueError(f&quot;Unknown task type: &#39;{task_type}&#39;. &quot;<br>                          f&quot;Available: {list(_REGISTRY.keys())}&quot;)<br>    return handler</pre><p>Now you can register tasks anywhere in your codebase:</p><pre># tasks/extract.py<br>from registry import register</pre><pre>@register(&quot;extract_api&quot;)<br>async def extract_from_api(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;Extract data from a REST API endpoint.&quot;&quot;&quot;<br>    import httpx<br>    async with httpx.AsyncClient() as client:<br>        response = await client.get(<br>            params[&quot;url&quot;],<br>            headers=params.get(&quot;headers&quot;, {}),<br>            params=params.get(&quot;query_params&quot;, {})<br>        )<br>        response.raise_for_status()<br>        return response.json()</pre><pre>@register(&quot;extract_db&quot;)<br>async def extract_from_database(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;Extract data from a PostgreSQL database.&quot;&quot;&quot;<br>    import asyncpg<br>    conn = await asyncpg.connect(params[&quot;connection_string&quot;])<br>    rows = await conn.fetch(params[&quot;query&quot;])<br>    await conn.close()<br>    return [dict(row) for row in rows]</pre><h3>2.3 DAG Dependency Resolution</h3><p>The heart of the orchestrator. Before running any tasks, we need to compute a valid execution order — one where every task runs only after all its dependencies are complete. This is a classic <strong>topological sort</strong>.</p><pre># dag.py<br>from collections import defaultdict, deque<br>from models import Task</pre><pre>def resolve_execution_order(tasks: list[Task]) -&gt; list[list[Task]]:<br>    &quot;&quot;&quot;<br>    Returns tasks grouped into execution waves.<br>    Tasks in the same wave can run in parallel.</pre><pre>    Example:<br>      Wave 0: [extract_api, extract_db]        &lt;- no dependencies<br>      Wave 1: [transform_clean]                &lt;- depends on wave 0<br>      Wave 2: [transform_enrich, validate]      &lt;- depends on wave 1<br>      Wave 3: [load_warehouse]                  &lt;- depends on wave 2<br>    &quot;&quot;&quot;<br>    task_map = {t.id: t for t in tasks}<br>    in_degree = {t.id: 0 for t in tasks}<br>    graph = defaultdict(list)</pre><pre>    # Build the adjacency list<br>    for task in tasks:<br>        for dep_id in task.depends_on:<br>            graph[dep_id].append(task.id)<br>            in_degree[task.id] += 1</pre><pre>    # Kahn&#39;s algorithm - produces execution waves<br>    queue = deque([t for t in tasks if in_degree[t.id] == 0])<br>    waves = []</pre><pre>    while queue:<br>        wave = []<br>        next_queue = deque()<br>        for _ in range(len(queue)):<br>            task = queue.popleft()<br>            wave.append(task)<br>            for neighbor_id in graph[task.id]:<br>                in_degree[neighbor_id] -= 1<br>                if in_degree[neighbor_id] == 0:<br>                    next_queue.append(task_map[neighbor_id])<br>        waves.append(wave)<br>        queue = next_queue</pre><pre>    # Detect cycles<br>    executed = sum(len(w) for w in waves)<br>    if executed != len(tasks):<br>        raise ValueError(&quot;Workflow contains a circular dependency!&quot;)</pre><pre>    return waves</pre><p>This gives you <strong>parallel execution within each wave</strong> — tasks with no dependency between them run at the same time, dramatically speeding up complex pipelines.</p><h3>Part 3: The ETL Engine</h3><p>The ETL Engine is where your business logic lives. Each layer is an abstraction over how data moves between systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yJ7KKt0ts67tdPit.jpg" /></figure><blockquote><em>Extract from anywhere. Transform to your schema. Load wherever it needs to go.</em></blockquote><h3>3.1 Extraction Layer</h3><p>Extractors read raw data from external systems and return it as a list of Python dictionaries. The interface is always the same — only the implementation changes.</p><pre># etl/extractors.py<br>from registry import register<br>from typing import Any<br>import httpx<br>import csv<br>import io</pre><pre>@register(&quot;extract_api&quot;)<br>async def extract_api(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Pull data from a paginated REST API.<br>    Params: { url, headers, query_params, pagination_key }<br>    &quot;&quot;&quot;<br>    results = []<br>    next_url = params[&quot;url&quot;]</pre><pre>    async with httpx.AsyncClient(timeout=30) as client:<br>        while next_url:<br>            resp = await client.get(<br>                next_url,<br>                headers=params.get(&quot;headers&quot;, {}),<br>                params=params.get(&quot;query_params&quot;, {})<br>            )<br>            resp.raise_for_status()<br>            data = resp.json()</pre><pre>            # Handle paginated APIs<br>            if isinstance(data, list):<br>                results.extend(data)<br>                next_url = None<br>            else:<br>                items = data.get(params.get(&quot;data_key&quot;, &quot;data&quot;), [])<br>                results.extend(items)<br>                next_url = data.get(params.get(&quot;pagination_key&quot;, &quot;next&quot;))</pre><pre>    return results</pre><pre>@register(&quot;extract_csv&quot;)<br>async def extract_csv(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Read records from a local or remote CSV file.<br>    Params: { path } or { url }<br>    &quot;&quot;&quot;<br>    if &quot;url&quot; in params:<br>        async with httpx.AsyncClient() as client:<br>            resp = await client.get(params[&quot;url&quot;])<br>            content = resp.text<br>    else:<br>        with open(params[&quot;path&quot;], &quot;r&quot;) as f:<br>            content = f.read()</pre><pre>    reader = csv.DictReader(io.StringIO(content))<br>    return [row for row in reader]</pre><pre>@register(&quot;extract_script&quot;)<br>async def extract_custom_script(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Run a custom Python script and capture its output.<br>    Params: { script_path, script_args }<br>    &quot;&quot;&quot;<br>    import asyncio<br>    import json</pre><pre>    proc = await asyncio.create_subprocess_exec(<br>        &quot;python&quot;, params[&quot;script_path&quot;], *params.get(&quot;script_args&quot;, []),<br>        stdout=asyncio.subprocess.PIPE,<br>        stderr=asyncio.subprocess.PIPE<br>    )<br>    stdout, stderr = await proc.communicate()</pre><pre>    if proc.returncode != 0:<br>        raise RuntimeError(f&quot;Script failed: {stderr.decode()}&quot;)</pre><pre>    return json.loads(stdout.decode())</pre><h3>3.2 Transformation Layer</h3><p>Transformers take raw records and reshape them. They run synchronously since they’re pure in-memory operations.</p><pre># etl/transformers.py<br>from registry import register<br>from typing import Any</pre><pre>@register(&quot;transform_map&quot;)<br>async def transform_map(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Rename and select fields using a field_map.<br>    Params: { field_map: { &quot;source_field&quot;: &quot;target_field&quot; } }<br>    &quot;&quot;&quot;<br>    source_data = context[&quot;input&quot;]  # Data from upstream task<br>    field_map = params[&quot;field_map&quot;]</pre><pre>    return [<br>        {target: row.get(source) for source, target in field_map.items()}<br>        for row in source_data<br>    ]</pre><pre>@register(&quot;transform_clean&quot;)<br>async def transform_clean(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Remove nulls, strip whitespace, normalize types.<br>    Params: { drop_null_fields, strip_strings, date_fields }<br>    &quot;&quot;&quot;<br>    source_data = context[&quot;input&quot;]<br>    cleaned = []</pre><pre>    for row in source_data:<br>        clean_row = {}<br>        for key, value in row.items():<br>            # Drop nulls if configured<br>            if value is None and params.get(&quot;drop_null_fields&quot;):<br>                continue<br>            # Strip strings<br>            if isinstance(value, str) and params.get(&quot;strip_strings&quot;, True):<br>                value = value.strip()<br>            clean_row[key] = value<br>        cleaned.append(clean_row)</pre><pre>    return cleaned</pre><pre>@register(&quot;transform_enrich&quot;)<br>async def transform_enrich(params: dict, context: dict) -&gt; list[dict]:<br>    &quot;&quot;&quot;<br>    Enrich records by joining with a lookup API or static map.<br>    Params: { lookup_url, match_field, enrich_field }<br>    &quot;&quot;&quot;<br>    import httpx<br>    source_data = context[&quot;input&quot;]</pre><pre>    async with httpx.AsyncClient() as client:<br>        lookup_resp = await client.get(params[&quot;lookup_url&quot;])<br>        lookup_map = {<br>            item[params[&quot;match_field&quot;]]: item<br>            for item in lookup_resp.json()<br>        }</pre><pre>    enriched = []<br>    for row in source_data:<br>        key = row.get(params[&quot;match_field&quot;])<br>        extra = lookup_map.get(key, {})<br>        enriched.append({**row, **extra})</pre><pre>    return enriched</pre><h3>3.3 Loading Layer</h3><p>Loaders write transformed data to a destination. They should be idempotent wherever possible.</p><pre># etl/loaders.py<br>from registry import register<br>import httpx<br>import json</pre><pre>@register(&quot;load_api&quot;)<br>async def load_to_api(params: dict, context: dict) -&gt; dict:<br>    &quot;&quot;&quot;<br>    POST each record to a REST API endpoint.<br>    Params: { url, headers, batch_size }<br>    &quot;&quot;&quot;<br>    data = context[&quot;input&quot;]<br>    batch_size = params.get(&quot;batch_size&quot;, 100)<br>    success_count = 0</pre><pre>    async with httpx.AsyncClient() as client:<br>        for i in range(0, len(data), batch_size):<br>            batch = data[i : i + batch_size]<br>            resp = await client.post(<br>                params[&quot;url&quot;],<br>                headers=params.get(&quot;headers&quot;, {}),<br>                json=batch<br>            )<br>            resp.raise_for_status()<br>            success_count += len(batch)</pre><pre>    return {&quot;loaded&quot;: success_count, &quot;destination&quot;: params[&quot;url&quot;]}</pre><pre>@register(&quot;load_db&quot;)<br>async def load_to_database(params: dict, context: dict) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Upsert records into a PostgreSQL table.<br>    Params: { connection_string, table, conflict_key }<br>    &quot;&quot;&quot;<br>    import asyncpg<br>    data = context[&quot;input&quot;]</pre><pre>    if not data:<br>        return {&quot;loaded&quot;: 0}</pre><pre>    conn = await asyncpg.connect(params[&quot;connection_string&quot;])<br>    columns = list(data[0].keys())<br>    conflict_key = params.get(&quot;conflict_key&quot;, &quot;id&quot;)</pre><pre>    # Build upsert query<br>    placeholders = &quot;, &quot;.join(f&quot;${i+1}&quot; for i in range(len(columns)))<br>    update_set = &quot;, &quot;.join(<br>        f&quot;{col} = EXCLUDED.{col}&quot;<br>        for col in columns if col != conflict_key<br>    )</pre><pre>    query = f&quot;&quot;&quot;<br>        INSERT INTO {params[&quot;table&quot;]} ({&quot;, &quot;.join(columns)})<br>        VALUES ({placeholders})<br>        ON CONFLICT ({conflict_key}) DO UPDATE SET {update_set}<br>    &quot;&quot;&quot;</pre><pre>    records = [tuple(row[col] for col in columns) for row in data]<br>    await conn.executemany(query, records)<br>    await conn.close()</pre><pre>    return {&quot;loaded&quot;: len(records), &quot;table&quot;: params[&quot;table&quot;]}</pre><pre>@register(&quot;load_csv&quot;)<br>async def load_to_csv(params: dict, context: dict) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Write records to a CSV file.<br>    Params: { output_path }<br>    &quot;&quot;&quot;<br>    import csv<br>    data = context[&quot;input&quot;]</pre><pre>    if not data:<br>        return {&quot;loaded&quot;: 0}</pre><pre>    with open(params[&quot;output_path&quot;], &quot;w&quot;, newline=&quot;&quot;) as f:<br>        writer = csv.DictWriter(f, fieldnames=data[0].keys())<br>        writer.writeheader()<br>        writer.writerows(data)</pre><pre>    return {&quot;loaded&quot;: len(data), &quot;path&quot;: params[&quot;output_path&quot;]}</pre><h3>Part 4: The Execution Runner</h3><p>The runner ties everything together. It fetches the workflow, resolves the DAG, and runs each wave of tasks — passing outputs from one task as inputs to the next.</p><pre># runner.py<br>import asyncio<br>from datetime import datetime<br>from models import Task, Workflow<br>from dag import resolve_execution_order<br>from registry import get_task_handler<br>from db import update_task_status, get_workflow_tasks</pre><pre>async def run_task(task: Task, context: dict) -&gt; any:<br>    &quot;&quot;&quot;Execute a single task with its registered handler.&quot;&quot;&quot;<br>    handler = get_task_handler(task.task_type)<br>    return await handler(task.params, context)</pre><pre>async def execute_workflow(workflow: Workflow, broadcast=None):<br>    &quot;&quot;&quot;<br>    Full workflow execution loop.<br>    `broadcast` is an optional async callable for WebSocket updates.<br>    &quot;&quot;&quot;<br>    tasks = await get_workflow_tasks(workflow.id)<br>    waves = resolve_execution_order(tasks)</pre><pre>    # Shared context: task results flow through here<br>    execution_context: dict[str, any] = {}</pre><pre>    for wave_index, wave in enumerate(waves):<br>        print(f&quot;⚡ Executing wave {wave_index + 1}: {[t.name for t in wave]}&quot;)</pre><pre>        # Run all tasks in this wave in parallel<br>        async def run_one(task: Task):<br>            task.started_at = datetime.utcnow()<br>            await update_task_status(task.id, &quot;running&quot;)<br>            if broadcast:<br>                await broadcast({&quot;task_id&quot;: task.id, &quot;status&quot;: &quot;running&quot;})</pre><pre>            # Collect outputs from dependency tasks as input<br>            dep_outputs = [<br>                execution_context[dep_id]<br>                for dep_id in task.depends_on<br>                if dep_id in execution_context<br>            ]</pre><pre>            # Flatten if multiple inputs (merge strategy)<br>            merged_input = []<br>            for output in dep_outputs:<br>                if isinstance(output, list):<br>                    merged_input.extend(output)</pre><pre>            context = {&quot;input&quot;: merged_input, &quot;global&quot;: execution_context}</pre><pre>            try:<br>                result = await run_task(task, context)<br>                execution_context[task.id] = result<br>                task.status = &quot;success&quot;<br>                task.result = result<br>                task.finished_at = datetime.utcnow()<br>                await update_task_status(task.id, &quot;success&quot;, result=result)<br>                if broadcast:<br>                    await broadcast({&quot;task_id&quot;: task.id, &quot;status&quot;: &quot;success&quot;})<br>            except Exception as e:<br>                task.status = &quot;failed&quot;<br>                task.error = str(e)<br>                task.finished_at = datetime.utcnow()<br>                await update_task_status(task.id, &quot;failed&quot;, error=str(e))<br>                if broadcast:<br>                    await broadcast({&quot;task_id&quot;: task.id, &quot;status&quot;: &quot;failed&quot;, &quot;error&quot;: str(e)})<br>                raise  # Abort the workflow on failure</pre><pre>        await asyncio.gather(*[run_one(t) for t in wave])</pre><pre>    return execution_context</pre><p>The broadcast callback is the WebSocket hook — every time a task changes state, the frontend gets a real-time update.</p><h3>Part 5: FastAPI — The Bridge</h3><p>A lean FastAPI app exposes the workflow engine to the frontend.</p><pre># api.py<br>from fastapi import FastAPI, WebSocket<br>from fastapi.middleware.cors import CORSMiddleware<br>import asyncio<br>import uuid</pre><pre>from models import Workflow, Task<br>from db import save_workflow, get_workflow<br>from runner import execute_workflow</pre><pre>app = FastAPI(title=&quot;ETL Orchestrator API&quot;)</pre><pre>app.add_middleware(<br>    CORSMiddleware,<br>    allow_origins=[&quot;http://localhost:5173&quot;],  # Vite dev server<br>    allow_methods=[&quot;*&quot;],<br>    allow_headers=[&quot;*&quot;],<br>)</pre><pre># --- Workflow CRUD ---</pre><pre>@app.post(&quot;/workflows&quot;)<br>async def create_workflow(payload: dict):<br>    &quot;&quot;&quot;Save a workflow definition from the ReactFlow canvas.&quot;&quot;&quot;<br>    workflow_id = str(uuid.uuid4())</pre><pre>    tasks = [<br>        Task(<br>            id=node[&quot;id&quot;],<br>            workflow_id=workflow_id,<br>            task_type=node[&quot;data&quot;][&quot;taskType&quot;],<br>            name=node[&quot;data&quot;][&quot;label&quot;],<br>            params=node[&quot;data&quot;].get(&quot;params&quot;, {}),<br>            depends_on=[<br>                edge[&quot;source&quot;]<br>                for edge in payload.get(&quot;edges&quot;, [])<br>                if edge[&quot;target&quot;] == node[&quot;id&quot;]<br>            ]<br>        )<br>        for node in payload[&quot;nodes&quot;]<br>    ]</pre><pre>    workflow = Workflow(<br>        id=workflow_id,<br>        name=payload[&quot;name&quot;],<br>        description=payload.get(&quot;description&quot;, &quot;&quot;),<br>        tasks=tasks<br>    )</pre><pre>    await save_workflow(workflow)<br>    return {&quot;id&quot;: workflow_id, &quot;status&quot;: &quot;saved&quot;}</pre><pre>@app.get(&quot;/workflows/{workflow_id}&quot;)<br>async def get_workflow_endpoint(workflow_id: str):<br>    return await get_workflow(workflow_id)</pre><pre># --- Execution ---</pre><pre>@app.post(&quot;/workflows/{workflow_id}/run&quot;)<br>async def trigger_run(workflow_id: str):<br>    workflow = await get_workflow(workflow_id)<br>    # Fire-and-forget: run in background<br>    asyncio.create_task(execute_workflow(workflow))<br>    return {&quot;status&quot;: &quot;started&quot;, &quot;workflow_id&quot;: workflow_id}</pre><pre># --- Real-time Updates via WebSocket ---</pre><pre>@app.websocket(&quot;/ws/{workflow_id}&quot;)<br>async def websocket_status(websocket: WebSocket, workflow_id: str):<br>    await websocket.accept()<br>    workflow = await get_workflow(workflow_id)</pre><pre>    async def broadcast(message: dict):<br>        await websocket.send_json(message)</pre><pre>    try:<br>        await execute_workflow(workflow, broadcast=broadcast)<br>        await websocket.send_json({&quot;status&quot;: &quot;workflow_complete&quot;})<br>    except Exception as e:<br>        await websocket.send_json({&quot;status&quot;: &quot;workflow_failed&quot;, &quot;error&quot;: str(e)})<br>    finally:<br>        await websocket.close()</pre><h3>Part 6: The Vite + ReactFlow Frontend</h3><p>Now the fun part — the visual designer. We’ll build a Vite + React app with ReactFlow for the canvas.</p><pre>npm create vite@latest etl-designer -- --template react<br>cd etl-designer<br>npm install @xyflow/react<br>npm install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*usm1t3oZ3cU-IV4b.jpg" /></figure><blockquote><em>Drag task nodes from the sidebar, connect them with edges, configure parameters, and hit Run — the canvas sends the full graph to the Python backend.</em></blockquote><h3>6.1 Custom Task Node</h3><p>Each node on the canvas is a React component. We use Handle from ReactFlow to define connection points and color-code by task type.</p><pre>// components/TaskNode.jsx<br>import { Handle, Position } from &#39;@xyflow/react&#39;;</pre><pre>const TYPE_COLORS = {<br>  extract: &#39;#4f9eff&#39;,<br>  transform: &#39;#a855f7&#39;,<br>  load: &#39;#22c55e&#39;,<br>};</pre><pre>const STATUS_COLORS = {<br>  pending: &#39;#6b7280&#39;,<br>  running: &#39;#f97316&#39;,<br>  success: &#39;#22c55e&#39;,<br>  failed: &#39;#ef4444&#39;,<br>};</pre><pre>export function TaskNode({ data, selected }) {<br>  const color = TYPE_COLORS[data.category] || &#39;#6b7280&#39;;<br>  const statusColor = STATUS_COLORS[data.status || &#39;pending&#39;];</pre><pre>  return (<br>    &lt;div<br>      style={{<br>        background: &#39;#1a1f2e&#39;,<br>        border: `1px solid ${selected ? color : &#39;#2d3748&#39;}`,<br>        borderTop: `3px solid ${color}`,<br>        borderRadius: &#39;8px&#39;,<br>        padding: &#39;12px 16px&#39;,<br>        minWidth: &#39;200px&#39;,<br>        boxShadow: selected ? `0 0 12px ${color}44` : &#39;none&#39;,<br>        transition: &#39;all 0.2s ease&#39;,<br>      }}<br>    &gt;<br>      &lt;Handle type=&quot;target&quot; position={Position.Left} /&gt;</pre><pre>      &lt;div style={{ display: &#39;flex&#39;, alignItems: &#39;center&#39;, gap: &#39;8px&#39; }}&gt;<br>        &lt;div<br>          style={{<br>            width: 8,<br>            height: 8,<br>            borderRadius: &#39;50%&#39;,<br>            background: statusColor,<br>            boxShadow: data.status === &#39;running&#39;<br>              ? `0 0 8px ${statusColor}` : &#39;none&#39;,<br>          }}<br>        /&gt;<br>        &lt;span style={{ color: &#39;#e2e8f0&#39;, fontWeight: 600, fontSize: &#39;13px&#39; }}&gt;<br>          {data.label}<br>        &lt;/span&gt;<br>      &lt;/div&gt;</pre><pre>      &lt;div style={{ color: &#39;#718096&#39;, fontSize: &#39;11px&#39;, marginTop: &#39;4px&#39; }}&gt;<br>        {data.taskType}<br>      &lt;/div&gt;</pre><pre>      {data.status &amp;&amp; (<br>        &lt;div<br>          style={{<br>            color: statusColor,<br>            fontSize: &#39;10px&#39;,<br>            marginTop: &#39;6px&#39;,<br>            textTransform: &#39;uppercase&#39;,<br>            letterSpacing: &#39;0.5px&#39;,<br>          }}<br>        &gt;<br>          {data.status}<br>        &lt;/div&gt;<br>      )}</pre><pre>      &lt;Handle type=&quot;source&quot; position={Position.Right} /&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><h3>6.2 Task Catalog Sidebar</h3><p>The sidebar lists all available task types, draggable onto the canvas.</p><pre>// components/TaskCatalog.jsx<br>const TASK_CATALOG = [<br>  { category: &#39;extract&#39;, type: &#39;extract_api&#39;, label: &#39;REST API Source&#39; },<br>  { category: &#39;extract&#39;, type: &#39;extract_db&#39;, label: &#39;Database Source&#39; },<br>  { category: &#39;extract&#39;, type: &#39;extract_csv&#39;, label: &#39;CSV File Source&#39; },<br>  { category: &#39;extract&#39;, type: &#39;extract_script&#39;, label: &#39;Custom Script&#39; },<br>  { category: &#39;transform&#39;, type: &#39;transform_map&#39;, label: &#39;Field Mapper&#39; },<br>  { category: &#39;transform&#39;, type: &#39;transform_clean&#39;, label: &#39;Data Cleaner&#39; },<br>  { category: &#39;transform&#39;, type: &#39;transform_enrich&#39;, label: &#39;Enricher&#39; },<br>  { category: &#39;load&#39;, type: &#39;load_api&#39;, label: &#39;API Destination&#39; },<br>  { category: &#39;load&#39;, type: &#39;load_db&#39;, label: &#39;Database Writer&#39; },<br>  { category: &#39;load&#39;, type: &#39;load_csv&#39;, label: &#39;CSV Export&#39; },<br>];</pre><pre>const CATEGORY_COLORS = {<br>  extract: &#39;#4f9eff&#39;,<br>  transform: &#39;#a855f7&#39;,<br>  load: &#39;#22c55e&#39;,<br>};</pre><pre>export function TaskCatalog() {<br>  const onDragStart = (e, taskType, label, category) =&gt; {<br>    e.dataTransfer.setData(&#39;taskType&#39;, taskType);<br>    e.dataTransfer.setData(&#39;label&#39;, label);<br>    e.dataTransfer.setData(&#39;category&#39;, category);<br>    e.dataTransfer.effectAllowed = &#39;move&#39;;<br>  };</pre><pre>  return (<br>    &lt;div style={{ width: &#39;220px&#39;, background: &#39;#0d1117&#39;, padding: &#39;16px&#39;, borderRight: &#39;1px solid #1e2a3a&#39; }}&gt;<br>      &lt;h3 style={{ color: &#39;#e2e8f0&#39;, fontSize: &#39;13px&#39;, fontWeight: 700, marginBottom: &#39;16px&#39; }}&gt;<br>        TASK CATALOG<br>      &lt;/h3&gt;<br>      {[&#39;extract&#39;, &#39;transform&#39;, &#39;load&#39;].map(cat =&gt; (<br>        &lt;div key={cat} style={{ marginBottom: &#39;16px&#39; }}&gt;<br>          &lt;div style={{ color: CATEGORY_COLORS[cat], fontSize: &#39;11px&#39;, fontWeight: 700, marginBottom: &#39;8px&#39;, textTransform: &#39;uppercase&#39; }}&gt;<br>            {cat}<br>          &lt;/div&gt;<br>          {TASK_CATALOG.filter(t =&gt; t.category === cat).map(task =&gt; (<br>            &lt;div<br>              key={task.type}<br>              draggable<br>              onDragStart={(e) =&gt; onDragStart(e, task.type, task.label, task.category)}<br>              style={{<br>                background: &#39;#1a1f2e&#39;,<br>                border: &#39;1px solid #2d3748&#39;,<br>                borderRadius: &#39;6px&#39;,<br>                padding: &#39;8px 10px&#39;,<br>                marginBottom: &#39;4px&#39;,<br>                cursor: &#39;grab&#39;,<br>                color: &#39;#a0aec0&#39;,<br>                fontSize: &#39;12px&#39;,<br>                transition: &#39;all 0.15s ease&#39;,<br>              }}<br>            &gt;<br>              {task.label}<br>            &lt;/div&gt;<br>          ))}<br>        &lt;/div&gt;<br>      ))}<br>    &lt;/div&gt;<br>  );<br>}</pre><h3>6.3 The Main Canvas</h3><pre>// WorkflowCanvas.jsx<br>import { useCallback, useRef, useState } from &#39;react&#39;;<br>import { ReactFlow, addEdge, useNodesState, useEdgesState, Background, Controls } from &#39;@xyflow/react&#39;;<br>import &#39;@xyflow/react/dist/style.css&#39;;<br>import { TaskNode } from &#39;./components/TaskNode&#39;;<br>import { TaskCatalog } from &#39;./components/TaskCatalog&#39;;</pre><pre>const nodeTypes = { task: TaskNode };<br>let nodeIdCounter = 1;</pre><pre>export default function WorkflowCanvas() {<br>  const [nodes, setNodes, onNodesChange] = useNodesState([]);<br>  const [edges, setEdges, onEdgesChange] = useEdgesState([]);<br>  const [status, setStatus] = useState(&#39;idle&#39;);<br>  const reactFlowWrapper = useRef(null);<br>  const [rfInstance, setRfInstance] = useState(null);</pre><pre>  const onConnect = useCallback(<br>    (params) =&gt; setEdges((eds) =&gt; addEdge({ ...params, animated: true }, eds)),<br>    []<br>  );</pre><pre>  const onDrop = useCallback((e) =&gt; {<br>    e.preventDefault();<br>    const taskType = e.dataTransfer.getData(&#39;taskType&#39;);<br>    const label = e.dataTransfer.getData(&#39;label&#39;);<br>    const category = e.dataTransfer.getData(&#39;category&#39;);</pre><pre>    const bounds = reactFlowWrapper.current.getBoundingClientRect();<br>    const position = rfInstance.screenToFlowPosition({<br>      x: e.clientX - bounds.left,<br>      y: e.clientY - bounds.top,<br>    });</pre><pre>    const newNode = {<br>      id: `task-${nodeIdCounter++}`,<br>      type: &#39;task&#39;,<br>      position,<br>      data: { label, taskType, category, status: &#39;pending&#39;, params: {} },<br>    };</pre><pre>    setNodes((nds) =&gt; [...nds, newNode]);<br>  }, [rfInstance]);</pre><pre>  const saveWorkflow = async () =&gt; {<br>    const flow = rfInstance.toObject();<br>    const response = await fetch(&#39;http://localhost:8000/workflows&#39;, {<br>      method: &#39;POST&#39;,<br>      headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>      body: JSON.stringify({ name: &#39;My Pipeline&#39;, nodes: flow.nodes, edges: flow.edges }),<br>    });<br>    const { id } = await response.json();<br>    return id;<br>  };</pre><pre>  const runWorkflow = async () =&gt; {<br>    const workflowId = await saveWorkflow();<br>    setStatus(&#39;running&#39;);</pre><pre>    // Open WebSocket for real-time updates<br>    const ws = new WebSocket(`ws://localhost:8000/ws/${workflowId}`);</pre><pre>    ws.onmessage = (event) =&gt; {<br>      const msg = JSON.parse(event.data);<br>      if (msg.task_id) {<br>        // Update the corresponding node&#39;s status<br>        setNodes((nds) =&gt;<br>          nds.map((n) =&gt;<br>            n.id === msg.task_id<br>              ? { ...n, data: { ...n.data, status: msg.status } }<br>              : n<br>          )<br>        );<br>      }<br>      if (msg.status === &#39;workflow_complete&#39;) setStatus(&#39;success&#39;);<br>      if (msg.status === &#39;workflow_failed&#39;) setStatus(&#39;failed&#39;);<br>    };<br>  };</pre><pre>  return (<br>    &lt;div style={{ display: &#39;flex&#39;, height: &#39;100vh&#39;, background: &#39;#0d1117&#39; }}&gt;<br>      &lt;TaskCatalog /&gt;<br>      &lt;div style={{ flex: 1, position: &#39;relative&#39; }}&gt;<br>        {/* Toolbar */}<br>        &lt;div style={{ position: &#39;absolute&#39;, top: 16, left: 16, zIndex: 10, display: &#39;flex&#39;, gap: &#39;8px&#39; }}&gt;<br>          &lt;button onClick={saveWorkflow} style={btnStyle(&#39;#2d3748&#39;, &#39;#e2e8f0&#39;)}&gt;<br>            💾 Save<br>          &lt;/button&gt;<br>          &lt;button onClick={runWorkflow} style={btnStyle(&#39;#22c55e&#39;, &#39;#fff&#39;)}&gt;<br>            ▶ Run Pipeline<br>          &lt;/button&gt;<br>          &lt;div style={{ color: &#39;#4f9eff&#39;, fontSize: &#39;13px&#39;, padding: &#39;8px 12px&#39; }}&gt;<br>            Status: {status}<br>          &lt;/div&gt;<br>        &lt;/div&gt;</pre><pre>        &lt;div ref={reactFlowWrapper} style={{ width: &#39;100%&#39;, height: &#39;100%&#39; }}&gt;<br>          &lt;ReactFlow<br>            nodes={nodes}<br>            edges={edges}<br>            onNodesChange={onNodesChange}<br>            onEdgesChange={onEdgesChange}<br>            onConnect={onConnect}<br>            onDrop={onDrop}<br>            onDragOver={(e) =&gt; { e.preventDefault(); e.dataTransfer.dropEffect = &#39;move&#39;; }}<br>            onInit={setRfInstance}<br>            nodeTypes={nodeTypes}<br>            fitView<br>          &gt;<br>            &lt;Background color=&quot;#1e2a3a&quot; gap={20} /&gt;<br>            &lt;Controls /&gt;<br>          &lt;/ReactFlow&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><pre>const btnStyle = (bg, color) =&gt; ({<br>  background: bg, color, border: &#39;none&#39;, borderRadius: &#39;6px&#39;,<br>  padding: &#39;8px 16px&#39;, cursor: &#39;pointer&#39;, fontSize: &#39;13px&#39;, fontWeight: 600,<br>});</pre><h3>Part 7: End-to-End Example — Customer Data Sync</h3><p>Let’s walk through a real example: syncing customer records from a CRM API into a PostgreSQL warehouse, enriching them with geolocation data, and posting summaries to a Slack webhook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sQclxf0lfxTTor1f.jpg" /></figure><blockquote><em>The DAG execution: extract tasks run in parallel (wave 0), transformation tasks chain in order (waves 1–2), and the load task fires when all dependencies resolve.</em></blockquote><h3>Workflow Definition (as saved from the canvas)</h3><pre>{<br>  &quot;name&quot;: &quot;Customer Sync Pipeline&quot;,<br>  &quot;nodes&quot;: [<br>    {<br>      &quot;id&quot;: &quot;task-1&quot;,<br>      &quot;type&quot;: &quot;task&quot;,<br>      &quot;data&quot;: {<br>        &quot;taskType&quot;: &quot;extract_api&quot;,<br>        &quot;label&quot;: &quot;CRM API Source&quot;,<br>        &quot;params&quot;: {<br>          &quot;url&quot;: &quot;https://api.crm.example.com/v2/customers&quot;,<br>          &quot;headers&quot;: { &quot;Authorization&quot;: &quot;Bearer ${CRM_TOKEN}&quot; },<br>          &quot;data_key&quot;: &quot;customers&quot;,<br>          &quot;pagination_key&quot;: &quot;next_page_url&quot;<br>        }<br>      }<br>    },<br>    {<br>      &quot;id&quot;: &quot;task-2&quot;,<br>      &quot;type&quot;: &quot;task&quot;,<br>      &quot;data&quot;: {<br>        &quot;taskType&quot;: &quot;transform_clean&quot;,<br>        &quot;label&quot;: &quot;Clean Records&quot;,<br>        &quot;params&quot;: {<br>          &quot;drop_null_fields&quot;: true,<br>          &quot;strip_strings&quot;: true<br>        }<br>      }<br>    },<br>    {<br>      &quot;id&quot;: &quot;task-3&quot;,<br>      &quot;type&quot;: &quot;task&quot;,<br>      &quot;data&quot;: {<br>        &quot;taskType&quot;: &quot;transform_enrich&quot;,<br>        &quot;label&quot;: &quot;Add Geolocation&quot;,<br>        &quot;params&quot;: {<br>          &quot;lookup_url&quot;: &quot;https://api.ipstack.com/bulk?access_key=${IPSTACK_KEY}&quot;,<br>          &quot;match_field&quot;: &quot;ip_address&quot;,<br>          &quot;enrich_field&quot;: &quot;geo&quot;<br>        }<br>      }<br>    },<br>    {<br>      &quot;id&quot;: &quot;task-4&quot;,<br>      &quot;type&quot;: &quot;task&quot;,<br>      &quot;data&quot;: {<br>        &quot;taskType&quot;: &quot;load_db&quot;,<br>        &quot;label&quot;: &quot;Write to Warehouse&quot;,<br>        &quot;params&quot;: {<br>          &quot;connection_string&quot;: &quot;${WAREHOUSE_DSN}&quot;,<br>          &quot;table&quot;: &quot;customers_enriched&quot;,<br>          &quot;conflict_key&quot;: &quot;customer_id&quot;<br>        }<br>      }<br>    }<br>  ],<br>  &quot;edges&quot;: [<br>    { &quot;source&quot;: &quot;task-1&quot;, &quot;target&quot;: &quot;task-2&quot; },<br>    { &quot;source&quot;: &quot;task-2&quot;, &quot;target&quot;: &quot;task-3&quot; },<br>    { &quot;source&quot;: &quot;task-3&quot;, &quot;target&quot;: &quot;task-4&quot; }<br>  ]<br>}</pre><h3>Running It</h3><pre># Start the Python backend<br>uvicorn api:app --reload --port 8000</pre><pre># Start the Vite frontend<br>cd etl-designer &amp;&amp; npm run dev</pre><pre># Or trigger directly via API<br>curl -X POST <a href="http://localhost:8000/workflows/your-workflow-id/run">http://localhost:8000/workflows/your-workflow-id/run</a></pre><p>Watch the ReactFlow canvas come alive — each node’s status indicator transitions from gray (pending) → orange (running) → green (success) in real time as the WebSocket pushes updates.</p><h3>Extending the System</h3><p>The design is intentionally extensible. Adding a new capability is always the same pattern:</p><p><strong>New Extractor?</strong> Add @register(&quot;extract_s3&quot;) in etl/extractors.py and add the task type to the frontend catalog.</p><p><strong>New Transformer?</strong> Add @register(&quot;transform_aggregate&quot;) with your logic.</p><p><strong>Schedule support?</strong> Add a schedule field to the workflows table and use APScheduler to trigger execute_workflow on a cron.</p><p><strong>Retry logic?</strong> Wrap the run_task call with a retry decorator (tenacity library works perfectly here).</p><p><strong>Secrets management?</strong> Replace ${ENV_VAR} patterns in params with a lookup to HashiCorp Vault or AWS Secrets Manager before the task runs.</p><pre># Adding retry support in 5 lines<br>from tenacity import retry, stop_after_attempt, wait_exponential</pre><pre>@retry(stop=stop_after_attempt(3), wait=wait_exponential(min=1, max=10))<br>async def run_task_with_retry(task: Task, context: dict):<br>    return await run_task(task, context)</pre><h3>Why This Beats a Generic Tool for Your Use Case</h3><p>Concern Generic Tool (Airflow/n8n) This Approach Setup complexity High Minimal (pip + npm) Custom connectors Plugin/node required Just write a function Data control Varies 100% yours Visual designer Built-in (rigid) Fully customizable Dependency size Hundreds of MBs &lt; 10 MB Cost License / cloud fees Zero Debuggability Black-box internals Pure Python — set a breakpoint</p><p>The moment you need a connector that doesn’t exist, or a transformation that goes beyond what a UI can express, you’ll hit a wall with off-the-shelf tools. With this approach, there is no wall.</p><h3>What’s Next</h3><p>This is a foundation — a working, production-ready skeleton. From here, you can:</p><ul><li><strong>Add a scheduler</strong>: Trigger workflows on a cron using APScheduler or rq-scheduler</li><li><strong>Add observability</strong>: Pipe task logs to OpenTelemetry or a simple Postgres runs table</li><li><strong>Add parameterized runs</strong>: Pass runtime variables from the API (e.g., date ranges, environment targets)</li><li><strong>Multi-tenant support</strong>: Add a team_id to workflows for SaaS-style multi-user access</li><li><strong>Export as open standard</strong>: Serialize workflows to Apache Airflow DAG format for migration paths</li></ul><p>The architecture is intentionally simple because simplicity is what makes it maintainable. When it needs to grow, it grows on your terms.</p><h3>Wrapping Up</h3><p>We’ve built something genuinely useful: a visual workflow orchestrator where non-engineers can design data pipelines with drag-and-drop, and engineers control every detail of execution in plain Python.</p><p>The key architectural ideas to take away:</p><ul><li><strong>Workflow = data</strong> stored in a DB, not code embedded in a DAG file</li><li><strong>Task registry</strong> decouples what a task <em>is</em> from how it’s <em>discovered and run</em></li><li><strong>DAG resolution</strong> gives you parallel execution for free, with dependency safety</li><li><strong>WebSocket bridge</strong> makes the UI a live view of execution, not just a trigger button</li><li><strong>ETL as pluggable connectors</strong> means external systems are just another @register()</li></ul><p>Start minimal. Own your stack. Add complexity only when the problem demands it.</p><p><em>Building something with this architecture? I’d love to hear about it — </em><a href="/service/mailto:akashtqb06@gmail.com"><em>drop me a line</em></a><em>.</em> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d34b87178393" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visual Hierarchy: A Roadmap for Your User’s Eye]]></title>
            <link>https://medium.com/@akashtqb06/mastering-visual-hierarchy-a-roadmap-for-your-users-eye-e4295dfb5cfd?source=rss-bff321d1946a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4295dfb5cfd</guid>
            <category><![CDATA[user-experience-design]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[design-principles]]></category>
            <dc:creator><![CDATA[Akash Saravanan]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 15:02:14 GMT</pubDate>
            <atom:updated>2025-12-10T15:10:12.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Header Image" src="https://cdn-images-1.medium.com/max/1024/1*sGL_d1QsNcnXMQtWeBw-Aw.png" /></figure><p>Think of hierarchy as a roadmap for the eye. It arranges elements using size, colour, contrast, and alignment to tell the user exactly where to look first. Without it, your screen is just a clutter of equal elements, and the user is left wondering, “Where do I click?”</p><p>A good hierarchy eliminates friction. It allows users to scan a page, find exactly what they need, and act instantly. Here is how you can master it.</p><figure><img alt="A side-by-side comparison." src="https://cdn-images-1.medium.com/max/1024/1*tpSlLnb5YS9QWInPiTvGiw.png" /></figure><h3>The 5 Core Tools of Hierarchy</h3><p>Designers control the user’s attention using five main levers. You don’t need to use all of them at once, but knowing how they work is essential.</p><h3>1. Size: Bigger is Better (Sometimes)</h3><p>This is the most intuitive tool. Large elements grab attention. A bold 40px headline will always be read before a 12px caption.</p><ul><li><strong>The Tip:</strong> Make your most important text or buttons significantly larger than the surrounding content. If everything is big, nothing is big.</li></ul><h3>2. Color: The Power of the “Pop”</h3><p>Bright, saturated colours draw the eye faster than muted tones. Most successful UIs reserve one “accent colour” specifically for critical actions (like “Buy Now” or “Sign Up”) while keeping the rest of the interface neutral.</p><ul><li><strong>The Tip:</strong> Stick to a limited palette. If your “Cancel” button is red and your “Save” button is green, the user has to think. If only “Save” had colour, the choice would be automatic.</li></ul><h3>3. Contrast: Light vs. Dark</h3><p>High contrast signals importance. A bright white button on a dark background is impossible to miss.</p><ul><li><strong>Real World Example:</strong> When Uber wants you to focus on the “Where to?” search field, they place it in a contrasting box over the map. It screams, “Start Here.”</li></ul><h3>4. Alignment: Breaking the Grid</h3><p>Consistent alignment creates order. When you align text to the left, it feels organised. But, if you want something to stand out, <strong>break the alignment.</strong></p><ul><li><strong>The Tip:</strong> Use a grid for 90% of your content. Then, center-align your most important element (like a hero image or primary button). The break in the pattern acts like a spotlight.</li></ul><h3>5. Space: The Art of Isolation</h3><p>White space (negative space) is a power move. Giving an element “breathing room” isolates it and makes it look prestigious.</p><ul><li><strong>The Tip:</strong> Don’t cram. If you want users to notice a specific feature, increase the padding around it.</li></ul><figure><img alt="An infographic breaking down the Airbnb listing page." src="https://cdn-images-1.medium.com/max/1024/1*2ktUZSRPFKAc_1Gs8UtRnA.png" /><figcaption>=</figcaption></figure><h3>Real-World Examples</h3><p>You see good hierarchy every day. Here is how the giants do it:</p><ul><li><strong>centred Google Search:</strong> The ultimate example of <strong>space. </strong>The search bar is centred on a massive, empty white page. There is zero doubt about what you are supposed to do.</li><li><strong>Medium:</strong> A masterclass in <strong>typography. </strong>The title is massive, the subtitle is medium, and the body text is small. It allows the reader to scan hundreds of articles in seconds.</li><li><strong>Uber:</strong> A great use of <strong>positioning. </strong>The “Where to?” box is at the top (hierarchy of position) and uses high contrast against the map background.</li></ul><h3>Practical Tips for Your Next Design</h3><p>Ready to apply this? Try these quick wins:</p><ol><li><strong>Limit your fonts:</strong> Stick to 2–3 sizes (header, subheader, and body).</li><li><strong>The “Squint Test”:</strong> Sit back and squint at your screen until it goes blurry. Do the most important elements (like the CTA button) still stand out? If not, increase the contrast or size.</li><li><strong>Follow the “F” Pattern:</strong> In Western cultures, we scan screens in an “F” shape (top-left, across, then down). Put your logo or key headline in the top-left, and your navigation across the top.</li><li><strong>Check Accessibility:</strong> Use a contrast checker. High contrast isn’t just a stylistic choice; it ensures people with visual impairments can actually use your product.</li></ol><p><strong>The Bottom Line:</strong> Visual hierarchy isn’t just about making things look “clean”. It’s about empathy. It guides your user by the hand, reducing their mental load and helping them achieve their goal without friction.</p><p>In our earlier article, “<a href="https://medium.com/@akashtqb06/making-space-the-power-of-positive-and-negative-space-in-design-1c779a275c3e">Making Space: The Power of Positive and Negative Space in Design</a>”, we discussed how empty spaces allow a layout to breathe. Visual hierarchy takes that foundation and gives it direction. Where white space creates calm, hierarchy creates clarity. Together, they transform a collection of elements into an intuitive, user-centred experience that feels effortless to navigate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4295dfb5cfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Space: The Power of Positive and Negative Space in Design]]></title>
            <link>https://medium.com/@akashtqb06/making-space-the-power-of-positive-and-negative-space-in-design-1c779a275c3e?source=rss-bff321d1946a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c779a275c3e</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[visual-design]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[design-principles]]></category>
            <category><![CDATA[graphic-design]]></category>
            <dc:creator><![CDATA[Akash Saravanan]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 16:02:21 GMT</pubDate>
            <atom:updated>2025-11-20T16:20:09.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>Making Space: The Power of Positive and Negative Space in Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUJe9GFr_UZU87v-9eh2uQ.png" /></figure><p>Ever notice how a Google homepage feels open and calm while some interfaces feel crammed with information? That difference often comes down to how designers use <strong>positive and negative space</strong>. For UI/UX and graphic design, understanding these two is one of the simplest ways to level up clarity, usability, and visual appeal.</p><h3>What Are Positive and Negative Space?</h3><p><strong>Positive space</strong> is everything that carries content text, buttons, images, icons, cards, or illustrations.</p><p><strong>Negative space</strong> (often called <em>white space</em>) is the empty area around and between those elements. It doesn’t need to be white. It can be any background as long as it gives breathing room.</p><p>A helpful way to think about it: positive space is the message, negative space is the pause that helps people understand it.</p><h3>Why Space Matters</h3><h3>1. Clarity and Usability</h3><p>Crowded interfaces force the eyes to work harder. Giving elements room makes layouts feel approachable and easy to scan.</p><p>Spacing also reduces accidental taps or clicks. Simple padding around a button can make it instantly more usable.</p><h3>2. Readability</h3><p>Line height, margin, and spacing between paragraphs all shape how fast and comfortably someone reads text.</p><p>A cramped block of copy feels like a chore. A well-spaced paragraph feels effortless.</p><h3>3. Visual Hierarchy</h3><p>Space is a spotlight. The more room something gets, the more attention it naturally attracts.</p><p>Designers often isolate:</p><ul><li>Headlines</li><li>Calls to action</li><li>Key visuals</li></ul><p>This helps users instantly understand what matters most.</p><h3>4. Aesthetics</h3><p>Whitespace is a big part of how a brand “feels.” Clean spacing makes a product look modern and intentional. Many minimal brands rely on strategic emptiness to signal quality.</p><h3>Real-World Examples</h3><h3>Google Homepage</h3><p>Google’s landing page is almost entirely negative space. With only a logo and search bar in the center, your attention goes exactly where it should.</p><h3>Apple Product Pages</h3><p>Apple uses generous spacing around product photos and short text blocks. This breathing room gives products a premium, focused feel.</p><h3>FedEx Logo</h3><p>One of design’s most famous uses of negative space, the hidden arrow between the “E” and the “x”. Nothing extra was added. The arrow exists only because the surrounding space shapes it.</p><h3>How to Use Space More Intentionally</h3><h3>Start With Wireframes</h3><p>Rough layouts help you plan structure before colors and details distract you. Block out areas and test how much breathing room each section needs.</p><h3>Use Spacing Scales</h3><p>Most teams use a spacing scale like:</p><pre>4 / 8 / 12 / 16 / 24 / 32 / 48</pre><p>This keeps layouts consistent and makes design systems easier to maintain.</p><h3>Adjust Typography Carefully</h3><p>Increase line height to improve readability. Give headings more margin so sections don’t blend together.</p><p>A good starting point:</p><ul><li>Body text line height: 1.4 to 1.6</li><li>Extra spacing under paragraphs</li></ul><h3>Don’t Fear Empty Areas</h3><p>Blank space is not wasted space. If everything is shouting, nothing stands out.</p><p>Let important content breathe.</p><h3>Test With Users</h3><p>Quick usability tests often reveal when something feels cramped or too spread out. Small spacing tweaks can instantly change how intuitive a layout feels.</p><h3>Common Pitfalls</h3><ul><li><strong>Overpacking:</strong> Trying to fit too much leads to noise and confusion.</li><li><strong>Overspacing:</strong> Too much emptiness makes layouts feel unfinished.</li><li><strong>Inconsistent spacing:</strong> Random gaps weaken hierarchy and rhythm.</li></ul><p>Aim for balance. Give every element a clear reason to exist.</p><h3>Conclusion</h3><p>Positive and negative space work together to shape clarity, focus, and experience. Good space tells the eye where to go. It makes content easier to understand and interfaces easier to use.</p><p>When used intentionally, whitespace becomes a quiet superpower; one that turns a layout from “fine” into something that simply feels right.</p><p><strong>Further Reading:</strong></p><ul><li><a href="https://material.io/design/layout/spacing-methods.html">https://material.io/design/layout/spacing-methods.html</a></li><li><a href="https://www.interaction-design.org/literature/topics/visual-design">https://www.interaction-design.org/literature/topics/visual-design</a></li><li><a href="https://uxdesign.cc/">https://uxdesign.cc</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c779a275c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>