"Recover Privately, Celebrate Socially" Empowering addiction recovery through decentralization
π Rehab DAO: Recover Privately. Celebrate Progress. Support Change. The Problem: Privacy vs. Progress in Recovery Imagine trying to get better from addictionβwhile the whole world can see your struggle.
Thatβs the harsh reality for millions who want to recover but fear judgment, stigma, or the risk of losing their jobs, families, or scholarships if their recovery journey becomes public.
Traditional recovery programs force you to choose:
β Get help and risk everyone finding out
β Stay private but lose accountability and support
The Solution: Rehab DAO Rehab DAO is the worldβs first privacy-first recovery platformβgiving you the best of both worlds. No more tradeoff between your privacy and your progress.
π‘οΈ Complete Privacy Anonymous Recovery: Your real identity stays completely private
Blockchain Protection: Your progress is recorded on the blockchain, but only you can connect it to your identity
Zero Judgment: No one knows who you areβonly that you're making progress
π― Proven Progress Verifiable Achievements: Every therapy session is logged as an unchangeable blockchain record
Community Recognition: Receive encouragement for your progressβwithout ever revealing your identity
Professional Credibility: Therapists can verify your recovery journey for professional purposes when you allow it
π€ Supportive Community Anonymous Support Groups: Connect with others in recovery safely and discreetly
24/7 Global Community: Get support whenever you need itβday or night
Shared Experience: Learn from those who truly understand what youβre going through
How It Works (In Simple Terms)
π Get assigned a private identity (e.g., recovery-warrior.rehabdao.eth)
π€ Connect with verified therapists and community members
π This record is permanent and unchangeable, but only you and your therapist know itβs yours
π¨ Share your progress with employers, courts, or familyβwithout revealing your identity
π Share your victories and challenges
π Get encouragement, celebrate milestones, and support others
Real-World Benefits For People in Recovery Keep Your Job: Prove commitment to employers without revealing your identity
Stay in School: Show schools youβre on a recovery path
Family Support: Families can follow your progress while you keep details private
Legal Compliance: Supply evidence of treatment to courts or probation officers as needed
Personal Pride: Watch your own progress and celebrate achievements in anonymity
For Therapists Better Outcomes: Patients remain in treatment longer with privacy protection
Professional Records: Create verifiableβbut secureβpatient progress logs
Community Building: Collaborate with recovery professionals across the globe
Reduced Stigma: Help your clients focus on healing, not hiding
For Employers Support Employees: Offer genuine support without risking privacy intrusion
Legal Protection: Secure, verifiable treatment compliance if required
Reduced Turnover: Recovery support = stronger, more loyal teams
Corporate Responsibility: Demonstrate real commitment to wellness
Why Blockchain Makes This Possible Think of the blockchain as a digital notary that never forgets and never lies:
Permanent Records: Progress can never be deleted or altered
Privacy by Design: Records exist but donβt reveal who you are
Verifiable: Anyone can check that a recovery record is real, but only you can prove itβs yours
Trustworthy: No one can fake, edit, or manipulate recovery records
β¨ Your recovery journey starts hereβand it stays private. β¨
For FULL Developer Documentation - https://github.com/Dasika-Vaishnavi/Rehab-DAO/tree/main?tab=readme-ov-file#chapter-1-project-overview--architecture
Project Overview & Architecture What is Rehab DAO? Rehab DAO is a privacy-first addiction recovery platform leveraging blockchain to provide anonymous progress tracking, verifiable therapy session attestations, and a supportive, pseudonymous community. It solves the crucial need for privacy and trusted accountability in addiction recovery.
Mission & Vision Mission: Enable private, effective recovery while building communities and verifiable progress records.
Vision: Decentralize recovery support where privacy, community, and trust coexist through blockchain.
Key Stakeholders Stakeholder Role Purpose Patients Primary Users Anonymous recovery tracking, peer support Therapists Service Providers Attestation creation and therapy management Managers Community Leaders ENS subdomain assignment, platform oversight Sponsors Funders Support recovery programs, community funding System Layers Client Layer: Next.js, React, TypeScript, Tailwind CSS, Radix UI, Lucide, React Hook Form, Zod
API Layer: Next.js API routes, EAS SDK (Ethereum Attestation Service), CDP SDK, ENS (Ethereum Name Service)
Blockchain Layer: Ethereum (Mainnet & Sepolia), EAS contracts, ENS Registry
Data Layer: Coinbase CDP, EAS on-chain records, ENS on-chain identities
Data Flow Session Attestation: User action β Input validation β Immutable EAS attestation β Indexed in CDP β Real-time UI/analytics
ENS Identity: Manager action β Validation β On-chain ENS registry β Community-recognized pseudonymous identity
Security & Privacy Model Privacy-First: No PII in storage; all identifiers are hashed; users manage ENS subdomains for identity.
Security: Secrets in environment variables; server-side for sensitive logic; comprehensive input validation; strict blockchain network checks.
Technology Stack & Dependencies Frontend: Next.js (SSR/SSG), React (Concurrent, Suspense, Hooks), Tailwind CSS, Radix UI, Lucide React
Forms & State: React Hook Form, Zod, TanStack React Query, React Context
Blockchain/Web3: Ethers.js, Wagmi, Viem, EAS SDK, ENS
Off-Chain Storage/Analytics: Coinbase CDP
Dev Tools: TypeScript, ESLint, PostCSS
Core Features Session Attestation: Verifiable, immutable blockchain proof of therapy sessions (no PII, only hashed data, always anonymous).
ENS Identity: Pseudonymous .rehabdao.eth subdomains for every userβensuring privacy with recognition.
Community Center: Peer support, anonymous chat, progress sharing, moderated environment.
Progress Tracking: Recovery metrics (sessions, duration, types, consistency); analytics remain private and insightful.
Therapist Management: Profiles, scheduling, anonymous patient tracking, secure attestation creation.
Blockchain Integration & Web3 Services Ethereum Attestation Service (EAS): Provides immutable, anonymous, schema-based on-chain attestations.
Coinbase CDP: Queryable, private, and redundant storage for analytics and compliance.
Ethereum Name Service (ENS): Human-readable, private usernames; on-chain community identity; pseudonymous social layer.
Wallet Support: Multi-wallet, mainnet and testnet onboarding flows.
Development, Deployment & Maintenance Setup: Node.js and package manager; repo with CI/CD; environment variables for all secrets.
Testing: Jest, React Testing Library, Cypress for unit and end-to-end testing.
Quality: Strict TypeScript, ESLint, code reviews, modular code architecture.
Deployment: Optimized for Vercel; CI/CD pipelines via GitHub Actions; Vercel Analytics, Sentry for monitoring.
Best Practices: Secrets always environment-protected; validation everywhere; best-in-class blockchain security.
Conclusion & Future Enhancements Rehab DAO merges modern web and blockchain technology into a privacy-preserving, verifiable, and supportive platform for addiction recovery. Its robust, secure, and modular architecture sets a new standard for digital recoveryβprivate, scalable, and community-powered.
Planned enhancements: Mobile app, advanced analytics, API integrations, new community features, DAO-driven governance.
Key Stakeholders Stakeholder Role Purpose Patients Primary Users Anonymous recovery tracking and community support Therapists Service Providers Session management and attestation creation Managers Community Leaders ENS subdomain assignment and platform oversight Sponsors Financial Supporters Funding recovery programs and community initiatives
System Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β CLIENT LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Next.js 15.2.4 β React 19 β TypeScript β Tailwind CSS 4.1.9 β β Radix UI β Lucide β React Hook Form β Zod Validation β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β API LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Next.js API Routes β EAS SDK β CDP SDK β ENS Integration β β Session Management β Attestations β User Authentication β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β BLOCKCHAIN LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Ethereum Mainnet β Sepolia Testnet β EAS Contracts β β ENS Registry β Reverse Registrar β Attestation Schemas β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βΌ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β DATA LAYER β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β Coinbase CDP β EAS Blockchain β ENS On-chain Records β β Queryable Data β Immutable Attestations β Identity Management β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 1.5 Data Flow Architecture 1.5.1 Session Attestation Flow User Input β Form Validation β EAS Blockchain β CDP Storage β UI Update β β β β β βΌ βΌ βΌ βΌ βΌ Session Data β Zod Schema β Immutable Record β Queryable β Real-time 1.5.2 ENS Identity Flow Manager Input β Validation β ENS Registry β Reverse Registrar β User Identity β β β β β βΌ βΌ βΌ βΌ βΌ Subdomain β Address Check β On-chain β Primary Name β Community Recognition 1.6 Security & Privacy Model 1.6.1 Privacy-First Design Zero PII Storage: No personally identifiable information stored in plain text Hash-Based Identifiers: Patient and therapist data hashed before storage Anonymous Attestations: EAS attestations use anonymous recipients User-Controlled Identity: ENS subdomains managed by users
Security Measures Environment Variables: All sensitive data stored in .env.local Server-Side Operations: Critical operations run server-side only Input Validation: Comprehensive validation using Zod schemas Network Validation: Strict network checking for blockchain operations