AI-Powered Vehicle Inspection & Fast Tokenization Layer on Cardano, using Hydra as a high-throughput Layer 2 for inspection workflows.
frontend/– React PWA for inspectors and usersbackend/– Node.js / TypeScript APIai-service/– Python AI microservice (YOLO-based damage detection)hydra/– Hydra Head configs & scriptsinfra/– Docker, docker-compose, and optional k8s manifestsdocs/– Architecture, setup guides, and Catalyst proposal
flowchart LR
User["User / Inspector"] --> FE["Frontend (React PWA)"]
FE -->|Upload images| API["Backend API"]
API -->|Analyze| AI["AI Service (YOLO Model)"]
API -->|Update session| HYDRA["Hydra Head (L2 State)"]
HYDRA -->|Commit batch| CARDANO["Cardano Testnet Node"]
API -->|Store images & reports| STORAGE["IPFS / Backblaze B2"]
STORAGE -->|CID / URL| CARDANO
CARDANO -->|VCT link| FE
- Frontend (React PWA) – Uploads vehicle photos, previews AI outputs & inspection status, and exposes Vehicle Condition Token (VCT) links/QR codes.
- Backend API (Node.js/TS) – Coordinates the inspection workflow, calls the AI service, talks to the Hydra Head for off-chain session state, triggers CIP-68 minting on Cardano testnet, and pushes images/reports to IPFS/B2.
- AI Service (Python) – Provides a REST endpoint (e.g.,
/analyze) that accepts images and responds with damage type, bounding boxes, confidence, and an overall condition score. - Hydra Head Cluster – Maintains the off-chain inspection session (status, AI results, inspector approvals) and batches transactions before committing them to Cardano L1.
- Cardano Node (Testnet) – Mints CIP-68 Vehicle Condition Tokens, persisting the final metadata hash plus the IPFS/B2 references.
- Storage (IPFS / Backblaze) – Stores the raw vehicle photos and the JSON inspection reports; the resulting CID/URL is embedded inside the minted token metadata.
# Clone repo
git clone https://github.com/Sumbu-Labs/HydraAI-Inspect.git
cd HydraAI-Inspect
# Start all services in development mode (hot-reload enabled)
docker compose -f infra/docker-compose.dev.yml up --build# Start all services in production mode (optimized builds)
docker compose -f infra/docker-compose.prod.yml up --build -dQuick Start:
# 1. Setup environment variables (interactive)
./scripts/setup-env.sh
# 2. Install dependencies
pnpm install
cd backend && pnpm install && cd ..
cd frontend-app && pnpm install && cd ..
cd landing-page && pnpm install && cd ..
cd ai-service && pip install . && cd ..
# 3. Setup database
cd backend
pnpm db:generate
pnpm db:migrate
cd ..
# 4. Start all services (opens in separate terminal tabs)
./start-all.sh
# 5. Check services status
./scripts/check-services.sh
# 6. Stop all services when done
./stop-all.shService URLs:
- Landing Page: http://localhost:3000
- Frontend App: http://localhost:3001
- Backend API: http://localhost:4000
- AI Service: http://localhost:8000
- AI Docs: http://localhost:8000/docs
Detailed Guide: See docs/running-without-docker.md for complete setup instructions, troubleshooting, and environment variables reference.
More details in docs/overview.md