{"id":51338907,"url":"https://github.com/josedasilva11/flowbridge","last_synced_at":"2026-07-02T05:32:51.064Z","repository":{"id":368255446,"uuid":"1284254172","full_name":"josedasilva11/flowbridge","owner":"josedasilva11","description":"Lightweight automation bridge: webhook in, validate, transform, fan out to SQLite/webhook/CSV.","archived":false,"fork":false,"pushed_at":"2026-06-29T17:46:52.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T19:25:57.980Z","etag":null,"topics":["automation","etl","fastapi","integration","pydantic","python","sqlite","webhook"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josedasilva11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-29T17:15:06.000Z","updated_at":"2026-06-29T17:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/josedasilva11/flowbridge","commit_stats":null,"previous_names":["josedasilva11/flowbridge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/josedasilva11/flowbridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fflowbridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fflowbridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fflowbridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fflowbridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josedasilva11","download_url":"https://codeload.github.com/josedasilva11/flowbridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fflowbridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35034984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","etl","fastapi","integration","pydantic","python","sqlite","webhook"],"created_at":"2026-07-02T05:32:50.585Z","updated_at":"2026-07-02T05:32:51.056Z","avatar_url":"https://github.com/josedasilva11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flowbridge\n\nflowbridge is a lightweight automation bridge between your tools. It exposes a FastAPI webhook that receives an event (for example a new lead as JSON), validates it against a schema, applies configurable transform and mapping rules defined in a YAML config, and dispatches the result to one or more pluggable actions: a local SQLite store, an outgoing webhook (Slack or Discord style), and a CSV file. The point is simple: connect tools through an API and let the data move on its own.\n\n## Example run\n\n```bash\npython -m flowbridge.demo\n```\n\n```\nIncoming lead:\n{\n  \"full_name\": \"  ada lovelace \",\n  \"email_address\": \"Ada.Lovelace@EXAMPLE.com  \",\n  \"company_name\": \"Analytical Engines Ltd\",\n  \"source\": \"  LinkedIn \"\n}\n\nProcessed (canonical) lead:\n{\n  \"name\": \"Ada Lovelace\",\n  \"email\": \"ada.lovelace@example.com\",\n  \"company\": \"Analytical Engines Ltd\",\n  \"source\": \"linkedin\"\n}\n\nAction results:\n  - {\"action\": \"sqlite\", \"status\": \"ok\", \"db_path\": \"flowbridge.db\", \"table\": \"leads\"}\n  - {\"action\": \"outgoing_webhook\", \"status\": \"skipped\", \"reason\": \"OUTGOING_WEBHOOK_URL not set\"}\n  - {\"action\": \"csv\", \"status\": \"ok\", \"file_path\": \"leads.csv\"}\n\nDone. Check flowbridge.db and leads.csv for the stored lead.\n```\n\n\n## Features\n\n- FastAPI webhook endpoint (`POST /webhook`) with automatic schema validation via Pydantic.\n- Configurable field mapping and transforms (lowercase, strip, title, default values) loaded from `config.yaml`.\n- Pluggable action design: every action implements a small interface and is selected by name from config.\n- Built-in actions: append to SQLite, POST to an outgoing webhook, append a row to CSV.\n- Graceful per-action error handling so one failing action does not block the others.\n- Runnable end-to-end demo that processes a sample lead with no server and no network needed.\n- Secrets only via environment variables, with a `.env.example`.\n\n## Tech\n\nPython 3.10+, FastAPI, Pydantic, PyYAML, httpx, SQLite (standard library), Uvicorn.\n\n## Setup\n\n```bash\npython -m venv .venv\nsource .venv/bin/activate      # on Windows: .venv\\Scripts\\activate\npip install -r requirements.txt\ncp .env.example .env           # optional, only needed for the outgoing webhook action\n```\n\n## Run the end-to-end demo\n\nThis processes `sample_lead.json` through the full pipeline (validate, transform, dispatch) without starting a server:\n\n```bash\npython -m flowbridge.demo\n```\n\nAfter it runs you will have a `flowbridge.db` SQLite file and a `leads.csv` file containing the processed lead. The outgoing webhook action is skipped with a clear message if `OUTGOING_WEBHOOK_URL` is not set.\n\n## Run the API server\n\n```bash\nuvicorn flowbridge.app:app --reload\n```\n\nThen send a lead:\n\n```bash\ncurl -X POST http://127.0.0.1:8000/webhook \\\n  -H \"Content-Type: application/json\" \\\n  -d @sample_lead.json\n```\n\nThe response reports which actions ran and their status. Visit `http://127.0.0.1:8000/docs` for the interactive API docs.\n\n## Configuration\n\nEdit `config.yaml` to change the field mapping, the transforms applied to each field, and which actions run. Each action entry has a `type` (matching a registered action) and its own options.\n\n## How it works\n\n```mermaid\nflowchart LR\n  A[Incoming lead JSON] --\u003e B[Validate schema]\n  B --\u003e C[Apply mapping and transforms]\n  C --\u003e D{Dispatch actions}\n  D --\u003e E[SQLite store]\n  D --\u003e F[Outgoing webhook]\n  D --\u003e G[CSV file]\n```\n\nBuilt by José Pedro Silva, marjers.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosedasilva11%2Fflowbridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosedasilva11%2Fflowbridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosedasilva11%2Fflowbridge/lists"}