← Back to home

Livus

Own your health data, compete in challenges with real metrics from Oura and Whoop, and earn rewards

Problem Statement

Livus is a comprehensive Web3 health platform that solves two critical problems in the digital health space:data ownershipandhealth engagement.The ProblemCurrent health apps create data silos where users lose control of their health information. Additionally, most fitness apps lack meaningful incentives to maintain healthy habits, leading to poor long-term engagement.Our Solution1. Health Wallet - True Data OwnershipLivus creates the first decentralized health wallet where users truly own their health data. Using The Graph's indexing infrastructure and Hypergraph Protocol for private storage, we enable:Cross-app portability: Take your health history to any compatible applicationPermission-based sharing: Users control who accesses their data through cryptographic signaturesInteroperable ecosystem: Build once, use everywhere across health appsPrivate encrypted storage: Personal health data stored in wallet-authenticated private spaces2. AI Health Assistant - Privacy-First InsightsPowered by Oasis ROFL (Runtime On-chain Federated Learning), we provide users with personalized health insights without compromising privacy:Trusted Execution Environment: DeepSeek R1 1.5B model runs in Intel TDX secure enclavesZero data exposure: Health analysis happens without raw data leaving the secure environmentPersonalized recommendations: AI-driven insights for sleep optimization, challenge preparation, and health goalsHIPAA compliance: Enterprise-grade privacy protection for sensitive health data3. Gamified Health ChallengesWe combine real health data with blockchain-based challenges to create sustainable engagement:Stake-to-play mechanics: Users stake WLD tokens to participate in health challengesReal health metrics: Integration with Oura and Whoop devices via Terra APIAutomated prize distribution: Smart contracts distribute rewards based on actual health achievementsHuman verification: World ID ensures only verified humans participate, preventing bot manipulationKey InnovationsDecentralized Health Data InfrastructureUsers own their health data through The Graph subgraphs and Hypergraph ProtocolHealth metrics are indexed and queryable across applicationsPrivacy-preserving AI analytics through Oasis ROFL integrationCryptographic wallet-based authentication for health data accessPrivacy-First AI Health AssistantDeepSeek R1 1.5B model running in Oasis ROFL Trusted Execution EnvironmentZero-exposure health analysis with personalized insights and recommendationsHIPAA-compliant processing of sensitive health dataChallenge optimization and health goal recommendationsTransparent Challenge SystemSmart contracts on Worldchain manage all challenge logicReal-time health data determines winners automaticallyCryptographic proofs ensure fair competitionSeamless User ExperienceNative World App integration with MiniKit SDKGasless transactions through Permit2 integrationMobile-first design optimized for daily health trackingTarget MarketHealth-conscious individualsseeking better engagement toolsFitness app developerswanting to integrate with user-owned health dataHealthcare providersneeding interoperable patient dataResearchersrequiring aggregated, anonymized health insightsVisionLivus aims to become the foundational layer for a new generation of health applications built on user-owned data, where individuals control their health information and are rewarded for maintaining healthy lifestyles.

Solution

