Enterprise-grade trade compliance tools for SME exporters, trade banks, and compliance teams.
TRDR Hub provides a suite of AI-powered tools to validate Letters of Credit, verify commodity prices, track shipments, and ensure trade compliance - all powered by 4,000+ rules covering UCP600, ISBP745, and 160+ countries.
Production: https://trdrhub.com
API: https://trdrhub-api.onrender.com
| Tool | Description | Status |
|---|---|---|
| LCopilot | AI-assisted LC validation with UCP600/ISBP rules | ✅ Live |
| Price Verify | Commodity price verification for TBML detection | ✅ Live |
| Container Tracker | Multi-carrier shipment tracking with alerts | ✅ Live |
trdrhub.com/
├── apps/
│ ├── api/ # FastAPI backend (Python 3.11)
│ └── web/ # React + Vite frontend (TypeScript)
├── Data/ # Trade finance rules (4,000+ rulesets)
│ ├── icc_core/ # UCP600, ISBP745, eUCP
│ ├── country_rules/ # 160+ country-specific rules
│ ├── sanctions/ # OFAC, EU, UN sanctions data
│ └── commodities/ # Commodity pricing data
├── docs/ # Product, architecture, and process documentation
├── memory-bank/ # AI context persistence
├── packages/
│ └── shared-types/ # Shared TypeScript/Python types
├── render.yaml # Render deployment (API)
└── vercel.json # Vercel deployment (Web)
| Area | Tech |
|---|---|
| Frontend | React 18 + Vite + TypeScript + Tailwind + shadcn/ui |
| Backend | FastAPI + SQLAlchemy + Alembic + Pydantic |
| Database | PostgreSQL (Supabase) |
| Auth | Supabase Auth + JWT + RBAC |
| OCR / AI | Google Document AI, AWS Textract, OpenAI/Anthropic |
| Storage | Amazon S3 |
| Monitoring | Structured logging, health checks |
- Python 3.11+
- Node.js 18+ (npm 10+)
- PostgreSQL 15
- (Optional) Redis for background tasks
git clone https://github.com/ripclass/trdrhub.com.git
cd trdrhub.com
# Root workspace
npm install
# Backend
cd apps/api
pip install -r requirements.txt
# Frontend
cd ../web
npm install# Copy templates
cp .env.example .env
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.envKey variables:
DATABASE_URL– PostgreSQL connectionVITE_API_URL– API endpoint for frontendVITE_SUPABASE_URL/VITE_SUPABASE_ANON_KEY– Supabase authGOOGLE_DOCUMENTAI_*– OCR credentialsOPENAI_API_KEY/ANTHROPIC_API_KEY– AI assist
cd apps/api
alembic upgrade head# Backend (terminal 1)
cd apps/api
uvicorn main:app --reload --port 8000
# Frontend (terminal 2)
cd apps/web
npm run dev- Backend: http://localhost:8000/docs
- Frontend: http://localhost:5173
render blueprint deploy- Uses
render.yamlconfiguration - Auto-runs Alembic migrations on deploy
- Health check:
/health/live
vercel --prod- Uses
vercel.jsonconfiguration - Set
VITE_API_URLenvironment variable
| Document | Location |
|---|---|
| Current Status | docs/CURRENT_STATUS.md |
| Product Requirements | docs/prd/index.md |
| Architecture | docs/architecture/index.md |
| Product Specs | docs/product_specs/ |
| Compliance Mappings | docs/compliance/ |
| Runbooks | docs/runbooks/ |
| Metric | Value |
|---|---|
| Total Rules | 4,000+ |
| Countries Covered | 160+ |
| LC Validation Accuracy | 94% |
| Processing Time | ~47 seconds |
# Backend tests
cd apps/api && pytest
# Frontend build check
cd apps/web && npm run build
# Migration check
cd apps/api && alembic check- Documentation:
docs/directory - Troubleshooting:
TROUBLESHOOTING.md - Stub Mode:
STUB_MODE.md(for local dev without cloud services)
Built with ❤️ for trade finance professionals