← Back to home

RunJudge

RunJudge - An AI-powered judge for social fitness challenges that verifies Strava runs while funds are staked. Think of it as a decentralized fitness escrow with a sassy personality that won't let you get away with taking the bus. 🏃‍♂️🚌 ```

Problem Statement

Running challenges with friends should be fun, fair, and rewarding. RunJudge makes it happen by combining Strava activities, AI verification, and USDC prizes on Base.Create a challenge, set a distance and prize pool in USDC, and let our AI judge analyze Strava activities to determine the winner - all without needing crypto knowledge!The platform uses AI to analyze Strava data, ensuring fair competition by detecting potential manipulation and normalizing performances across different distances.Heart rate data verification and pace analysis guarantee legitimate submissions.

Solution

Smart ContractsDeployed on Base, our RunJudge.sol contract handles:Challenge creation with USDC stakingParticipant management (max 2 per challenge)Activity submission via Strava activity IDsAutomated prize distribution to winnersGasless transactions via Base Paymaster & Coinbase Smart WalletsAI Verification with Coinbase Agent KitOur agent service leverages Coinbase's Agent Kit for autonomous on-chain actions:LangChain with Google's Gemini for activity analysisImage processing of Strava screenshotsHeart rate data verificationPace normalization across distancesAutomated winner declaration on-chainSecure wallet management via Coinbase Developer Platform's Wallet ProviderModern Web StackFrontend Framework Next.js 15 with App RouterCoinbase OnchainKit for:Wallet connectionsFiat on-rampingIdentity managementViem/Wagmi for type-safe contract interactionsshadcn/ui components built on Radix primitivesTailwind CSS for stylingBackend & Data The Graph for challenge data indexing:Lifetime earnings trackingAvailable challenges discoveryParticipant statisticsSubgraph deployment on BaseOpenRouter as an AI load-balancing platformChallenges Our main technical hurdle was Strava's API limitations. We built a respectful web crawler to extract essential activity data while awaiting approval for API access. This temporary solution lets us analyze key metrics but misses out on richer data points available through official integration since we rely on what's normally shown to the user.

Hackathon

Agentic Ethereum

2025

Prizes

  • 🏆

    AgentKit Pool Prize

    Coinbase Developer Platform

Contributors