Architecture OverviewLivus is built as a multi-layered Web3 application combining blockchain infrastructure, real-world data integration, and mobile-first user experience.Core TechnologiesFrontend - Next.js 15 + World App IntegrationNext.js 15with App Router for modern React developmentMiniKit SDKfor seamless World App integrationTypeScriptfor type-safe developmentTailwind CSSfor responsive, mobile-first UIViemfor blockchain interactionsBackend - Node.js + Real-time Data ProcessingExpress.jsAPI server with real-time webhook processingTerra APIintegration for Oura and Whoop device dataWinstonfor comprehensive logging and monitoringSupabasefor PostgreSQL database with real-time subscriptionsBlockchain - Solidity + WorldchainSolidity 0.8.19smart contracts with security best practicesWorldchain Mainnetfor low-cost, WLD-native transactionsPermit2integration for gasless user transactionsFoundryfor contract development and testingPrivacy & Data InfrastructureThe Graph Protocolfor decentralized health data indexing and cross-app compatibilityHypergraph Protocolfor private, encrypted health data storage with wallet-based authenticationOasis ROFLfor privacy-preserving AI health analytics in Trusted Execution EnvironmentsPartner Technology IntegrationsWorld Ecosystem - Complete Integration// World ID Human Verification const result = await MiniKit.commandsAsync.verify({ action: "verify-human", signal: "", verification_level: "orb", }); // Gasless WLD Transactions via Permit2 const { finalPayload } = await MiniKit.commandsAsync.sendTransaction({ transaction: [joinTransaction], permit2: [permitConfig], });Benefits of World Integration:Sybil resistance: World ID prevents bot participationNative WLD support: Seamless token staking and rewardsMobile-first UX: Optimized for World App ecosystemGasless transactions: Better user experience through Permit2Terra API - Real Health Data// Process real-time health data webhooks app.post("/api/terra/webhook", async (req, res) => { const { type, data } = req.body; switch (type) { case "sleep": await processSleepMetrics(data); break; case "activity": await processActivityData(data); break; } });Benefits of Terra Integration:Device agnostic: Works with Oura, Whoop, and other devicesReal-time data: Immediate health metric updatesComprehensive metrics: Sleep, activity, HRV, and moreReliable infrastructure: Production-ready health data pipelineThe Graph - Decentralized Health Data// Health data indexing for cross-app compatibility const GET_USER_HEALTH_WALLET = gql` query GetUserHealthWallet($userAddress: String!) { user(id: $userAddress) { healthMetrics { sleepEfficiency averageHRV dailySteps timestamp } challengeHistory { id result prize } } } `; // Cross-app data sharing with permissions const shareHealthData = async (targetApp: string, permissions: string[]) => { const signature = await signPermission(permissions); return await graphClient.shareData(targetApp, signature); };Benefits of The Graph Integration:Data portability: Users can take their health history to any compatible appDecentralized indexing: No single point of failure for health dataPermission-based access: Users control who can access their dataInteroperable ecosystem: Enables a new generation of health applicationsOasis ROFL - Private AI Health Assistant// Private health analysis in Trusted Execution Environment const getHealthInsights = async (userHealthData) => { const response = await fetch("/api/oasis/chat", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ message: `Analyze my health data: ${JSON.stringify(userHealthData)}`, system: "You are a health assistant. Provide personalized insights based on the user's health metrics.", }), }); const insights = await response.json(); return insights; }; // Secure health data processing without exposure const analyzeHealthTrends = async (healthMetrics) => { const analysis = await oasisROFL.processHealthData({ data: healthMetrics, model: "deepseek-r1-1.5b", privacy: "maximum", }); return analysis; };Benefits of Oasis Integration:Privacy-preserving AI: Health analysis without data exposureTrusted Execution: Intel TDX hardware-level securityHIPAA compliance: Enterprise-grade privacy protectionPersonalized insights: AI-driven health recommendations and challenge optimizationSmart Contract ArchitectureHealthChallengePool.sol - Core Challenge Logicfunction joinChallengeWithPermit2( uint256 challengeId, ISignatureTransfer.PermitTransferFrom memory permit, ISignatureTransfer.SignatureTransferDetails memory transferDetails, bytes memory signature ) external { // Permit2 gasless WLD transfer PERMIT2.permitTransferFrom(permit, transferDetails, msg.sender, signature); // Add participant to challenge participants[challengeId][msg.sender] = true; challenges[challengeId].participantCount++; }Security Features:Signature verification: Backend-signed challenge completionReentrancy protection: SafeGuards on all state changesAccess control: Owner-only critical functionsPermit2 integration: Secure, gasless token transfersNotable Technical Achievements1. Privacy-Preserving AI Health AssistantSuccessfully integrated Oasis ROFL to provide users with personalized health insights without exposing sensitive data. The DeepSeek R1 1.5B model runs in Intel TDX Trusted Execution Environment, ensuring HIPAA-compliant health analysis while maintaining maximum privacy.2. Decentralized Health Data OwnershipImplemented user-owned health data through Hypergraph Protocol with wallet-based authentication. Users can securely store their health metrics in private encrypted spaces and control access through cryptographic signatures.3. Gasless UX with Permit2Instead of requiring users to hold ETH for gas, we implemented Permit2 signatures allowing users to participate in challenges with only WLD tokens. This dramatically improves onboarding for non-crypto natives.4. Real-time Health Data ProcessingWe built a robust webhook system that processes health data from multiple device types in real-time, calculating challenge-specific metrics and updating user progress instantly.5. Cross-platform Health Wallet ArchitectureUsing The Graph (in development) and Hypergraph Protocol, we're creating a health data layer that allows users to own their data while enabling other applications to build on top of it with proper permissions.6. Mobile-first World App IntegrationComplete MiniKit SDK integration with optimized mobile UI, human verification flows, and transaction handling specifically designed for the World App ecosystem.Development Challenges & SolutionsChallenge: Integrating real-world health data with blockchainSolution: Built a reliable webhook processing system with Terra API that validates and stores health metrics, then uses cryptographic signatures to ensure data integrity when determining challenge winners.Challenge: Creating gasless transactions for better UXSolution: Implemented Permit2 integration allowing users to sign permits for WLD transfers without needing ETH, making the platform accessible to users who only hold WLD.Challenge: Ensuring fair competition in health challengesSolution: Combined World ID human verification with real device data from Terra API, creating a system where only verified humans with actual health tracking devices can participate.Future Technical RoadmapThe Graph Health Wallet ExpansionHealth data subgraphs for cross-app compatibility (in development)Advanced user-controlled data permissions and sharingDecentralized health data marketplaceHealthcare provider integration with consent managementOasis AI Assistant EnhancementsMulti-modal health analysis combining lifestyle and biometric dataPredictive health modeling for early interventionFederated learning across user base while maintaining privacyIntegration with healthcare research (anonymized data contribution)Advanced Health MetricsReal-time anomaly detection in health patternsPersonalized challenge difficulty adjustmentSocial health challenges with privacy-preserving leaderboardsIntegration with additional health device manufacturersRepository Structurelivus/ ├── client/ # Next.js frontend with World App integration ├── server/ # Node.js backend with Terra API webhooks ├── contracts/ # Solidity smart contracts on Worldchain └── docs_integrations/ # Technical documentationLive Demo: Deployed on Worldchain MainnetContract:0xB36b82E2090D574Dfd5f3bCc835af09A3De8fb1FGitHub:Y

Hackathon

ETHGlobal Cannes

2025

Prizes

  • 🏆

    Best Mini App2nd place

    World

  • 🏆

    Best Application Built on Hypergraph (Knowledge Graph Framework)2nd place

    The Graph

Contributors