Skip to content

gdeschampss/TradeCheck_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TradeCheck β€” AI Document Validation Platform for Foreign Trade

tarde check Logo

Automate. Validate. Ship with Confidence.

TradeCheck is an AI-powered documentary validation platform built for foreign trade operations. It replaces the manual, error-prone process of cross-checking commercial documents with an intelligent, standardized, and professional system that generates audit-ready reports in seconds.


Overview

Foreign trade operations depend on the accuracy and consistency of multiple documents β€” Commercial Invoices, Packing Lists, and Bills of Lading. A single discrepancy can trigger customs retention, clearance delays, or financial penalties.

TradeCheck solves this by acting as a Senior Foreign Trade Documentation Specialist powered by AI. The platform:

  1. Accepts uploads of the three core trade documents
  2. Extracts structured data from each file
  3. Cross-references all fields across documents
  4. Classifies every inconsistency by risk level
  5. Generates a professional validation report β€” shareable and exportable

The MVP is designed for internal validation with a single client, replacing a manual ChatGPT-based workflow with a scalable, repeatable system.


Key Features

Feature Description
πŸ“„ Multi-document Upload Upload Invoice, Packing List, and BL in PDF or DOCX
πŸ€– AI Extraction Structured field extraction per document using GPT
πŸ” Cross-document Validation Automatic comparison of shared fields across all documents
⚠️ Risk Classification Every inconsistency tagged as Low / Medium / High risk
πŸ“Š Confidence Score AI transparency score for each analysis
πŸ“ Structured Report Executive summary, detailed findings, and final recommendation
πŸ”— Shareable URL Public report link at /share/{analysis-id} β€” no login required
πŸ“₯ DOCX Export Download the report as a formatted Word document
πŸ–¨οΈ Print View Browser-optimized printable report layout
πŸ•“ Analysis History Last 50 analyses stored locally and reopenable

Tech Stack

Frontend

  • React + TypeScript
  • TailwindCSS β€” desktop-first, enterprise UI
  • React Router β€” SPA navigation and shareable report routes

Backend

  • Node.js + Express
  • REST API for document processing, analysis orchestration, and report management

AI Layer

  • OpenAI API β€” GPT-4o / latest available model
  • Prompt-engineered to behave as a Foreign Trade Documentation Specialist

File Processing

  • PDF extraction β€” pdf-parse or equivalent
  • DOCX extraction β€” mammoth or equivalent

Storage

  • Local JSON storage (MVP)
  • Architecture prepared for PostgreSQL migration

System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        FRONTEND (React)                     β”‚
β”‚                                                             β”‚
β”‚  Upload Center β†’ Validation Panel β†’ Report Viewer          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ REST API
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      BACKEND (Express)                      β”‚
β”‚                                                             β”‚
β”‚  /upload β†’ /extract β†’ /analyze β†’ /report β†’ /share          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚                                 β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   File Processor   β”‚           β”‚    OpenAI API       β”‚
β”‚  (PDF / DOCX)      β”‚           β”‚   (GPT Model)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                Local Storage (JSON)                         β”‚
β”‚         [ Prepared for PostgreSQL migration ]               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • OpenAI API Key

Document Intelligence Engine

TradeCheck supports three core foreign trade documents:

Supported Documents & Fields

Commercial Invoice

  • Supplier, Exporter, Importer
  • Invoice Number, Invoice Date
  • Product Description, HS Code
  • Quantity, Unit Value, Total Value
  • Incoterm, Gross Weight, Net Weight

Packing List

  • Supplier, Importer
  • Gross Weight, Net Weight
  • Quantity, Number of Packages, Volume
  • Container Number

Bill of Lading (BL)

  • Shipper, Consignee, Notify Party
  • Container Number, BL Number
  • Gross Weight, Vessel
  • Port of Loading, Port of Discharge

Validation Logic

The AI compares shared fields across all three documents and flags:

  • Supplier / Shipper mismatches β€” different names across documents
  • Weight discrepancies β€” gross/net weight inconsistencies
  • Quantity mismatches β€” units differ between Invoice and Packing List
  • Container number conflicts β€” BL vs. Packing List container IDs
  • HS Code issues β€” missing or conflicting tariff classifications
  • Incoterm inconsistencies β€” missing or contradicting trade terms
  • Incomplete documents β€” mandatory fields left blank

Risk Classification

Level Meaning
🟒 Low Risk Minor or cosmetic inconsistency, unlikely to cause operational issues
🟑 Medium Risk Relevant inconsistency that should be corrected before shipment
πŸ”΄ High Risk Critical inconsistency with direct customs or financial risk

Report Structure

Every analysis produces a structured report with four sections:

1. Executive Summary

  • Overall documentation status
  • Global risk level
  • General recommendation

2. Detailed Analysis

For each issue identified:

  • Problem description
  • Location in the document
  • Risk classification
  • Potential operational impact
  • Suggested correction

3. Positive Findings

  • Fields that are consistent and correctly filled across all documents

4. Final Conclusion

  • Overall assessment
  • Final recommendation before shipment

Confidence Score

Every report includes an AI confidence score (e.g., 94% β€” High Confidence) based on the completeness and readability of the uploaded documents.


Shareable Reports

After every analysis, a unique public URL is generated automatically:

https://yourdomain.com/share/{analysis-id}

The shareable page displays the full report β€” Executive Summary, Detailed Analysis, Positive Findings, and Conclusion β€” with no login required. This allows freight forwarders, customs brokers, and clients to access reports directly.

Note: Report URLs are public by design for the MVP. Authentication and access control are planned for a future version.


Roadmap

The MVP architecture is built to support the following future features without requiring a full rewrite:

  • User authentication and role-based access
  • PostgreSQL database migration
  • Multi-company / multi-tenancy support
  • Audit logs
  • Custom validation rule sets per client
  • Knowledge base for trade regulations
  • Learning system based on historical analyses
  • External API integrations (customs systems, ERP)
  • Workflow automation and CRM integrations

Branding

Token Value
Primary #FF6B00 (Orange)
Background #111111 (Black)
Surface #2A2A2A (Dark Gray)
Neutral #F5F5F5 (Light Gray)

The UI is designed to look and feel like enterprise logistics software β€” professional, executive, and internationally focused.


License

This project is proprietary software developed for internal client validation. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors