Blockchain-Powered Supply Chain Verification for a Transparent Future
"73% of consumers don't trust sustainability claims on products"
In today's marketplace, when a company claims their product is:
- π± "100% Organic"
- βοΈ "Fair Trade Certified"
- πΏ "Carbon Neutral"
- π€ "Ethically Sourced"
Consumers have NO way to verify these claims. We're forced to simply trust marketing, creating a massive trust gap that enables greenwashing and false advertising.
Veritas transforms unverifiable marketing claims into immutable blockchain proof.
graph LR
A[π Supplier] --> B[π Submit Claims]
B --> C[βοΈ Hedera Blockchain]
C --> D[π Public Verification]
D --> E[π₯ Consumer Trust]
style A fill:#e1f5fe
style C fill:#00d4aa
style E fill:#4caf50
| Step | Action | Technology | Result |
|---|---|---|---|
| 1οΈβ£ | Submit Claims | Web Interface | Supplier logs product details & sustainability claims |
| 2οΈβ£ | Blockchain Storage | Hedera HCS | Claims permanently recorded with timestamp |
| 3οΈβ£ | QR Generation | Dynamic QR Codes | Unique code links physical product to digital proof |
| 4οΈβ£ | Public Verification | Mobile Scanner | Anyone can verify claims instantly |
- β‘ Lightning Fast: 3-5 second finality via Hedera
- π° Cost Effective: $0.0001 per verification vs $10+ on other blockchains
- πΏ Carbon Negative: Hedera's sustainable consensus mechanism
- π± Universal Access: Works in any web browser, no app required
- π Tamper Proof: Immutable blockchain records with HashScan links
- π Enterprise Ready: Built for global supply chain scale
graph TB
subgraph "Frontend Layer"
A[Next.js 14 + TypeScript]
B[Tailwind CSS + Responsive Design]
C[QR Scanner + Generator]
end
subgraph "Backend Layer"
D[Node.js + Express API]
E[PostgreSQL Database]
F[Data Validation & Security]
end
subgraph "Blockchain Layer"
G[Hedera Consensus Service]
H[Immutable Message Storage]
I[HashScan Explorer]
end
A --> D
D --> E
D --> G
G --> H
H --> I
style G fill:#00d4aa
style A fill:#000000,color:#ffffff
style E fill:#336791,color:#ffffff
| Category | Technology | Purpose |
|---|---|---|
| Frontend | Next.js 14, TypeScript, Tailwind CSS | Modern React framework with enterprise TypeScript |
| Backend | Node.js, Express, PostgreSQL | Scalable API with relational data management |
| Blockchain | Hedera Consensus Service (HCS) | Immutable message storage and timestamping |
| QR Codes | react-qr-code, html5-qrcode | Generation and scanning functionality |
| Deployment | Vercel (Frontend), Railway (Backend) | Global CDN and scalable hosting |
- Node.js 18+
- PostgreSQL (optional for demo)
- Hedera Testnet Account
git clone https://github.com/nikhlu07/veritas.git
cd veritas
# Install dependencies for both frontend and backend
npm run install:all# Backend configuration
cp veritas-backend/.env.example veritas-backend/.env
# Frontend configuration
cp veritas-frontend/.env.example veritas-frontend/.env.localConfigure your Hedera credentials:
HEDERA_ACCOUNT_ID=0.0.YOUR_ACCOUNT_ID
HEDERA_PRIVATE_KEY=your_private_key_here
HEDERA_NETWORK=testnetcd veritas-backend
node create-new-topic.js# Start both frontend and backend
npm run dev
# Or start individually:
npm run dev:backend # Backend on :3002
npm run dev:frontend # Frontend on :3000π Visit http://localhost:3000 to see Veritas in action!
// Example: Colombian Coffee Verification
{
"product_name": "Colombian Single-Origin Coffee",
"supplier_name": "Mountain View Coffee Cooperative",
"batch_id": "COFFEE-2024-1001",
"claims": [
{
"type": "organic_certified",
"description": "USDA Organic Certified #2024-COL-089"
},
{
"type": "fair_trade",
"description": "Fair Trade USA Certified #FT-2024-1001"
}
]
}- Scan QR Code on product packaging
- View Claims with blockchain timestamps
- Verify on HashScan - see immutable proof
- Trust with Confidence - no more guessing
| Industry | Claims Verified | Impact |
|---|---|---|
| β Food & Beverage | Organic, Fair Trade, Single Origin | Eliminate food fraud, support farmer premiums |
| π Fashion & Textiles | GOTS Certified, Living Wage, Ethical Labor | Combat fast fashion, ensure worker rights |
| π± Electronics | Conflict-Free Minerals, Recycled Materials | Responsible sourcing, circular economy |
| π Pharmaceuticals | Cold Chain, Authenticity, Expiration | Patient safety, counterfeit prevention |
- π $6.2B - Global supply chain transparency market by 2025
- π± 73% - Consumers willing to pay more for sustainable products
- π 2030 - EU Digital Product Passport mandate
- π $52B - Annual losses from counterfeit goods
# Submit new product with claims
POST /api/products
{
"product_name": "Product Name",
"supplier_name": "Supplier Name",
"claims": [...]
}
# Verify product by batch ID
GET /api/verify/{batchId}
# Get product details
GET /api/products/{batchId}
# Health check
GET /health| Demo Scenario | Batch ID | QR Link |
|---|---|---|
| β Colombian Coffee | COFFEE-2024-1001 |
Verify Now |
| π Organic T-Shirt | SHIRT-ECO-2024-456 |
Verify Now |
| π± Refurbished Phone | PHONE-REF-2024-789 |
Verify Now |
| Feature | Hedera | Ethereum | Bitcoin |
|---|---|---|---|
| Transaction Speed | 3-5 seconds | 15+ minutes | 60+ minutes |
| Cost per Transaction | $0.0001 | $10-50 | $5-20 |
| Energy Consumption | Carbon Negative | High | Very High |
| Finality | Immediate | Probabilistic | Probabilistic |
| Enterprise Adoption | β High | β Low |
Hedera's combination of speed, cost-effectiveness, and sustainability makes it perfect for global supply chain verification.
- Core Blockchain Integration - Hedera HCS message submission/retrieval
- Full-Stack Application - Next.js frontend + Node.js backend
- QR Code System - Generation, scanning, and verification
- Responsive Design - Mobile-first, professional UI
- API Documentation - Complete endpoint documentation
- Demo Data - Real products with blockchain verification
- Deployment Ready - Production configuration and hosting
Phase 1 (Q2 2024)
- Multi-tenant business accounts
- Advanced analytics dashboard
- Mobile app (iOS/Android)
- API rate limiting and authentication
Phase 2 (Q3 2024)
- IoT sensor integration for automated claims
- Multi-language support (Spanish, French, German)
- Enterprise API partnerships
- Advanced fraud detection
Phase 3 (Q4 2024)
- AI-powered claim verification
- Integration with major e-commerce platforms
- Global regulatory compliance (EU DPP)
- Sustainability impact tracking
We welcome contributions! Here's how to get started:
# Fork the repository
git clone https://github.com/YOUR_USERNAME/veritas.git
# Create feature branch
git checkout -b feature/amazing-feature
# Make your changes and test
npm run test
# Commit with conventional commits
git commit -m "feat: add amazing feature"
# Push and create PR
git push origin feature/amazing-feature- π Follow our Code of Conduct
- π§ͺ Add tests for new features
- π Update documentation
- π¨ Follow existing code style
- β Ensure all tests pass
π See Contributing Guide for detailed instructions
- π Bug Reports: Create an Issue
- π‘ Feature Requests: Request a Feature
- π¬ Questions: GitHub Discussions
- π§ Email: support@veritas.app
This project is licensed under the MIT License - see the LICENSE file for details.
Veritas is proudly open source. We believe transparency in supply chains starts with transparency in our own code. Feel free to:
- β Use for commercial projects
- β Modify and distribute
- β Create derivatives
- β Private use
Just keep the license notice and we're good! π
- ποΈ Hedera Hashgraph - For the most sustainable, enterprise-grade blockchain
- βοΈ Next.js Team - For the incredible React framework
- π¨ Tailwind CSS - For making CSS enjoyable again
- π Vercel - For seamless deployment and hosting
- π All Contributors - For making Veritas better every day