-
-
PatronAI landing view with live verification stats and grassroots sports sponsorship goals.
-
PayPal checkout gateway in sandbox test mode authorizing 100 EUR youth sports patronage.
-
Finalize Patronage checkout with currency selection and PayPal Commerce Platform buttons.
-
AI Vision Expense Audit: Gemini extracts invoice line items, NIP, and SHA-256 integrity hash.
-
PatronAgent intent matcher with company URL scraping and multi-currency Social ROI forecast.
-
Official Patron Certificate modal with scannable verification QR code and PDF export.
-
Confirmed patronage view with B2B CSR LinkedIn pack, UN SDG statement, and AI voice note.
-
PatronAI × Neon Serverless PostgreSQL Architecture & Trust Layer
♟️ Inspiration
Grassroots youth sports clubs are the lifeblood of local communities, teaching discipline, critical thinking, and teamwork to thousands of kids. Yet, 90% of them operate under severe financial stress. Small clubs like our flagship pilot partner, UKS Roszada Radom (a youth chess club in Poland with 80+ young champions), struggle with:
- The "Black-Box" Donation Trap: Potential sponsors hesitate because traditional charity lacks granular, verifiable proof of how money is spent.
- Informal, Unmeasured Barter: Businesses frequently offer transport, printing, or equipment, but clubs lack legal templates and market valuation tools to formalize in-kind support.
- No Instant Corporate ROI: Small businesses want immediate CSR/ESG deliverables for their annual reports and LinkedIn visibility.
We built PatronAI to bridge grassroots sports with businesses through autonomous, agentic matchmaking, verifiable PayPal transactions, and multimodal AI audits.
📊 Pitch Deck: View Competition Slide Deck Presentation (PDF)
⚡ What it does
PatronAI turns community goodwill into transparent, audited micro-sponsorships:
- PatronAgent (Match & ROI): An autonomous agent that takes a sponsor's profile, website URL (e.g.
drukarnia-virgo.pl), or voice prompt, and matches it with a specific, verified club need while forecasting Social ROI (beneficiary count, competition access, training hours). - Dual-Rail PayPal Commerce Platform & REST API v2: Integrates client-side PayPal JavaScript SDK with server-side PayPal REST API v2 capture (
/api/paypal/capture-order). Features a dedicated Donor Attribution Engine ensuring corporate sponsors are credited under their actual brand and promotional URL rather than defaulting to personal PayPal account names. Supports both Zero-Config Simulation and real PayPal Sandbox testing across PLN, EUR, and USD. - 🧾 Pure DB-Driven AI Expense Audit: Powered by Google Gemini Multimodal Vision and Neon PostgreSQL (
audit_reports), the Public Ledger dynamically inspects scanned VAT invoices and receipts, extracts Merchant NIP and line items, verifies 100% purpose alignment, and stamps each entry with a tamper-evident SHA-256 hash—with zero hardcoded mock fallbacks. - 🤝 AI Barter Valuator: Assesses non-financial corporate gifts (bus transport, banners, trophies), assigns Gold/Silver/Bronze tiers, and generates downloadable partnership agreements (
.txt). - 💼 B2B CSR & ESG Pack: Instantly generates corporate LinkedIn announcements and formal UN SDG-aligned sustainability statements.
- 🎙️ AI Dynamic Impact Voice: Synthesizes a personalized audio note from young athletes addressing the patron by name, complete with a real-time visual audio waveform equalizer and native bilingual pronunciation (EN/PL).
- 🔐 Verifiable Ledger & QR Certificate: Every contribution receives an immutable public certificate (
/certyfikat/[id]) with a dynamic smartphone QR code, a surfaced 64-character SHA-256 hash seal, and dedicated ink-friendly print/PDF formatting. - 🔄 Bidirectional Public Ledger & Recurring Patron Profiles: The ledger features live search, seasonal filtering (Current Season vs. Archive), async bidirectional pagination ("Load more" / "Show less" collapse), and interactive Recurring Patron impact profile cards.
- 📊 Competition Slide Deck: Complete architectural and business pitch presentation available directly as PatronAI Pitch Deck (PDF).
🧪 Quick 60-Second Judge Testing Guide
Judges and reviewers can verify the genuine PayPal REST API v2 live capture and Gemini Multimodal Vision audit in under 60 seconds with zero real money:
- 🌐 Live Web Application: https://patronat.vercel.app/
- 💳 Pre-Configured PayPal Sandbox Buyer Account (Ready-to-Use):
- Email:
[email protected] - Password:
1:>#5g6O
- Email:
3-Step Live Verification Walkthrough:
- Instant Micro-Sponsorship: In Step 02 (Finalize Patronage / Allocation Checkout), select any amount (e.g., 15 USD or 25 USD). Click the yellow PayPal button, log in using the credentials above, and click Complete Purchase.
- Instant result: The app immediately generates an Official Patron Certificate with dynamic QR code & SHA-256 seal, athlete voice note, and adds the transaction live to the Public Ledger with a green pulsing beacon!
- Multimodal Invoice OCR Audit: Scroll to Step 03 (Public Ledger) and click "Upload your invoice (PILOT VERSION)" to test live multimodal Gemini Vision OCR verification on any receipt/invoice.
- In-Kind Barter Rails (0 PLN): In PatronAgent, enter a business website (e.g.
grama.netlify.app), select in-kind patronage, and generate a formalized barter agreement without monetary checkout.
🥊 Why PatronAI vs. Traditional Sponsorship & Crowdfunding
| Dimension / Capability | Traditional Crowdfunding (GoFundMe, Zrzutka, Classy) |
Traditional Grassroots Sponsorship (Manual / Handshake Deals) |
♟️ PatronAI (Autonomous Fintech Trust Layer) |
|---|---|---|---|
| 🧾 Expense Verification & Transparency | "Black Box": Funds deposit into general bank accounts; zero line-item spend verification. | Manual Paper Trail: Paper receipts emailed months later; tedious reconciliation. | Gemini Multimodal Vision OCR: Live semantic audit of VAT invoices at allocation time. Purpose mismatches flagged, never silently approved. |
| 🔐 Cryptographic Integrity & Tamper-Evidence | None: Standard web display; trust is assumed. | None: Lost in clubhouse drawers or unindexed PDF scans. | SHA-256 Sealed Public Ledger: Every verified allocation receives a cryptographic hash, queryable in Neon Serverless PostgreSQL. |
| 💳 PayPal Commerce & Corporate Attribution | Generic Payment: Basic form fields; corporate donors flattened into cardholder names. | Offline Invoicing: Tedious manual wire transfers with unindexed bank references. | PayPal REST API v2 + Attribution Engine: Server-side capture with persistent corporate brand mapping and instant cryptographic ledger sealing. |
| 🤝 In-Kind Barter Sponsorship | Unsupported: Cash-only rails; completely ignores 40%+ of local business support. | Informal Handshakes: No market valuation, no legal templates, zero CSR visibility. | AI Barter Valuator: Automatically calculates AVE market equivalence, assigns Gold/Silver/Bronze tiers, and generates downloadable legal agreements (.txt). |
| 💼 Instant Corporate Return (B2B CSR / ESG) | Generic Receipt: Tax receipt PDF; no corporate marketing deliverables. | Slow & Fragmented: Weeks of back-and-forth for a static logo on a physical banner. | Instant 1-Click Deliverables: Auto-generated LinkedIn viral post + formal UN SDG 3 & 4 aligned ESG statements delivered at checkout. |
| 🎙️ Emotional Impact & Athlete Voice | Transactional: Cold automated "Thank you for donating" confirmation email. | Sporadic: Occasional end-of-season thank-you card or coach phone call. | AI Dynamic Impact Voice: Spoken personalized audio note from junior players addressing the patron by name, with live canvas waveform & bilingual transcript. |
| ⚡ Sponsor Onboarding & Matching | Friction-Heavy: Manual campaign discovery, lengthy static donation forms. | High Administrative Drag: Cold calling, customized pitch decks, weeks of negotiation. | PatronAgent Autonomous Matching: Paste a company website URL or speak via Web Speech API; AI classifies business domain, suggests needs, & predicts social ROI in seconds. |
| ⚖️ Architectural Philosophy & Safety | Legacy Gateways: Traditional static forms without semantic validation. | Unregulated: Direct cash or unmonitored bank transfers. | Deterministic Trust Layer: AI Multimodal Vision provides advisory semantic audit, but plain code, SHA-256, and Neon PostgreSQL enforce financial reality. |
🛠️ How we built it
- Full-Stack Foundation: Next.js 15 (App Router), React 19, TypeScript, and Tailwind CSS.
- Agentic AI & Vision: Google Gemini API for natural language reasoning, URL domain classification, and multimodal document OCR extraction.
- Deterministic Trust Layer: Governed by the principle that "a rule a prompt can hallucinate around is not a financial rule." Gemini acts as an advisory semantic auditor (evaluating receipts into structured JSONB), while plain deterministic code (SHA-256 integrity digests, Neon PostgreSQL constraints, and SQL views) governs all ledger totals, seasonal states, and certificate proofs.
- Trust & Persistence Layer: Neon Serverless PostgreSQL with
@neondatabase/serverlessconnection pooling. Features relational tables (allocations,audit_reports,payment_orders), analytical views (v_public_ledger,v_certificate_verification,v_ledger_totals,v_audit_flag_queue), GIN-indexed JSONB invoice line items, and tamper-evident SHA-256 ledger integrity hashes. - Payments & PayPal Rails: Hybrid PayPal Commerce integration combining the PayPal JavaScript SDK (client-side checkout across PLN, EUR, USD) with a hardened server-side PayPal REST API v2 capture endpoint (
/api/paypal/capture-order/route.ts). Upon order completion, the capture route atomically commits both the allocation and linked verified audit report to Neon PostgreSQL while computing the canonical SHA-256 seal (id:goal:amount:club:PatronAI). - Voice & Media: Web Speech API for speech recognition and synthesized athlete voice notes with HTML5 Canvas audio waveforms, dynamically adapting vocal synthesis to the active locale.
- Clean & Modular Architecture: Decoupled domain engine (
lib/needsCatalog.ts), single-responsibility ledger sub-components (LedgerPurposeCell,LedgerAuditModal,LedgerCertificateModal), and dual-layer i18n mapping (purposeMap.ts) that preserves canonical cryptographic records while serving international users.
🧗 Challenges we ran into
- Preserving Corporate Brand Attribution in PayPal Captures: Standard PayPal capture payloads identify only the payer’s individual PayPal account. For corporate sponsorship, this collapses corporate identity into an employee's personal account. We engineered a server-side Donor Attribution Engine: declared corporate names (e.g. local businesses) and promotional URLs are captured at checkout and atomically bound directly to the database allocation record during the REST API v2 capture, keeping sponsor branding intact in the public ledger.
- Cryptographic Immutability vs. Multilingual Localization (i18n): Translating grassroot club allocations into English for global PayPal judges risked breaking the canonical SHA-256 hashes generated from the original Polish club registry. Mutating database strings would invalidate tamper-evident verification. We engineered a dual-layer domain mapping: the database preserves the immutable canonical string sealing the SHA-256 cryptographic trail, while the presentation layer renders a pristine, clean English translation with source registry traceability, completely eliminating mixed-language clutter for international judges.
- OCR Accuracy on Complex VAT Invoices: Standard OCR often garbles Polish invoice formats. We engineered prompt schemas for Gemini Multimodal Vision to reliably extract vendor NIP, gross totals, and specific line items into structured JSONB.
- Eliminating Static Mock Fallbacks (Zero-Hardcoding): Transitioning from static invoice mockups to a live, end-to-end database pipeline required strict synchronization between Neon PostgreSQL schemas, Next.js API routes (
/api/ledger,/api/certificate/[id]), and dynamic modal states without data desynchronization. - Seamless Multi-Currency Adaptation: Harmonizing currency selection across natural language prompts, catalog presets, and PayPal checkout states without reloading or desynchronizing the UI.
- Zero-Friction In-Kind Formalization: Creating a legal-grade partnership agreement template generator that handles barter valuation dynamically without daunting legal jargon.
🏆 Accomplishments that we're proud of
- End-to-End Architecture & Pilot Readiness: Successfully designed a fully functional agentic sponsorship pipeline modeled on the realistic budgetary needs of grassroots sports clubs. The architecture is continuously stress-tested and live-aggregated directly from Neon Serverless PostgreSQL through the
v_ledger_totalsview, demonstrating sub-200ms query times, automated season segregation (Current Season vs. Archive), deduplicated lateral joins, and active simulation benchmark runs for UKS Roszada Radom. (Note: As a competition prototype, all ledger figures belong to a dynamic simulated benchmark dataset; real funds collected remain 0.00 PLN). - Genuine PayPal REST API v2 Dual-Mode Verification: Architected a robust payment flow supporting both Zero-Config Developer Simulation (
NEXT_PUBLIC_PAYPAL_CLIENT_ID=testfor instant judge evaluations) and Real PayPal Sandbox Mode (using Polish Sandbox Business receiver and Personal buyer accounts), establishing an unbroken audit trail from capture to public certificate. - Exceptional Mobile Engineering & Agentic Readiness: Engineered the platform to deliver near-perfect Google PageSpeed Mobile benchmarks (95–100 Performance, consistently 97–100 in production mobile audits, with 100/100 Accessibility, 100/100 Best Practices, and 100/100 SEO). Furthermore, the application passed 3/3 Agentic Browsing checks, proving that its semantic structure is primed for autonomous AI crawlers and agents.
- Serverless Relational Architecture with Pure Dynamic State: Successfully integrated Neon Serverless PostgreSQL with connection pooling, moving away from in-memory state to a fully ACID-compliant persistence layer with relational tables, analytical views, and cryptographic SHA-256 seals. All invoice audits and ledger entries are 100% dynamically queried from the live database.
- Frictionless Bilingual Experience for Global Judges: Delivered complete, natural-sounding English localization across the public ledger, invoice audit modals, certificates, and athlete voice synthesis, while maintaining strict, verifiable mathematical proof of the underlying Polish grassroots data.
📚 What we learned
- Real transparency isn't just a ledger; it's multimodal proof. Sponsors don't just want numbers—they want to see the audited invoice line items and merchant tax identification.
- Plain code must govern the money. LLMs are extraordinary judges of semantic alignment, but financial totals and cryptographic verification must remain strictly deterministic.
- B2B patrons value identity over generic receipts: Corporate micro-sponsors require custom brand attribution in payment gateways to justify CSR allocations and share verifiable proof with stakeholders.
- Mathematical immutability and user experience do not have to clash: by decoupling canonical cryptographic state from presentation localization, you can achieve both bank-grade audit compliance and international user delight.
- In-kind barter sponsorship is a multi-million-dollar untapped market for local sports clubs when properly valued, formalized, and celebrated.
🔮 What's next for PatronAI
- Multi-Club Federation: Onboarding football, swimming, and martial arts academies across the EU.
- Automated Bank & Tax Deductibility API: Direct export for corporate 1% tax deductions and corporate gift tax filings.
- Mobile Agent App: Empowering club coaches to snap photos of receipts directly from tournaments for instant ledger settlement.
Built With
- ai-agents
- gemini-3.8-flash
- google-gemini
- multimodal-ai
- neon-postgres
- next.js
- paypal
- paypal-commerce-platform
- paypal-rest-api
- react
- sha-256
- tailwind-css
- typescript
- web-speech-api
Log in or sign up for Devpost to join the conversation.