Cloud-first AI Social Growth & Media Operations Platform for agencies and creators: research, plan, create, edit, publish and measure social content from one tenant-aware system.
- Full specification: implementation.md
- Phase 0 Architecture decisions, risks, open questions: docs/architecture/decisions.md
- Phased task plan: docs/architecture/task-plan.md
- Ucuts audit: docs/architecture/ucuts-audit.md
- Phase 1 Audit & Reconciliation: docs/phase-1/PHASE_1_AUDIT.md · docs/phase-1/ARCHITECTURE_RECONCILIATION.md
Single primary application API + single Alembic-managed canonical schema + Supabase managed infrastructure layer:
- Primary API (
apps/api): FastAPI + Pydantic v2 (/api/v1) - Database (
database/): PostgreSQL 16 (Supabase Managed PostgreSQL or local Postgres 16), 10 canonical UUID-PK tables, Alembic migrations (0001–0003),FORCE ROW LEVEL SECURITYvia non-superusermetuse_approle and transaction-local GUCs (SET LOCAL) - Authentication (
packages/auth): Email/password (scrypt), HS256 JWT sessions (HttpOnly; Secure; SameSite=Lax, server-sidejtirevocation), Meta identity OAuth, and additive Supabase Auth HS256 JWT verification - Storage (
packages/storage): S3-compatible private object storage (Supabase Storage S3 protocol or MinIO locally) with path-traversal and magic-byte/SVG-XSS validation - Web (
apps/web): Planned thin frontend client (Node 24 + pnpm 10; Cloudflare Pages/Workers compatible) - CI/CD (
.github/workflows): GitHub Actions CI (ci.yml), preview (deploy-preview.yml), and approval-gated production (deploy-production.yml) - Phases 2–7 Delivered: Skill runtime + Meta Muse adapter, provider-independent video gateway, Ucuts + FFmpeg isolated render workers, Meta Graph/Instagram & Marketing API adapters, approval-gated publishing, and controlled ads execution (all currently mock-first; Temporal orchestration still planned)
apps/ api (FastAPI), web (scaffold pending)
workers/ orchestrator, research, writing_seo_aeo, media_pack, video_generation,
media_editing, meta_publishing, analytics
packages/ shared, auth, tenancy, storage, skill_runtime, ai_core, muse_adapter,
video_gateway, media_engine, ucuts_adapter, meta_integrations
database/ models.py, migrations/ (Alembic), seeds/
infrastructure/ docker/ (optional OrbStack/Colima stack), cloud/, temporal/, monitoring/
.github/ workflows/ (ci.yml, deploy-preview.yml, deploy-production.yml)
docs/ architecture/, operations/, phase-1/
tests/ unit/, integration/, workflows/, e2e/
# 1. Configure environment (never commit .env)
cp .env.example .env
# 2. Install Python 3.13+ dependencies via uv
uv sync
# 3. Apply Alembic migrations (owner connection: DATABASE_URL)
uv run alembic upgrade head
# 4. Run FastAPI locally
uv run uvicorn apps.api.main:app --reload --port 8000See docs/phase-1/ENVIRONMENT_SETUP.md for hosted Supabase setup and docs/operations/local-dev.md for optional local OrbStack/Colima containers.
uv run ruff check .
uv run mypy apps packages database tests
uv run pytest tests/unit -v
uv run pytest tests/integration -v # requires live PostgreSQL 16 (Supabase or local)- PHASE_1_AUDIT.md
- ARCHITECTURE_RECONCILIATION.md
- ENVIRONMENT_SETUP.md
- DATABASE_SCHEMA.md
- SECURITY.md
- COST_AND_LIMITS.md
- DEPLOYMENT_GUIDE.md
- TEST_REPORT.md
- IMPLEMENTATION_REPORT.md
| Phase | Status |
|---|---|
| 0 - Reconnaissance, repo scaffold, decisions | Complete |
| 1 - Unified Hybrid Cloud Foundation & API | Complete (report) |
| 2 - Skill runtime, Muse adapter, specialist workers | Complete (report) |
| 3 - Unified video generation gateway | Complete (report) |
| 4 - Cloud editing, Ucuts/FFmpeg, approvals | Complete (report) |
| 5 - Meta Unified Login & connections | Complete (report) |
| 6 - Approval-gated publishing & insights | Complete (report) |
| 7 - Ads read & controlled execution + 18-test acceptance | Complete (report) |
| 8 - Social auth (Meta/Google), prompt ads, CAPI + production hardening | Complete (report) |
Secrets: never commit. Use .env.example as a template only.