Skip to content

cocohub-mobileapp/cocohub-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐾 Cocohub

The pet health app that works like a human medical record β€” but for your dog, cat, or any animal. Blockchain-verified. Offline-first. Free to start.

License: MIT Version Platform Built with Expo Stellar Open Issues PRs Welcome Bounties on GrantFox Live Demo


The problem

Every time you switch vets, move cities, or face a pet emergency β€” your animal's medical history is either lost, on paper in a drawer, or locked inside another clinic's software. There is no portable, owner-controlled pet health record. Until now.


What Cocohub does

Cocohub gives every pet a tamper-proof digital health passport β€” medication schedules, vaccination history, vet records, and emergency contacts β€” that lives on your phone, works offline, and can be shared with any vet via a QR code in seconds.

Records are verified on the Stellar blockchain (hashes only β€” no personal data ever on-chain), so any vet anywhere can independently confirm a record hasn't been altered.


🎬 See it in action

β–Ά Try the web app live β†’ β€” use owner1@example.com / Password123!

Cocohub App Cocohub App Cocohub App Cocohub App Cocohub App


✨ Features

Feature What it does
πŸ”’ Blockchain Records SHA-256 hash of every record anchored on Stellar β€” tamper-proof forever
πŸ’Š Medication Reminders Smart daily/weekly schedules, dose logging, refill tracking, drug interaction detection
πŸ“… Appointments Book vet visits, conflict detection, calendar sync
🚨 Emergency SOS One-tap alert with live GPS to all emergency contacts
πŸ“Š Health Dashboard A–F health score, weight trend chart, vitals history, AI predictive alerts
πŸ“± QR Scanner Scan any pet's QR code β€” instant record access, no app needed on vet's side
πŸ—ΊοΈ Vet Finder Nearby clinics on a live map via OpenStreetMap + Google Places
🩺 AI Symptom Checker Describe symptoms β†’ urgency triage + probable conditions + next actions
🧬 Breed Insights Breed-specific health risks and care recommendations per pet
πŸ“„ PDF Import (OCR) Photograph old paper records β€” AI extracts the data
πŸŽ‚ Birthday Reminders Annual birthday + age-based health milestone notifications
🌐 Offline-First Full functionality with no internet β€” syncs when back online
πŸ” Privacy-First AES-256 encryption, biometric login, GDPR compliant
🌍 Multi-Language English + Spanish, RTL support
🩻 Telemedicine Video consultations via WebRTC
πŸ‘₯ Community Forum, Lost & Found network, adoption matching

πŸš€ Try it now β€” no install needed

Web app: cocohub.app/app

Test account:
Email:    owner1@example.com
Password: Password123!

The web app works in demo mode even without the backend running β€” you'll see real UI with sample data.

Or run locally in 2 minutes β€” see Quick Start below.


πŸ’° Earn XLM by contributing

Cocohub pays contributors in XLM (Stellar Lumens) via GrantFox smart escrow β€” released within 48 hours of your PR being merged.

Size Reward Examples
🟒 Small 5–15 XLM Bug fixes, docs, UI polish
🟑 Medium 20–50 XLM New features, translations, test suites
πŸ”΄ Large 75–150 XLM Soroban contracts, AI features, wearable sync

πŸ‘‰ View all 25 open bounties β†’ πŸ‘‰ How to claim & get paid β†’

New to Stellar? Get a free wallet at Freighter.app in 2 minutes.


πŸ›  Tech Stack

Layer Technology
Mobile/Web React Native 0.85 + Expo SDK 56
Language TypeScript 5
Navigation React Navigation v6
State React Context + SQLite (offline)
Backend Node.js 18, Express 5, PostgreSQL 15, Redis 7
Blockchain Stellar SDK + Soroban smart contracts
Local DB expo-sqlite (AES-256 encrypted)
Auth JWT + refresh tokens + OAuth (Google/Apple/Facebook) + biometrics
Push Expo Notifications (APNs + FCM)
Maps react-native-maps + OpenStreetMap
Video react-native-webrtc
Error Tracking Sentry
CI/CD GitHub Actions (11 workflows)
Testing Jest, Vitest, Testing Library, Detox, Maestro

