ML-driven payment recovery platform for streaming businesses.
Syzm ingests soft declines from processors, predicts the best retry window, and executes retries across gateway routes while enforcing 2026 compliance constraints.
src/brain: FastAPI inference service ("Syzm Brain") with retry scheduling logic.src/ingest: Supabase Edge Function scaffolding for webhook ingest and retry execution.src/portal: Next.js self-service audit portal (/audit) + dashboard + integration UI.src/sql: Postgres schema andpg_cronexecution loop migration.src/infra: Docker and Terraform scaffolding for local/dev/prod infra.docs: Product, design, roadmap, financial, and compliance documentation.
- Retry guard:
retry_count < 4is enforced in both SQL and app logic. - Sunday US maintenance blackout: retries are automatically moved out of
01:00-03:00America/New_York. - Processor-agnostic routing hooks: queue supports processor history and failover attempts.
- PCI out-of-scope posture: queue stores non-PAN metadata only.
cd src/brain
python -m venv .venv
source .venv/bin/activate # on Windows use .venv\\Scripts\\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8080Health endpoint: GET http://localhost:8080/healthz
cd src/portal
npm install
npm run devOpen http://localhost:3000.
Run in order:
src/sql/001_init.sqlsrc/sql/002_cron.sql
Copy .env.example to .env and update secrets.
Required values:
SYZM_SUPABASE_URLSYZM_SUPABASE_SERVICE_ROLE_KEYSYZM_BRAIN_URLSYZM_STRIPE_API_KEYSYZM_ADYEN_API_KEYSYZM_BRAINTREE_API_KEY
syzm/
├─ docs/
├─ src/
│ ├─ brain/
│ ├─ ingest/
│ ├─ portal/
│ ├─ sql/
│ ├─ infra/
│ └─ shared/
├─ README.md
├─ CONTRIBUTING.md
├─ SECURITY.md
├─ CODE_OF_CONDUCT.md
├─ CHANGELOG.md
└─ LICENSE
- This scaffold is intentionally implementation-ready but not production-complete.
- Signature verification for processor webhooks is left as a marked TODO in
src/ingest/webhook.ts. - Processor retry calls in
src/ingest/_shared/processors.tsare stubs and should be swapped for official SDK calls.