Autonomous GitHub-based payouts via AI analysis + ARC USDC streaming treasury.
Go in as much detail as you can about what this project is. Please be as clear as possible! (min 280 characters)
StacPay is an autonomous contractor–freelancer collaboration platform that connects directly to GitHub and enables real-time, performance-based crypto payouts. Instead of relying on invoices, delayed milestones, or manual code reviews, StacPay uses AI agents to continuously analyze developer commits, detect spam or gaming behavior, and evaluate contributions holistically against project milestones, historical work, and remaining budget.
Approved work triggers smart payout decisions and streams USDC from an ARC-based treasury contract, aligning compensation with real delivery. Contractors can fund a project treasury, set payout thresholds, and choose between manual or agentic evaluation modes. Freelancers earn transparently as they build, while contractors gain objective accountability without micromanagement. Circle wallets with Google sign-in provide seamless onboarding, making on-chain payments feel as smooth as Web2.
StarCPay is built with a FastAPI backend (Python 3.12) and MongoDB Atlas for persistent storage of projects, push events, and AI commit analyses. We integrated a GitHub App for secure repo access and real-time webhook ingestion with signature verification. Every push triggers an agentic workflow that fetches full commit diffs, enriches them with milestone specs, commit history, and remaining budget, and runs GPT-4o-mini via LangChain for both gaming/spam detection ($0 payout) and holistic code-quality evaluation.
A key hack is the autonomous incentive loop: approved commits generate proportional payouts and dynamically update on-chain USDC streaming rates. We deployed a StreamingTreasury contract on ARC Testnet and automatically call changeRate(streamId, newRate) based on AI-determined payout amount and remaining project time, while spam commits are penalized with a minimal rate. The frontend is built with Next.js and uses Circle’s @circle-fin/w3s-pw-web-sdk for secure contract interaction, while ARC wallets enable seamless Google sign-in onboarding. This creates a fully automated pipeline from GitHub work → AI evaluation → treasury-backed streaming payments.

