{"id":51319477,"url":"https://github.com/rakibulmehedi/afie","last_synced_at":"2026-07-01T11:31:06.513Z","repository":{"id":367175745,"uuid":"1279565034","full_name":"rakibulmehedi/afie","owner":"rakibulmehedi","description":"Autonomous Founder Identity Engine — AI-powered multi-tenant SaaS that synthesizes, approves, and distributes founder content at institutional-grade quality.","archived":false,"fork":false,"pushed_at":"2026-06-24T21:13:01.000Z","size":404,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T23:06:16.179Z","etag":null,"topics":["ai-content-generation","autonomous-agents","content-automation","fastapi","founder-identity","human-in-the-loop","llm","multi-tenant-saas","nextjs","postgresql","python","railway","saga-pattern","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://github.com/rakibulmehedi/afie","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakibulmehedi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":"SECURITY.md","support":".github/SUPPORT.md","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-24T20:06:12.000Z","updated_at":"2026-06-24T21:13:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rakibulmehedi/afie","commit_stats":null,"previous_names":["rakibulmehedi/afie"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rakibulmehedi/afie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibulmehedi%2Fafie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibulmehedi%2Fafie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibulmehedi%2Fafie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibulmehedi%2Fafie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakibulmehedi","download_url":"https://codeload.github.com/rakibulmehedi/afie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibulmehedi%2Fafie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35005409,"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-01T02:00:05.325Z","response_time":130,"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":["ai-content-generation","autonomous-agents","content-automation","fastapi","founder-identity","human-in-the-loop","llm","multi-tenant-saas","nextjs","postgresql","python","railway","saga-pattern","typescript","vercel"],"created_at":"2026-07-01T11:31:03.535Z","updated_at":"2026-07-01T11:31:06.506Z","avatar_url":"https://github.com/rakibulmehedi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autonomous Founder Identity Engine (AFIE)\n\n[![CI](https://github.com/rakibulmehedi/afie/actions/workflows/ci.yml/badge.svg)](https://github.com/rakibulmehedi/afie/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Release](https://img.shields.io/github/v/release/rakibulmehedi/afie)](https://github.com/rakibulmehedi/afie/releases)\n[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)\n[![Node 20+](https://img.shields.io/badge/node-20+-green.svg)](https://nodejs.org/)\n\n\u003e AI-powered multi-tenant SaaS that operates founder identities in public, autonomously, at institutional-grade quality.\n\nAFIE ingests real engineering signal (GitHub commits, Telegram notes), synthesizes persona-true content drafts via LLM, gates every draft behind **human approval**, then distributes approved content across platforms — with full saga auditability and at-least-once durability.\n\n## Table of Contents\n\n- [Architecture](#architecture)\n- [Getting Started](#getting-started)\n- [Project Structure](#project-structure)\n- [Development](#development)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Architecture\n\nTwo runtimes, **never merged**, sharing a directory tree but not a dependency graph:\n\n| Layer | Runtime | Host | Responsibility |\n|-------|---------|------|----------------|\n| **Edge / API** | Next.js (TypeScript) `apps/web` | Vercel | Webhook ingress, tenant resolution, approval dashboard |\n| **AI Worker** | FastAPI (Python) `apps/ai-worker` | Railway | Saga orchestration, LLM synthesis, DB writes (tenant-scoped) |\n\n```\nGitHub commits / Telegram notes\n        ↓\n   apps/web (Next.js)        ← webhook ingress, 202 immediately\n        ↓ enqueue\n   apps/ai-worker (FastAPI)  ← saga: synthesize → gate → distribute\n        ↓ LLM\n   Human Approval Dashboard  ← every draft reviewed before publish\n        ↓ approved\n   Content Platforms          ← distributed with at-least-once durability\n```\n\n**Key design invariants:**\n- `apps/web` never writes to Postgres and never holds LLM keys\n- `apps/ai-worker` is the sole Postgres writer; all reads are tenant-scoped via RLS (`SET LOCAL app.current_tenant`)\n- Every content draft requires explicit human approval before distribution\n\n## Getting Started\n\n**Prerequisites:** Python 3.11+, Node.js 20+, pnpm 9+, Docker (for Postgres)\n\n```bash\ngit clone https://github.com/rakibulmehedi/afie.git\ncd afie\npnpm install\n```\n\n**AI Worker:**\n```bash\ncd apps/ai-worker\npython -m venv .venv\nsource .venv/bin/activate  # Windows: .venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n**Web App:**\n```bash\ncd apps/web\npnpm dev\n```\n\n## Project Structure\n\n```\nafie/\n├── apps/\n│   ├── ai-worker/          # FastAPI — saga orchestration, LLM, DB\n│   │   ├── domain/         # Models, port protocols\n│   │   ├── infrastructure/ # DB repos, LLM adapters\n│   │   └── application/    # Use-case classes\n│   └── web/                # Next.js — webhooks, approval dashboard\n│       ├── db/             # Database access layer\n│       ├── messaging/      # Queue integration\n│       └── webhooks/       # Ingress handlers\n├── .github/\n│   ├── workflows/ci.yml    # CI: Python lint/test + Node build\n│   └── ISSUE_TEMPLATE/     # Bug reports, feature requests\n├── docs/                   # Architecture blueprints, API contracts\n├── CHANGELOG.md\n├── CONTRIBUTING.md (in .github/)\n└── LICENSE                 # MIT\n```\n\n## Development\n\n```bash\n# Python (ai-worker)\ncd apps/ai-worker \u0026\u0026 pytest\n\n# Node (web)\npnpm --filter web build\n```\n\nCommits follow `type: description` (feat/fix/chore/refactor/docs/test).\n\nSee [CONTRIBUTING.md](.github/CONTRIBUTING.md) for full setup and PR process.\n\n## Contributing\n\nBug reports → [GitHub Issues](https://github.com/rakibulmehedi/afie/issues)\nQuestions → [GitHub Discussions](https://github.com/rakibulmehedi/afie/discussions)\nSecurity vulnerabilities → [SECURITY.md](SECURITY.md) (email only, do not open public issues)\n\n## License\n\nMIT © 2026 [Rakibul Islam Mehedi](https://github.com/rakibulmehedi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibulmehedi%2Fafie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakibulmehedi%2Fafie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibulmehedi%2Fafie/lists"}