An open API service indexing awesome lists of open source software.

https://github.com/edycutjong/suture

๐Ÿฉบ Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.
https://github.com/edycutjong/suture

ai-agent fastapi fivetran gemini-api hackathon nextjs schema-drift self-healing supabase

Last synced: 20 days ago
JSON representation

๐Ÿฉบ Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.

Awesome Lists containing this project

README

          


Suture ๐Ÿฉบ


Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.


Suture Hero


[![Live Demo](https://img.shields.io/badge/๐Ÿš€_Live-Demo-06b6d4?style=for-the-badge)](https://suture.edycu.dev)
[![Pitch Deck](https://img.shields.io/badge/๐Ÿ“Š_Pitch-Deck-f59e0b?style=for-the-badge)](https://suture.edycu.dev/pitch-deck)
[![YouTube Demo](https://img.shields.io/badge/โ–ถ_YouTube-Demo-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://youtu.be/Mckrst7NF8Y)
[![Built for Google Cloud Rapid Agent](https://img.shields.io/badge/Devpost-Google_Cloud_Rapid_Agent-8b5cf6?style=for-the-badge)](https://rapid-agent.devpost.com/)


![Python](https://img.shields.io/badge/Python_3.12-3776AB?style=flat&logo=python&logoColor=white)
![Next.js](https://img.shields.io/badge/Next.js_16-black?style=flat&logo=next.js)
![React](https://img.shields.io/badge/React_19-61DAFB?style=flat&logo=react&logoColor=black)
![Gemini 3 Pro](https://img.shields.io/badge/Gemini_3_Pro-8E75B2?style=flat&logo=googlebard&logoColor=white)
![Tailwind](https://img.shields.io/badge/Tailwind_v4-38B2AC?style=flat&logo=tailwindcss&logoColor=white)
![Supabase](https://img.shields.io/badge/Supabase-3ECF8E?style=flat&logo=supabase&logoColor=white)
[![CI](https://github.com/edycutjong/suture/actions/workflows/ci.yml/badge.svg)](https://github.com/edycutjong/suture/actions/workflows/ci.yml)

---

## ๐Ÿ“ธ See it in Action

### ๐ŸŒ Landing Page
landing-1

### ๐Ÿ–ฅ๏ธ Dashboard โ€” Command Center
dashboard-1

### ๐Ÿค– Agent Terminal โ€” Autonomous Healing
agents

> **Self-healing infrastructure in action.** Schema Break โ†’ Webhook โ†’ Log Analysis โ†’ Schema Diff โ†’ AI Reasoning โ†’ API Patch โ†’ Re-Sync โ†’ โœ… GREEN.

---

## ๐Ÿ’ก The Problem & Solution

Schema drift is the #1 cause of data pipeline failures. When an upstream source changes its API schema โ€” renaming columns, adding fields, or deprecating endpoints โ€” downstream Fivetran connectors break silently. The current fix is manual: 2-4 hours of comparing schemas, guessing mappings, and hoping nothing else breaks.

**Average cost per incident: $500โ€“$2,000 in engineering time + data downtime.**

**Suture** solves this by turning Fivetran into a self-healing infrastructure.

**Key Features:**
- โšก **Autonomous Healing:** Detects and patches drift in under 60 seconds without human intervention.
- ๐Ÿง  **Semantic Reasoning:** Uses Gemini 3 Pro to understand context, avoiding blind string-matching errors.
- ๐Ÿ›ก๏ธ **Observability:** Military-grade SOC dashboard providing real-time oversight of the healing pipeline.

## ๐Ÿ—๏ธ Architecture & Tech Stack

```mermaid
flowchart LR
W(["๐Ÿ”” Fivetran\nWebhook"])
D["01 ยท DETECT\ndetector.py"]
DI["02 ยท DIAGNOSE\ndiagnoser.py"]
M["03 ยท MAP\nmapper.py"]
P["04 ยท PATCH\npatcher.py"]
V["05 ยท VERIFY\nverifier.py"]
H(["โœ… HEALED\n< 60 seconds"])

G(["โœฆ Gemini 3 Pro\nVertex AI"])
FT(["โšก Fivetran\nREST API"])
PH(["๐Ÿ“ก Arize\nPhoenix"])
SB(["๐Ÿ—„ Supabase"])

W --> D --> DI --> M --> P --> V --> H

G -- semantic reasoning --> M
FT -- PATCH /schemas --> P

D & DI & M & P & V -. traces .-> PH
DI & P & V -. state .-> SB
```

| Layer | Technology |
|---|---|
| **Agent** | Python 3.12, FastAPI |
| **AI** | Gemini 3 Pro (Vertex AI) |
| **Data** | Fivetran REST API (7 methods) |
| **Observability** | Arize Phoenix |
| **Dashboard** | Next.js 16, React 19, Tailwind v4 |
| **Database** | Supabase (PostgreSQL + Realtime) |
| **Deploy** | Cloud Run (agent) + Vercel (dashboard) |

## ๐Ÿ† Sponsor Tracks Targeted

- **Fivetran Partner Track ($5,000):** Deep integration with Fivetran's API to manage syncs and modify table mappings programmatically.
- **Grand Prize ($20,000):** Pushing the boundaries of autonomous AI agents in mission-critical infrastructure.

## ๐Ÿš€ Getting Started

### Prerequisites
- Node.js โ‰ฅ 20
- npm
- Python 3.12

### Installation
1. Clone: `git clone https://github.com/edycutjong/suture.git`
2. Set up agent:
```bash
cd agent && pip install -r requirements.txt
```
3. Set up dashboard:
```bash
cd ../dashboard && npm install
```
4. Configure: `cp .env.example .env.local` (dashboard) and `cp .env.example .env` (agent), then add your API keys.
5. Run: `npm run dev` (in dashboard) and `uvicorn main:app` (in agent).

> **For Judges:** Watch the automated demo pipeline!
> `python scripts/seed.py` (Setup healthy pipeline)
> `python scripts/break_schema.py` (Simulate drift)

## ๐Ÿงช Testing & CI

### ๐Ÿ› ๏ธ Root Commands
You can run checks for both frontend and backend from the root directory using the `Makefile`:
```bash
make test # Run all tests (backend + frontend)
make coverage # Run all tests with coverage report
make ci # Run full CI pipeline (lint, typecheck, tests, build)
```

### ๐Ÿ’ป Dashboard (Frontend)
```bash
cd dashboard
npm run lint # Run ESLint check
npm run typecheck # Run TypeScript type check
npm run test:coverage # Run Jest coverage report
npm run ci # Run full frontend CI check (lint + typecheck + test)
```

### ๐Ÿ Agent (Backend)
```bash
cd agent
.venv/bin/ruff check . # Lint python files using Ruff
.venv/bin/mypy . # Typecheck python files using Mypy
pytest --cov # Run pytest with coverage report
```

## ๐Ÿ“ Project Structure

```
suture/
โ”œโ”€โ”€ agent/ # Python FastAPI agent (webhook listener, schema differ, Gemini reasoner)
โ”œโ”€โ”€ dashboard/ # Next.js 16 App Router (status dashboard, schema diff viewer)
โ”œโ”€โ”€ docs/ # README assets (hero, screenshots)
โ”œโ”€โ”€ scripts/ # Demo scripts (seed, break, verify)
โ”œโ”€โ”€ data/ # Deterministic test fixtures (Salesforce schemas)
โ”œโ”€โ”€ db/ # Supabase schema (pipelines, incidents, config)
โ”œโ”€โ”€ .github/ # CI workflows
โ””โ”€โ”€ README.md # You are here
```

## ๐Ÿ“„ License
[MIT](LICENSE) ยฉ 2026 Edy Cu

## ๐Ÿ™ Acknowledgments
Built for Google Cloud Rapid Agent Hackathon 2026. Thank you to Fivetran and Google Cloud for the APIs and tools.