πŸ“ Project Structure

cocohub/
β”œβ”€β”€ src/                   # React Native app (75+ screens, 85+ services)
β”‚   β”œβ”€β”€ screens/           # All UI screens
β”‚   β”œβ”€β”€ components/        # 60+ shared components
β”‚   β”œβ”€β”€ services/          # API + business logic
β”‚   β”œβ”€β”€ navigation/        # App, Care, More navigators
β”‚   β”œβ”€β”€ context/           # Auth, Pet, Theme, Toast providers
β”‚   └── utils/             # Encryption, haptics, validators
β”œβ”€β”€ backend/               # Node.js/Express API (50+ routes)
β”‚   β”œβ”€β”€ server/            # Express app + route modules
β”‚   β”œβ”€β”€ migrations/        # 30+ PostgreSQL migrations
β”‚   └── seeds/             # Dev seed data
β”œβ”€β”€ website/               # Next.js marketing site
β”œβ”€β”€ android-widget/        # Android home screen widget (Java)
β”œβ”€β”€ ios-widget/            # iOS home screen widget (Swift)
β”œβ”€β”€ legal/                 # Privacy Policy, Terms of Service
└── storelisting/          # App Store + Google Play metadata

πŸš€ Quick Start

Prerequisites: Node.js β‰₯ 18, Docker Desktop

# 1. Clone
git clone https://github.com/cocohub-mobileapp/cocohub-main.git
cd cocohub-main

# 2. Install
npm install --legacy-peer-deps

# 3. Run web app instantly (no backend needed)
npx expo start --web
# β†’ open http://localhost:8081

Full stack with backend:

docker-compose up          # PostgreSQL + Redis + API
npm run migrate            # Run DB migrations
npm run seed:dev           # Seed test data

Test credentials: owner1@example.com / Password123!


⛓️ Blockchain Architecture

Cocohub uses a dual-layer approach β€” your data stays private:

  1. Storage β€” Records stored encrypted on the Cocohub backend (AES-256)
  2. Verification β€” A SHA-256 hash of each record is anchored on Stellar via manageData

No personal data is ever written to the blockchain. Only hashes. Any vet can verify a record independently by recomputing the hash and checking it against the on-chain value.

Record β†’ SHA-256 hash β†’ Stellar manageData tx β†’ tamper-evident audit trail

Stellar assets:

  • PETC β€” Cocohub utility token
  • VETH β€” Vet Health Credits
  • PAWP β€” PawPoints loyalty rewards

πŸ§ͺ Testing

npm test              # Unit tests (Jest)
npm run typecheck     # TypeScript
npm run lint          # ESLint
npm run e2e:test      # Maestro E2E smoke test

🀝 Contributing

We welcome everyone β€” from first-timers to senior engineers. See CONTRIBUTING.md.

Good first issues

Look for issues tagged good first issue β€” these are scoped, self-contained, and come with a bounty.


πŸ”’ Security

  • AES-256-GCM encryption on all local SQLite data
  • Tokens in device Keychain (iOS) / SecureStore (Android)
  • HMAC-SHA256 request signing
  • SSL certificate pinning
  • Biometric re-auth on foreground
  • Screen capture prevention on sensitive screens
  • Rate limiting + Helmet headers on the backend

Report vulnerabilities privately to security@cocohub.app β€” do not open a public issue.


πŸ“„ Legal

Cocohub is not a substitute for professional veterinary care. Always consult a licensed veterinarian.


πŸ“ž Support & Community

Channel Link
πŸ› Issues GitHub Issues
πŸ’¬ Discussions GitHub Discussions
πŸ“§ Email support@cocohub.app
🐦 Twitter @cocohubapp
🌐 Website cocohub.app

πŸ“’ License

MIT β€” see LICENSE for details.


Built with ❀️ for pet lovers everywhere · Powered by Stellar · Bounties via GrantFox

About

Cocohub is a full-stack mobile and web application for pet owners to securely manage their pets' medical records, medication schedules, vet appointments, and emergency contacts. Built with React Native and Expo, backed by a Node.js/PostgreSQL API, and anchored to the Stellar blockchain for tamper-proof record verification.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages