{"id":49530847,"url":"https://github.com/pr1m8/haive-dataflow","last_synced_at":"2026-05-02T07:33:06.887Z","repository":{"id":349690626,"uuid":"966484375","full_name":"pr1m8/haive-dataflow","owner":"pr1m8","description":"Data processing pipelines and ETL workflows for Haive agents","archived":false,"fork":false,"pushed_at":"2026-04-07T05:47:59.000Z","size":7068,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T06:26:30.117Z","etag":null,"topics":["data-pipelines","etl","fastapi","postgres","registry","serialization","supabase"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/haive-dataflow/","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/pr1m8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-04-15T02:00:14.000Z","updated_at":"2026-04-07T05:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pr1m8/haive-dataflow","commit_stats":null,"previous_names":["pr1m8/haive-dataflow"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pr1m8/haive-dataflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr1m8%2Fhaive-dataflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr1m8%2Fhaive-dataflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr1m8%2Fhaive-dataflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr1m8%2Fhaive-dataflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pr1m8","download_url":"https://codeload.github.com/pr1m8/haive-dataflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pr1m8%2Fhaive-dataflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32527136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["data-pipelines","etl","fastapi","postgres","registry","serialization","supabase"],"created_at":"2026-05-02T07:33:06.256Z","updated_at":"2026-05-02T07:33:06.869Z","avatar_url":"https://github.com/pr1m8.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haive-dataflow\n\n[![PyPI version](https://img.shields.io/pypi/v/haive-dataflow.svg)](https://pypi.org/project/haive-dataflow/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/haive-dataflow.svg)](https://pypi.org/project/haive-dataflow/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/pr1m8/haive-dataflow/actions/workflows/ci.yml/badge.svg)](https://github.com/pr1m8/haive-dataflow/actions/workflows/ci.yml)\n[![Docs](https://github.com/pr1m8/haive-dataflow/actions/workflows/docs.yml/badge.svg)](https://pr1m8.github.io/haive-dataflow/)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/haive-dataflow.svg)](https://pypi.org/project/haive-dataflow/)\n\n**Data processing pipelines and ETL workflows for Haive agents.**\n\nA registry, discovery, and serialization system for managing components, persistence, and data flows in the Haive framework. Use it for component management, agent persistence, dataflow orchestration, and FastAPI integration.\n\n---\n\n## Why haive-dataflow?\n\nProduction agent systems need more than just agents — they need:\n\n- **Component registry** — track which agents, tools, and configs are available\n- **Serialization** — save and load complex agent configs across processes\n- **Persistence** — store agent state, conversation history, results\n- **Streaming** — real-time data flows for production pipelines\n- **API integration** — serve agents as HTTP endpoints\n\n`haive-dataflow` provides all of this. It's the production infrastructure layer.\n\n---\n\n## Features\n\n### 📦 Component Registry\n\nRegister and discover Haive components at runtime:\n\n```python\nfrom haive.dataflow.registry import ComponentRegistry\n\nregistry = ComponentRegistry()\n\n# Register agents\nregistry.register(\"research_agent\", researcher)\nregistry.register(\"writer_agent\", writer)\n\n# Discover by type\nall_agents = registry.list_components(component_type=\"agent\")\n\n# Retrieve\nagent = registry.get(\"research_agent\")\n```\n\n### 🔄 Serialization\n\nSave and restore agent configs:\n\n```python\nfrom haive.dataflow.serialization import serialize_agent, deserialize_agent\n\n# Save to JSON\nconfig_json = serialize_agent(my_agent)\nwith open(\"agent.json\", \"w\") as f:\n    f.write(config_json)\n\n# Restore\nwith open(\"agent.json\") as f:\n    restored = deserialize_agent(f.read())\n```\n\n### 💾 Persistence\n\nMultiple backends with sync and async support:\n\n```python\nfrom haive.dataflow.persistence import PostgresBackend, SupabaseBackend\n\n# PostgreSQL\nbackend = PostgresBackend(\n    connection_string=\"postgresql://haive:haive@localhost/haive\",\n    pool_size=10,\n)\n\n# Supabase\nbackend = SupabaseBackend(\n    url=\"https://your-project.supabase.co\",\n    key=\"your-anon-key\",\n)\n\n# Save state\nawait backend.save_state(\"session_123\", agent_state)\n\n# Restore\nstate = await backend.load_state(\"session_123\")\n```\n\n### 🌐 FastAPI Integration\n\nServe agents as HTTP endpoints:\n\n```python\nfrom fastapi import FastAPI\nfrom haive.dataflow.api import create_agent_router\n\napp = FastAPI()\napp.include_router(create_agent_router(my_agent), prefix=\"/agents/researcher\")\n\n# Now POST to /agents/researcher/run with JSON body\n```\n\n---\n\n## Installation\n\n```bash\npip install haive-dataflow\n\n# With FastAPI integration\npip install haive-dataflow[api]\n\n# With Supabase backend\npip install haive-dataflow[supabase]\n```\n\n---\n\n## Quick Start\n\n```python\nfrom haive.dataflow.registry import ComponentRegistry\nfrom haive.agents.simple.agent import SimpleAgent\nfrom haive.core.engine.aug_llm import AugLLMConfig\n\n# Create and register\nregistry = ComponentRegistry()\nagent = SimpleAgent(name=\"hello\", engine=AugLLMConfig())\nregistry.register(\"hello\", agent)\n\n# Use\ncomponent = registry.get(\"hello\")\nresult = component.run(\"Hello world\")\n```\n\n---\n\n## Documentation\n\n📖 **Full documentation:** https://pr1m8.github.io/haive-dataflow/\n\n---\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [haive-core](https://pypi.org/project/haive-core/) | Foundation: engines, graphs, persistence |\n| [haive-agents](https://pypi.org/project/haive-agents/) | Production agents (registered in dataflow) |\n| [haive-mcp](https://pypi.org/project/haive-mcp/) | MCP integration |\n\n---\n\n## License\n\nMIT © [pr1m8](https://github.com/pr1m8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr1m8%2Fhaive-dataflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpr1m8%2Fhaive-dataflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr1m8%2Fhaive-dataflow/lists"}